Skip to content
Threat Brief

← All advisories

CVE-2024-4577

Critical 9.8KEV · exploitedPublic exploitFix available

Argument Injection in PHP-CGI

Record last updated

CVSS score

9.8

Critical on a 0 to 10 scale

EPSS, chance of exploitation in 30 days

100%

Among the highest-scored CVEs. A prediction, not evidence.

CISA remediation deadline

871days overdue

Passed 871 days ago for U.S. federal agencies

Description

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.

Weakness: CWE-78

Patching and mitigation

Patch status
Fix available (source: CVE record (php))
Fix documented (source date)
Mitigation
None documented
Vendor guidance
php.net (opens in a new tab)

Affected products

VendorProductAffected versionsFixed inPer
PHP GroupPHPfrom 8.1.* before 8.1.298.1.29CVE Program
PHP GroupPHPfrom 8.2.* before 8.2.208.2.20CVE Program
PHP GroupPHPfrom 8.3.* before 8.3.88.3.8CVE Program
PHP GroupPHPNot documentedNot documentedCISA KEV

Timeline

  1. Disclosure

    CVE record published by php

    Source: CVE Program (opens in a new tab)

  2. 12 Jun 2024KEV

    Added to the CISA Known Exploited Vulnerabilities catalog

    Source: CISA KEV (opens in a new tab)

  3. 12 Jun 2024Exploitation

    Exploitation confirmed by CISA KEV

    Source: CISA KEV (opens in a new tab)

  4. Patch

    Fix documented by CVE record (php)

    Source: CVE record (php) (opens in a new tab)

Vendor guidance and references

Public exploit code

Exploit or proof-of-concept code is publicly available on Exploit-DB. Shown as a prioritization and defensive-testing signal — treat exploit code as hostile and run it only against systems you are authorized to test.