CVE-2024-4577

PHP-CGI OS Command Injection Vulnerability

Actively exploited · CISA KEV Ransomware use: known
9.8 CriticalCVSS v3.1
100.0%EPSS (30-day exploit probability)
2024-06-12added to KEV
2024-07-03CISA federal due date

Summary

PHP Group PHP. PHP, specifically Windows-based PHP used in CGI mode, contains an OS command injection vulnerability that allows for arbitrary code execution. This vulnerability is a patch bypass for CVE-2012-1823.

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.

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-78
Published
2024-06-09 (last modified 2026-06-17)

What to do

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

  1. Find every instance of PHP Group PHP in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2024-4577 being exploited?

Yes. CISA added CVE-2024-4577 to its Known Exploited Vulnerabilities catalog on 2024-06-12, which means there is reliable evidence of active exploitation. It is also known to be used in ransomware campaigns.

How do I fix CVE-2024-4577?

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

What is the EPSS score for CVE-2024-4577?

The EPSS score is 99.99%, meaning an estimated 99.99% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited PHP Group vulnerabilities

CVE-2026-109619PHP Stale Internal Request-State Vulnerability2026-10-26
CVE-2026-109618PHP Memory Corruption Vulnerability2026-10-26

All PHP Group exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.