BreachSpiderVerified, not vibes

CVE-2024-5585 in Fedoraproject Fedora and 1 more product

High 8.8

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 b...

Affects 2 products from 2 vendors. Facts below cite their sources.

CVSS 3.18.8
EPSS2.6%
EPSS percentile86th
FixSee advisory

Remotely exploitable over the network, low complexity, low privileges required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, full availability impact.

Affected products and versions

VendorProductAffected versions
Fedoraproject Fedora 40
Php Php ≥ 8.1.0, < 8.1.29 ≥ 8.2.0, < 8.2.20 ≥ 8.3.0, < 8.3.8

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

View Vendor Advisory →

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-5585
BreachSpider IDBS-2024-GLOBAL-048920-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Published2024-06-09
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-78: OS Command Injection

Attacker injects OS commands through application inputs passed to system() or equivalent calls, leading to arbitrary command execution.

CWE-116: CWE-116

Related attack patterns (CAPEC)

CAPEC-43 Exploiting Multiple Input Interpretation Layers via CWE-78

CAPEC-81 Web Server Logs Tampering via CWE-116

CAPEC-85 AJAX Footprinting via CWE-116

CAPEC-108 Command Line Execution through SQL Injection via CWE-78

CAPEC-6 Argument Injection via CWE-78

Show all 9

CAPEC-15 Command Delimiters via CWE-78

CAPEC-73 User-Controlled Filename via CWE-116

CAPEC-88 OS Command Injection via CWE-78

CAPEC-104 Cross Zone Scripting via CWE-116

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A vulnerability in PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, and 8.3.* before 8.3.8 allows for arbitrary command execution due to insufficient escaping in the proc_open() function when command names include trailing spaces.

The vulnerability arises when using the proc_open() function with array syntax, where the command arguments are controlled by a malicious user. If the command name includes trailing spaces, the fix for CVE-2024-1874 does not properly sanitize the input, leading to the execution of arbitrary commands.

Questions

What is CVE-2024-5585?

A vulnerability in PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, and 8.3.* before 8.3.8 allows for arbitrary command execution due to insufficient escaping in the proc_open() function when command names include trailing spaces.

What is the CVSS score for CVE-2024-5585?

CVE-2024-5585 has CVSS 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. EPSS: 2.6%.

Is CVE-2024-5585 actively exploited?

No confirmed active exploitation of CVE-2024-5585 as of 2026-09-25.

How do I remediate CVE-2024-5585?

Priority: IMMEDIATE. Advisory: https://lists.fedoraproject.org/archives/list/[email protected]/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/

What systems are affected by CVE-2024-5585?

CVE-2024-5585 affects Fedoraproject Fedora; Php Php.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Fedoraproject","product":"Fedora","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.