CVE-2024-5585
Last modified
CVE-2024-5585 is a high-severity vulnerability rated 8.8/10 on the CVSS scale. In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: when using proc_open() command with array syntax, due to insufficient escaping, if the arguments of the executed command are controlled by a malicious user, the user can supply arguments that would execute arbitrary commands in Windows shell.. EPSS estimates a 28.81% chance of exploitation in the next 30 days.
Description
In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, the fix for CVE-2024-1874 does not work if the command name includes trailing spaces. Original issue: when using proc_open() command with array syntax, due to insufficient escaping, if the arguments of the executed command are controlled by a malicious user, the user can supply arguments that would execute arbitrary commands in Windows shell.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 8.1.0, < 8.1.29 |
| Php | Php | >= 8.2.0, < 8.2.20 |
| Php | Php | >= 8.3.0, < 8.3.8 |
| Fedoraproject | Fedora | 40 |
References
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing List, Third Party Advisory
- https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385Exploit, Third Party Advisory
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing List, Third Party Advisory
- https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385Exploit, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-5585?
How severe is CVE-2024-5585?
How do I fix CVE-2024-5585?
Are you affected by CVE-2024-5585?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
