Skip to content

CVE-2024-4577

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
9.8Criticalscored by the publisher (CNA)
Exploited in the wild
Yes, in CISA KEV since 12 Jun 2024CISA deadline for US federal agencies: 3 Jul 2024known use in ransomware campaignspublic exploit code
EPSS
> 99.9%chance of exploitation in the next 30 daystop 0.1% of scored CVEsFIRST score of 11 Nov 2026
Fix
Fixed in 8.1.29, 8.2.20, 8.3.8per the vendor
Published
9 Jun 2024analysed here 12 Nov 2026

Do first. Upgrade to a fixed release: 8.1.29, 8.2.20, 8.3.8.

Summary

Triage

Attack surface
Server-side
Exploitable
At runtime
Attack vector
network
Weakness

The summary, impact and action text on this page are written by our AI analysis pipeline, or taken from the NVD description when a CVE was imported from NVD. They are not the vendor's wording: check them against the sources. A longer AI executive summary and technical analysis are generated for signed-in accounts on the Max plan.

Affected products

ProductAffected versions
libphpfrom the Bitnami advisory, via OSV< 8.1.29>= 8.2.0 and < 8.2.20>= 8.3.0 and < 8.3.8Vendor says fixed in: 8.1.29, 8.2.20, 8.3.8
PHPfrom the Bitnami advisory, via OSV< 8.1.29>= 8.2.0 and < 8.2.20>= 8.3.0 and < 8.3.8Vendor says fixed in: 8.1.29, 8.2.20, 8.3.8
PHP Group PHP>= 8.1.* and < 8.1.29>= 8.2.* and < 8.2.20>= 8.3.* and < 8.3.8Vendor says fixed in: not stated

As published in the CVE Program record, and, for products that ship the affected component, in the advisory named beside them. A version outside these ranges is not a statement that it is unaffected — vendors sometimes understate a range, and distribution-backported builds carry upstream numbers that do not reflect what was patched into them.

Products named in our analysis

  • php:php
  • fedoraproject:fedora

Fix and mitigation

WAF and other mitigations

Can a WAF block it? Partly. OS command injection puts shell syntax into the request. WAF rules catch common shell commands but miss encoded or unusual payloads.

Also consider: shlex/execve-style APIs

Based on the weakness type only; no CVE-specific evidence yet. We check Cloudflare, AWS, Google Cloud Armor and Azure; for Akamai, Imperva, Fastly, F5, ask your vendor.

Remediation steps (AI-written)

Step-by-step remediation is generated for accounts on the Max plan, for CVEs that match a technology in their stack. Add this technology to your stack to see the fix checklist.

Exploitation evidence

CISA KEV catalog
Listed since 12 Jun 2024. Known use in ransomware campaigns.
CISA due date
3 Jul 2024, the remediation deadline for US federal agencies
CISA required action
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
Public exploit code
Yes: 1 on Exploit-DB · 1 Metasploit module · 73 GitHub proofs of concept · 1 Nuclei template
CISA SSVC
exploitation active, automatable yes, technical impact totalAssessed by CISA 15 Jun 2024 (SSVC 2.0.3). Exploitation is none, poc (public proof of concept) or active.

Nuclei

GitHub proofs of concept

and 69 more repositories

Listed so you can judge urgency, not as a recommendation to run anything. GitHub “proofs of concept” are unvetted: some are fake or carry malware. Exploit-DB marks the entries its staff verified.

Timeline

  1. 7 Jun 2024First public exploit or proof of concept
  2. 9 Jun 2024Published3 days later
  3. 12 Jun 2024Added to CISA KEV (exploited in the wild)2 days later
  4. 15 Jun 2024CISA SSVC assessment: exploitation active3 days later
  5. 3 Jul 2024CISA remediation due date (US federal agencies)18 days later
  6. 21 Oct 2025CVE record last updated476 days (about 1 year) later
  7. 12 Nov 2026Analysed by vulneraibility.com387 days (about 1 year) later

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

MetricValueWhat it means
Attack vectorNetworkReachable over the internet or any routable network.
Attack complexityLowRepeatable attack, no special conditions.
Privileges requiredNoneThe attacker needs no prior access.
User interactionNoneNo victim action needed.
ScopeUnchangedImpact stays within the vulnerable component.
ConfidentialityHighTotal data disclosure possible.
IntegrityHighComplete modification possible.
AvailabilityHighFull outage possible.

Common questions

Is CVE-2024-4577 being exploited?

Yes. CVE-2024-4577 appears in CISA's Known Exploited Vulnerabilities catalog, which means exploitation in the wild has been confirmed and reported. Treat it as active rather than theoretical, and patch it ahead of higher-scoring vulnerabilities that carry no exploitation evidence.

How severe is CVE-2024-4577?

CVE-2024-4577 is rated Critical with a CVSS score of 9.8. Severity describes how bad exploitation would be, not how likely it is: pair it with exploitation evidence before deciding what to patch first.

Is there a patch for CVE-2024-4577?

Yes. A fix has been recorded for CVE-2024-4577. The vendor advisory is the authority on the exact fixed version — apply it from there rather than from a summary.

What does CVE-2024-4577 affect?

CVE-2024-4577 affects php:php, fedoraproject:fedora. Confirm the exact affected versions against the vendor advisory before deciding you are exposed.

Exploitation status reflects CISA's KEV catalog as we last synced it. Check the catalog directly.

References

NVDCVE.orgCVE DetailsSource

23 references in the CVE record, grouped by the tags the record gives them.

Other links (23)

  • github.com /php/php-src/security/advisories/GHSA-3qgc-jrrr-25jv
  • blog.orange.tw /2024/06/cve-2024-4577-yet-another-php-rce.html
  • devco.re /blog/2024/06/06/security-alert-cve-2024-4577-php-cgi-argument-injection-vulnera
  • arstechnica.com /security/2024/06/php-vulnerability-allows-attackers-to-run-malicious-code-on-wi
  • imperva.com /blog/imperva-protects-against-critical-php-vulnerability-cve-2024-4577/
  • github.com /11whoami99/CVE-2024-4577
Show 17 more

Also tracked as GHSA-3qgc-jrrr-25jv (OSV).

Where the data on this page comes from

Summary, impact and triage tags: written by our AI analysis pipeline from the sources above. Check them against the sources.

Similar CVEs

Get CVEs like this by email. Join the free digest: the CVEs we flag as major, all CVSS 8.0 or higher, in up to three emails a day (sent at 05:00, 11:00 and 15:00 UTC). Matching alerts to the products you run needs an account, and accounts are invite-only during the beta.

© 2026 vulneraibility.com