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

critical KEV Affects PHP engine. Feed 2026.11.23.2, updated 2026-11-23; 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

Quick answers

Is CVE-2024-4577 being actively exploited?

Yes. It is on CISA's Known Exploited Vulnerabilities list (added 2024-06-12), which means attackers are using it now.

Which version fixes CVE-2024-4577?

The fixed release depends on your PHP branch; see the table above.

How do I check whether I am affected?

Run `phpwarden scan`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

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

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden scan

# or, without Composer
pipx install phpwarden   &&   phpwarden scan

Running a fleet? Aggregate hosts into one report.

Install docs   How findings are ranked

Related advisories