CVEBrief

Home / PHP Group / PHP / CVE-2024-4577

CVE-2024-4577: is it exploited, and which versions of PHP Group PHP are affected and fixed?

CVE-2024-4577 is an OS command injection vulnerability in PHP Group PHP, and it is exploited in the wild: CISA added it to its Known Exploited Vulnerabilities catalog on June 12, 2024, with a federal due date of July 3, 2024. Affected: PHP from 8.1.* before 8.1.29, PHP from 8.2.* before 8.2.20 and PHP from 8.3.* before 8.3.8 (CVE record by php). Fixed in 8.1.29, 8.2.20 and 8.3.8 (CVE record by php). Severity: Critical (9.8, CVSS 3.1, from php).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 10:38 UTC, CVE record November 28, 2026, 16:16 UTC and NVD November 19, 2026, 07:29 UTC.

Exploited in the wild
Yes, CISA KEV
added June 12, 2024, due July 3, 2024, used in ransomware
Affected
PHP from 8.1.* before 8.1.29, PHP from 8.2.* before 8.2.20 and PHP from 8.3.* before 8.3.8
CVE record by php
Fixed in
8.1.29, 8.2.20 and 8.3.8
CVE record by php
Severity
Critical 9.8
CVSS 3.1 from php
Exploit odds (EPSS)
100.0% in 30 days
higher than 100% of CVEs; FIRST, December 2, 2026

What is CVE-2024-4577?

Argument Injection in PHP-CGI

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.

From the CVE record by php, last updated October 21, 2025, 23:05 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
PHP GroupPHP
Windows
from 8.1.* before 8.1.29
from 8.2.* before 8.2.20
from 8.3.* before 8.3.8
8.1.29, 8.2.20, 8.3.8

As the CVE record by php states it, last updated October 21, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which products and versions does the NVD list as affected?

VendorProductVersionsType
phpphpfrom 8.1.0 before 8.1.29application
phpphpfrom 8.2.0 before 8.2.20application
phpphpfrom 8.3.0 before 8.3.8application
fedoraprojectfedora39operating system
fedoraprojectfedora40operating system

NVD analysis (status Analyzed), last modified June 17, 2026, 08:02 UTC.

How severe is CVE-2024-4577?

ScoreVersionVectorSource
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:Hphp
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2024-4577 exploited in the wild?

CISA KEV
Listed as PHP-CGI OS Command Injection Vulnerability, added June 12, 2024; federal agencies must act by July 3, 2024
Required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Ransomware use
Known
CISA's summary
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.
CISA SSVC
Exploitation: active; automatable: yes; technical impact: total (CISA ADP, June 15, 2024)
EPSS
100.0% probability of exploitation activity in the next 30 days, percentile 100.0 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

Who found and reported it?

As published in the CVE record; contact details are removed.

When was it published, and where is the official record?

Reserved
May 6, 2024
Published
June 9, 2024, 19:42 UTC
CVE record updated
October 21, 2025, 23:05 UTC by php
NVD
Analyzed, last modified June 17, 2026, 08:02 UTC
Last checked
CVE list November 28, 2026, 16:16 UTC; NVD November 19, 2026, 07:29 UTC; KEV December 3, 2026, 10:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD · CISA KEV

What other CVEs affect PHP?

Every CVE in PHP

Questions about CVE-2024-4577

Is CVE-2024-4577 exploited in the wild?

Yes. CISA added CVE-2024-4577 to its Known Exploited Vulnerabilities catalog on June 12, 2024 and set federal agencies a due date of July 3, 2024. CISA lists it as used in ransomware campaigns. FIRST's EPSS gives it a 100.0% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of PHP Group PHP are affected by CVE-2024-4577?

PHP from 8.1.* before 8.1.29, PHP from 8.2.* before 8.2.20 and PHP from 8.3.* before 8.3.8, per the CVE record by php. The tables above give every range the sources list.

Which version fixes CVE-2024-4577?

8.1.29, 8.2.20 and 8.3.8, per the CVE record by php. Check the vendor's advisory before you rely on it.

How severe is CVE-2024-4577?

Critical (9.8, CVSS 3.1, from php). The severity table above shows each score with its source.

Where is the official record of CVE-2024-4577?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov; CISA's entry is in its Known Exploited Vulnerabilities catalog. For a fix, the vendor's own advisory is the one to follow.