CVE-2024-1874

CVE-2024-1874 is a critical-severity vulnerability in Php with a CVSS 3.x base score of 9.4. Its EPSS exploit-prediction score of 33% places it in the 98th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-116.

Key facts

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.

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 3.x base score of 9.4, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability low.
Is CVE-2024-1874 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 33% (98th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2024-1874?
CVE-2024-1874 primarily affects Php. In total, 3 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2024-1874?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
Does CVE-2024-1874 have an EU (EUVD) identifier?
Yes. CVE-2024-1874 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-17599.
When was CVE-2024-1874 published?
CVE-2024-1874 was published on 2024-04-29 and last updated on 2026-06-17.

References

Affected products (3)

More vulnerabilities in Php

All CVEs affecting Php →

Other CWE-116 vulnerabilities

Browse all CWE-116 vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: