All vulnerabilities
CVE-2012-1823

PHP-CGI Query String Parameter Vulnerability

PHP PHPRuntimes & languages
CVSS
9.8Critical
ExploitationExploited in the wildAdded to KEV 25 Mar 2022CISA 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 inNone listedNo source names a fixed version. Check the vendor advisory below
Federal deadline15 Apr 2022Remediation due date for US federal agenciesCISA KEV
CISA required actionApply updates per vendor instructions. CISA KEV

What fixes it

No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.

Timeline

  1. 3 May 2012Exploit code publicMetasploit
  2. 11 May 2012, 10:00 UTCPublishedCVE List
  3. 25 Mar 2022Added to CISA KEVCISA KEV

Public exploit code and templates 6

  • Exploit modulePHP CGI Argument Injection 3 May 2012Metasploit
  • Remote exploitApache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution + Scanner 31 Oct 2013Exploit-DB
  • Remote exploitApache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution 29 Oct 2013Exploit-DB
  • Remote exploitPHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit) 4 May 2012Exploit-DB
  • Remote exploitPHP < 5.3.12 / < 5.4.2 - CGI Argument Injection 5 May 2012Exploit-DB
  • Scanner templatePHP CGI v5.3.12/5.4.2 Remote Code ExecutionNuclei

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

Description

sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.

Text from CVE List

Affected versions 1

  • n/aaffected: n/aCVE List

References 7