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.328, 98.4th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP
- PHP Group — versions 8.1.*, 8.2.*, 8.3.*
- Fedoraproject Fedora — versions 39, 40
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- MrBongoC/CVE-2024-1874 (2 stars, last pushed 2024-09-19): Proof Of Concept for CVE-2024-1874
- Tgcohce/CVE-2024-1874 (2 stars, last pushed 2024-09-19): Proof Of Concept for CVE-2024-1874
- ox1111/-CVE-2024-1874- (last pushed 2024-04-17): command injection
Also mentioned in 5 other repositories (ARPSyndicate/cve-scores, fkie-cad/nvd-json-data-feeds, michalsvoboda76/batbadbut, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
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)
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/…
- www.kb.cert.org/vuls/id/123335
- www.vicarius.io/vsociety/posts/command-injection-vulnerability-in-php-on-window… (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.