Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Php | Php | >= 8.1.0, < 8.1.29 |
| Fedoraproject | Fedora | 40 |
Related Weaknesses (CWE)
References
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing ListThird Party Advisory
- https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385ExploitThird Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]Third Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://security.netapp.com/advisory/ntap-20240726-0002/
- http://www.openwall.com/lists/oss-security/2024/06/07/1Mailing ListThird Party Advisory
- https://github.com/php/php-src/security/advisories/GHSA-9fcc-425m-g385ExploitThird Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]Third Party Advisory
- https://lists.fedoraproject.org/archives/list/[email protected]
- https://security.netapp.com/advisory/ntap-20240726-0002/
- https://www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on
FAQ
What is CVE-2024-5585?
CVE-2024-5585 is a vulnerability with a CVSS score of 7.7 (HIGH). 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...
How severe is CVE-2024-5585?
CVE-2024-5585 has been rated HIGH with a CVSS base score of 7.7/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2024-5585?
Check the references section above for vendor advisories and patch information. Affected products include: Php Php, Fedoraproject Fedora.