Skip to content
English

Patch first › PHP

Exploited Ransomware

CVE-2024-4577

PHP · Frameworks and libraries

PHP-CGI OS Command Injection Vulnerability

At a glance

Exploited. Added to CISA’s catalog of exploited vulnerabilities on June 12, 2024.

Used in ransomware attacks, according to CISA.

Affected product: PHP (category Frameworks and libraries, indicative classification). Name in CISA’s catalog: PHP Group PHP.

What should I do?

Apply the patches or mitigations from PHP; if none are available, stop using the product.

Deadline set by CISA for US federal agencies: 21 days (due July 3, 2024). It only binds those agencies, but it is a useful measure of urgency.

Original text of the required action (CISA)

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

Timeline

  1. Vulnerability published Publication date (NVD)
  2. Exploitation confirmed Added to CISA’s KEV catalog
  3. CISA deadline Remediation deadline set for US federal agencies

The facts, with their sources

Exploitation confirmed
Yes, on June 12, 2024 Date added to the catalog of exploited vulnerabilities. Exploitation itself may have started earlier. Source: KEV catalog, collected September 29, 2026 at 14:57 UTC
Ransomware
Known use Source: KEV catalog, collected September 29, 2026 at 14:57 UTC
Hunt for compromise
Not requested by CISA Source: KEV catalog, collected September 29, 2026 at 14:57 UTC
CISA required action
Apply the patches or mitigations from PHP; if none are available, stop using the product. Rewritten by this site from CISA’s original text. Source: KEV catalog, collected September 29, 2026 at 14:57 UTC
CISA deadline
July 3, 2024, 21 days Set for US federal agencies: a measure of urgency, not an obligation elsewhere. Source: KEV catalog, collected September 29, 2026 at 14:57 UTC
Vulnerability published
June 9, 2024 Source: National Vulnerability Database (NVD), collected September 29, 2026 at 15:00 UTC
Product according to CISA
PHP Group PHP Filed by this site under “Frameworks and libraries” (indicative classification). Source: KEV catalog, collected September 29, 2026 at 14:57 UTC
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Technical detail of the score: attack vector, complexity, impact. Source: National Vulnerability Database (NVD), collected September 29, 2026 at 15:00 UTC

Severity and activity

9.8 / 10 CVSS severity: critical

Score from the NVD. Collected Sep 29, 2026.

— Probability of exploitation in the next 30 days (EPSS)

FIRST’s EPSS model. Since exploitation is already confirmed, this figure is mostly useful to compare activity. Collected Sep 29, 2026.

Description

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.

Official description from the NVD, collected Sep 29, 2026. CVE® description © The MITRE Corporation.

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.

Summary from CISA (KEV catalog).

CERT-FR advisories

No advisory among the latest CERT-FR publications this site follows. That does not mean there are none.

Information reused under the Open Licence 2.0 (Etalab); the date of last update is shown for each advisory. This site is neither affiliated with nor endorsed by ANSSI.

Sources for this page

  • CISA KEV catalog: exploitation, date added, required action, deadline, ransomware.
  • NVD (NIST): CVSS severity, publication date, description, vendor references.
  • EPSS (FIRST): probability of exploitation.
  • CERT-FR: advisories and alerts (in French).
  • Brand and category: indicative classification by this site (method).