CVE-2024-1874

CRITICAL
Published Apr 29, 2024 Modified Nov 4, 2025 CWE-116

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.

Is your site exposed to CVE-2024-1874?

Run a free security scan — no signup, results in seconds.

CVSS v3.1 Score

9.4
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:L

Weakness Type (CWE)

CWE-116 CWE-116

Affected Products

Vendor Product
php php
php php
php php
fedoraproject fedora
fedoraproject fedora

References

Frequently Asked Questions

What is 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. It has a CVSS v3.1 base score of 9.4 (CRITICAL).
How severe is CVE-2024-1874? +
CVE-2024-1874 has a CVSS v3.1 score of 9.4 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2024-1874? +
CVE-2024-1874 affects products from fedoraproject, php, specifically: fedora, php. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-1874? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-1874 — free, no signup required.