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?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-5579Allegra renderFieldMatch Deserialization of Untrusted Data R…7.2
- CVE-2024-5580Allegra loadFieldMatch Deserialization of Untrusted Data Rem…7.2
- CVE-2024-5581Allegra unzipFile Directory Traversal Remote Code Execution …7.2
- CVE-2024-5582The Schema & Structured Data for WP & AMP plugin for WordPre…5.4
- CVE-2024-5583The The Plus Addons for Elementor – Elementor Addons, Page T…5.4
- CVE-2024-5584The WordPress Online Booking and Scheduling Plugin – Bookly …6.4
- CVE-2024-5586Zohocorp ManageEngine ADAudit Plus versions below 8121 are v…8.8
- CVE-2024-55864Cross-site scripting vulnerability exists in My WP Customize…4.8
- CVE-2024-5587A vulnerability was found in Casdoor up to 1.335.0. It has b…6.9
- CVE-2024-55875http4k is a functional toolkit for Kotlin HTTP applications.…9.8
- CVE-2024-55876XWiki Platform is a generic wiki platform. Starting in versi…5.4
- CVE-2024-55877XWiki Platform is a generic wiki platform. Starting in versi…8.8
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
