CVE-2024-5585: fedoraproject fedora OS Command Injection
Vulnerability summary
CVE-2024-5585 is a high (CVSS 8.8) OS Command Injection vulnerability in fedoraproject fedora. EPSS estimates a 28.81% chance of exploitation in the next 30 days, higher than 98.1% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 0 · Related 3Timeline
- 09-06-2024PublishedVulnerability first disclosed.
- 13-02-2025Last modifiedVulnerability information updated.
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 metrics
4 scores · 4 sources · 1 version- CVE.orgCNA7.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · WolfiEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:LDiffers
- OSV · ChainguardEcosystem advisory · calculated7.7HighCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:LDiffers
EPSS trend
Probability
28.81%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
0.00 pp
From 28.81% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundPhp Src
Maturity: poc
Weaknesses
CWE · root cause- CWE-78Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.
- CWE-116Improper Encoding or Escaping of OutputThe product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.
Affected systems
Chainguard2 products
- php-8.1< 8.1.29-r0
- php-8.2< 8.2.20-r0
Wolfi2 products
- php-8.1< 8.1.29-r0
- php-8.2< 8.2.20-r0
Fedoraproject1 product
- fedoraEOL40
Php1 product
- php≥ 8.1.0, < 8.1.29 | ≥ 8.2.0, < 8.2.20 | ≥ 8.3.0, < 8.3.8
Php_group1 product
- php≥ 8.1.*, < 8.1.29 | ≥ 8.2.*, < 8.2.20 | ≥ 8.3.*, < 8.3.8
5 vendors · 7 products
References
9 links- github.com/php/php-srcPACKAGE