CVE Watchtower

CVE-2024-4577< Improper Input Validation

NVD

Vulnerability Summary

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.
Severity Level
HIGH
Published Date
Jun 9, 2024
Last Modified
Oct 21, 2025
PoC
Available(Metasploit, Nuclei)
Exploitation Status
ACTIVE
Root Weakness (CWE)
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required.

Affected & Patched Versions

Affected Versions
  • < 8.3.8
  • < 8.2.20
  • < 8.1.29
Patched Versions
  • 8.3.8
  • 8.2.20
  • 8.1.29

What to do

Patch now. CISA lists this flaw as exploited in the wild and set a federal remediation deadline of Jul 3, 2024.

  1. Check whether you run < and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

CISA required action: Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.

CISA KEV Status

Listed in Known Exploited Vulnerabilities
Added: Jun 12, 2024
Remediation due: Jul 3, 2024 (deadline passed)
Known use in ransomware campaigns: Yes

Timeline

  • Jun 9, 2024Published
  • Jun 12, 2024Added to CISA KEV catalog
  • Jul 3, 2024KEV remediation due date
  • Oct 21, 2025Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new < CVEsYou are reading CVE-2024-4577. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

More < CVEs

External References

Data last checked: Nov 22, 2026 17:11 UTC