BLACKOUT MAP

PHP Group · PHP

CVE-2024-4577

Argument Injection in PHP-CGI

Exploited in attacks Used by ransomware Critical 9.8 Attack chance: >99.9%
Share

What it is

In PHP versions 8.1.* before 8.1.29, 8.2.* before 8.2.20, 8.3.* before 8.3.8, when using Apache and PHP-CGI on Windows, if the system is set up to use certain code pages, Windows may use "Best-Fit" behavior to replace characters in command line given to Win32 API functions. PHP CGI module may misinterpret those characters as PHP options, which may allow a malicious user to pass options to PHP binary being run, and thus reveal the source code of scripts, run arbitrary PHP code on the server, etc.

CISA: PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.

What to do

Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

Deadline for US federal agencies: July 3, 2024

Added to the CISA list
June 12, 2024
Published
June 9, 2024
Severity
Critical 9.8 CVSS 3.1
Chance of attacks in the next 30 days (EPSS)
>99.9% in the top 0.1% of all known vulnerabilities
Weakness
CWE-78
More details
NVD · CVE.org · CISA
All references (19)

More exploited flaws from PHP Group

AddedVulnerabilityProductSeverityAttack chance
Oct 26, 2026Memory CorruptionCVE-2026-109618PHPCritical 9.2>99.9%
Oct 26, 2026Stale Internal Request-StateCVE-2026-109619PHPCritical 9.2>99.9%

All of them →

Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.