SARA / Free Tools / KEV / CVE-2024-4577

CVE-2024-4577 on CISA KEV

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 functi

CISA KEV — Actively Exploited

PHP-CGI OS Command Injection Vulnerability

Vendor / Product
— / PHP Group / PHP
Added to KEV
2024-06-12
BOD 22-01 due
2024-07-03
Ransomware use
Known
CVSS / EPSS
9.8 CRITICAL · EPSS 94.37%

01What CISA says about this vulnerability

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…

02Required action — verbatim from CISA

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

03Notes & references

04SARA's analyst layer — why this matters

This vulnerability is currently on the CISA KEV list, which CISA only adds CVEs to when there is reliable evidence of active exploitation in the wild. For federal civilian agencies, BOD 22-01 requires remediation by the due date above. For everyone else, KEV is the strongest "patch immediately" signal you can get from public threat intel.

05Affected products (summary)

VendorProductVersions
PHP GroupPHP8.1.*, 8.2.*, 8.3.*

06Detection

Open the Sigma generator with a pre-filled prompt for this CVE to draft a starting detection:

Open in Sigma generator →

Programmatic KEV data?
SARA's API returns KEV, CVSS, EPSS + analyst summary in one call.
Read the API reference →