CVE-2012-1823
PHP-CGI Query String Parameter Vulnerability
CVSS
9.8CriticalExploit 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
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
- 3 May 2012Exploit code publicMetasploit
- 11 May 2012, 10:00 UTCPublishedCVE List
- 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
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/Advisoryvia CVE List
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/Advisoryvia CVE List
- nvd.nist.gov/vuln/detail/CVE-2012-1823Referencevia CISA KEV
- bugs.php.net/bug.php?id=61910Referencevia CVE List
- bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1Referencevia CVE List
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/Referencevia CVE List
- cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2012-1823Referencevia CVE List