All vulnerabilities
CVE-2024-4577GHSA-3qgc-jrrr-25jv

PHP-CGI OS Command Injection Vulnerability

PHP Group PHPRuntimes & languages
CVSS
9.8Critical
ExploitationExploited in the wildAdded to KEV 12 Jun 2024. Known ransomware useCISA KEV
Exploit odds (EPSS)>99.9%Chance of exploitation activity in the next 30 days, higher than 99.9% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in8.1.29Also 8.2.20, 8.3.8CVE List
Federal deadline3 Jul 2024Remediation due date for US federal agenciesCISA KEV
CISA required actionApply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable. CISA KEV

What fixes it

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Timeline

  1. 6 Jun 2024Exploit code publicMetasploit
  2. 9 Jun 2024, 19:42 UTCPublishedCVE List
  3. 12 Jun 2024Added to CISA KEVCISA KEV

Public exploit code and templates 3

  • Exploit modulePHP CGI Argument Injection Remote Code Execution 6 Jun 2024Metasploit
  • Webapps exploitPHP CGI Module 8.3.4 - Remote Code Execution (RCE) 15 Jun 2025Exploit-DB
  • Scanner templatePHP CGI - Argument InjectionNuclei

Listed so defenders can prioritize. Threatline links to the source and does not host exploit code.

Reports 2

1 outlet mention it. Reports are not confirmation; each links to its source.

Description

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.

Text from CVE List

Affected versions 6

  • PHPaffected: 8.1.* before 8.1.29CVE List
  • PHPaffected: 8.2.* before 8.2.20CVE List
  • PHPaffected: 8.3.* before 8.3.8CVE List
  • PHP< 8.3.8GitHub
  • PHP< 8.2.20GitHub
  • PHP< 8.1.29GitHub

References 23