Vulnerability in PHP
CVE-2024-1874
In PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, 8.3.* before 8.3.5, 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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.4 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L.
EPSS exploit prediction
EPSS: 0.326 (98.3th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 98th percentile — 98.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.326 · newest: 0.326 · change: 0.000
Affected products
- PHP
- PHP Group — versions 8.1.*, 8.2.*, 8.3.*
- Fedoraproject Fedora — versions 39, 40
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/php/php-src/security/advisories/GHSA-pc52-254m-w9w7 (Exploit, Vendor Advisory)
- www.openwall.com/lists/oss-security/2024/04/12/11 (Mailing List)
- security.netapp.com/advisory/ntap-20240510-0009/ (Third Party Advisory)
- www.openwall.com/lists/oss-security/2024/06/07/1 (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/… (Mailing List)
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108
- af854a3a-2127-422b-91ae-364da2661108 (Exploit, Third Party Advisory)
Frequently asked questions
- What is CVE-2024-1874?
- CVE-2024-1874 is a critical-severity vulnerability in PHP, classified under Improper Encoding or Escaping of Output. CVSS score: 9.4/10. Published 2024-04-29.
- How severe is CVE-2024-1874?
- Critical severity. CVSS v3 base score is 9.4 out of 10.
- Is CVE-2024-1874 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.