IDORSSRFAUTH BYPASSJWT FORGERYRACE CONDITIONXXEBROKEN OBJECT-LEVEL AUTHPRIVILEGE ESCALATIONMASS ASSIGNMENTGRAPHQL INTROSPECTION ABUSEIDORSSRFAUTH BYPASSJWT FORGERYRACE CONDITIONXXEBROKEN OBJECT-LEVEL AUTHPRIVILEGE ESCALATIONMASS ASSIGNMENTGRAPHQL INTROSPECTION ABUSE
Impactr Logoimpactr
FeaturesHow it worksEvidencePricingLearnVulnerability DBCompare
  1. Home
  2. Vulnerability Database
  3. CVE-2024-4577
CVE-2024-4577 CISA KEV — actively exploited Ransomware-linked

PHP-CGI OS Command Injection Vulnerability

PHP Group — PHP

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 scoreCritical

9.8

EPSS — exploitation probabilityCritical

100.0%

Vector breakdown

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Published
Jun 9, 2024
Modified
Oct 21, 2025
Added to KEV
Jun 12, 2024
Federal patch due
Jul 3, 2024

CISA required action

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

Weakness classification

CWE-78Improper Neutralization of Special Elements used in an OS Command

Proof-of-concept & exploitation references

Weaponization

Nuclei template

Available

Metasploit module

Not found

Public repositories whose name or description references CVE-2024-4577, found via a live GitHub search at request time. These are community-sourced signals, not a verified working exploit - cross-check each one before relying on it, and treat higher star counts and recent activity as (weak) corroboration, not proof.

No public GitHub repositories referencing CVE-2024-4577 were found at last check. Absence here is not proof no exploit exists - see the references below for vendor advisories and write-ups.

References

  • github.com
  • blog.orange.tw
  • devco.re
  • arstechnica.com
  • imperva.com
  • github.com
  • github.com
  • github.com
  • labs.watchtowr.com
  • github.com
  • php.net
  • php.net
  • php.net
  • cert.be
  • isc.sans.edu
  • openwall.com
  • lists.fedoraproject.org
  • lists.fedoraproject.org
  • security.netapp.com

Frequently asked questions

What is 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.

How severe is CVE-2024-4577?

CVE-2024-4577 has a CVSS base score of 9.8 out of 10 (CVSS 3.1).

Is CVE-2024-4577 actively exploited in the wild?

Yes. CVE-2024-4577 is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, added Jun 12, 2024, meaning CISA has confirmed evidence of active exploitation. It is also flagged as used in ransomware campaigns.

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

100.0% - meaning FIRST.org's EPSS model estimates a 100.0% probability this vulnerability will be exploited in the wild within 30 days (100% percentile among all scored CVEs).

Is there exploit tooling available for CVE-2024-4577?

Yes - a public Nuclei template referencing CVE-2024-4577 exist in public repositories we checked.

What type of vulnerability is CVE-2024-4577?

CVE-2024-4577 is classified under CWE-78 (CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')).

Cross-checked against

  • NVD (NIST)
  • MITRE CVE Record
  • CISA KEV
  • FIRST.org EPSS
  • GitHub Advisory Database
  • GitHub public repository search

Impactr finds and proves whether CVE-2024-4577 - or flaws like it - are actually reachable in your own web apps and APIs, with a reproducible exploit as evidence.

Join the waitlist
← Vulnerability database
Impactr Logoimpactr

Built by hackers, for the code you ship. Autonomous AI penetration testing for modern web apps and APIs.

© 2026 Impactr

Product

FeaturesCoverageUse casesEvidencePricingWaitlist

Resources

VulnerabilitiesVulnerability databaseGuidesComparisonsGlossaryCWE databaseBy industryBy languageHTTP status codesSecurity headers

Company

ContactTwitterLinkedInGitHub