CVE-2024-4577: PHP-CGI argument injection to RCE on Windows via Best-Fit encoding

critical KEV Affects PHP engine. Feed 2026.10.29.1, updated 2026-10-28; published ; listed on CISA KEV 2024-06-12.

PHP-CGI argument injection to RCE on Windows via Best-Fit encoding

Package
PHP engine PHP engine
Affected branches
8.1 → fixed in 8.1.29; 8.2 → fixed in 8.2.20; 8.3 → fixed in 8.3.8
Severity
critical  CVSS 9.8
Exploitation
KEV listed by CISA as actively exploited · ransomware campaigns · EPSS 100% (100.0th percentile)
Remediation
Upgrade to 8.3.8 / 8.2.20 / 8.1.29. Note the follow-up CVE-2024-8926 for non-standard code pages.
Published
2024-06-06

References

NVD recordPHP engine advisories

Am I affected?

Find out in one command. phpwarden checks this host's PHP build against this advisory and 20,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# one-time install
pip install phpwarden

# then
phpwarden scan

Running a fleet? Aggregate hosts into one report.

Install docs   How findings are ranked

Related advisories