CVE-2024-1874

CRITICALCVSS 9.4/10EPSS 32.57%

Last modified

CVE-2024-1874 is a critical-severity vulnerability rated 9.4/10 on the CVSS scale. 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.. EPSS estimates a 32.57% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.4/10

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

EPSS Probability
32.57%

98.1th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 8.1.0, < 8.1.28
PhpPhp>= 8.2.0, < 8.2.18
PhpPhp>= 8.3.0, < 8.3.5
FedoraprojectFedora39
FedoraprojectFedora40

References

Timeline

Published
Last Modified
Status
Modified

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.
How severe is CVE-2024-1874?
CVE-2024-1874 has a CVSS score of 9.4/10 (CRITICAL severity). The EPSS model estimates a 32.57% probability of exploitation in the next 30 days.
How do I fix CVE-2024-1874?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2024-1874?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST