BreachSpiderVerified, not vibes

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

Critical 9.4 Fix available

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.

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

CVSS 3.19.4
EPSS6.8%
EPSS percentile95th
FixAvailable

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

Affected products and versions

VendorProductAffected versions
Fedoraproject Fedora 39 40
Php Php ≥ 8.1.0, < 8.1.28 ≥ 8.2.0, < 8.2.18 ≥ 8.3.0, < 8.3.5

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 →

Vendor PSIRT: [email protected]

Exploitation

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

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2024-1874
BreachSpider IDBS-2024-GLOBAL-269383-C
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L
Published2024-04-29
Last modified2025-11-04
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-116: CWE-116

Related attack patterns (CAPEC)

CAPEC-81 Web Server Logs Tampering via CWE-116

CAPEC-85 AJAX Footprinting via CWE-116

CAPEC-73 User-Controlled Filename via CWE-116

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 critical vulnerability in PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, and 8.3.* before 8.3.5 allows for arbitrary command execution via the proc_open() function when using array syntax, due to insufficient escaping of command arguments.

The vulnerability arises from the improper handling of command arguments passed to the proc_open() function when using array syntax. If these arguments are influenced by a malicious user, they can inject additional commands that will be executed in the Windows shell.

Questions

What is CVE-2024-1874?

A critical vulnerability in PHP versions 8.1.* before 8.1.28, 8.2.* before 8.2.18, and 8.3.* before 8.3.5 allows for arbitrary command execution via the proc_open() function when using array syntax, due to insufficient escaping of command arguments.

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

CVE-2024-1874 has CVSS 9.4 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L. EPSS: 6.8%.

Is CVE-2024-1874 actively exploited?

No confirmed active exploitation of CVE-2024-1874 as of 2026-05-30.

How do I remediate CVE-2024-1874?

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

What systems are affected by CVE-2024-1874?

CVE-2024-1874 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 2025-11-04.