CVE-2024-1874: Command injection via array-ish $command parameter of proc_open()
Vulnerability summary
CVE-2024-1874 is a critical (CVSS 9.4) Improper Encoding or Escaping of Output vulnerability in fedoraproject fedora. EPSS estimates a 32.80% chance of exploitation in the next 30 days, higher than 98.3% of scored vulnerabilities. 2 public exploits are recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 29-04-2024PublishedVulnerability first disclosed.
- 04-11-2025Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
3 scores · 3 sources · 1 version- NVDNIST9.4CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
- OSV · AlpineEcosystem advisory · calculated9.4CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
EPSS trend
Probability
32.80%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
Increase +0.23 pp
From 32.57% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
2 foundPhp Src
Maturity: poc
Exploit Reference (vicarius.io)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Alpine3 products
- php81< 8.1.28-r0
- php82< 8.2.18-r0
- php83< 8.3.6-r0 | < 8.3.5-r0
Fedoraproject1 product
- fedoraEOL39 | 40
Php1 product
- php≥ 8.1.0, < 8.1.28 | ≥ 8.2.0, < 8.2.18 | ≥ 8.3.0, < 8.3.5
Php group1 product
- php≥ 8.1.*, < 8.1.28 | ≥ 8.2.*, < 8.2.18 | ≥ 8.3.*, < 8.3.5
4 vendors · 6 products
References
12 links- security.netapp.com/advisory/ntap-20240510-0009/Third Party Advisory
- www.openwall.com/lists/oss-security/2024/06/07/1Mailing List
- lists.fedoraproject.org/archives/…Mailing List
- lists.fedoraproject.org/archives/…Mailing List