CVE-2012-2311
Description
sapi/cgi/cgi_main.c in PHP before 5.3.13 and 5.4.x before 5.4.3, when configured as a CGI script (aka php-cgi), does not properly handle query strings that contain a %3D sequence but no = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case. NOTE: this vulnerability exists because of an incomplete fix for CVE-2012-1823.
Official description from the CVE record, published by redhat. Copyright © 1999-2026 The MITRE Corporation. See /security/cve/legal for the CVE license. View the record on cve.org
Key data
EPSS
- Score
- 0.69266 (69.3% probability)
- Percentile
- 99.4%
- Scores of
- Nov 10, 2026
- Model
- v2026.06.15
References
- SSRT100856 (marc.info)vendor-advisory
- SUSE-SU-2012:0604 (lists.opensuse.org)vendor-advisory
- 1027022 (securitytracker.com)vdb-entry
- openSUSE-SU-2012:0590 (lists.opensuse.org)vendor-advisory
- bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff-…
- 49014 (secunia.com)third-party-advisory
- SUSE-SU-2012:0598 (lists.opensuse.org)vendor-advisory
- bugs.php.net/bug.php?id=61910
- php.net/archive/2012.php
- APPLE-SA-2012-09-19-2 (lists.apple.com)vendor-advisory
- support.apple.com/kb/HT5501
- SSRT100992 (h20564.www2.hp.com)vendor-advisory
- eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823
- VU#520827 (kb.cert.org)third-party-advisory
- DSA-2465 (debian.org)vendor-advisory
- 49085 (secunia.com)third-party-advisory
- php.net/ChangeLog-5.php
Timeline
- ID reserved
- Record published
- Record last updated
Look up another CVE
About CubePath
Data from the CVE Program (MITRE), CISA KEV and FIRST EPSS. CVSS is owned by FIRST and used by permission. Not affiliated with or endorsed by MITRE, CISA or FIRST. Data as of Nov 10, 2026, 19:46 UTC. Sources and licenses