[ CVE-2012-1823 · Published 11 May 2012 ]
PHP-CGI Query String Parameter Vulnerability
Exploited · CISA KEV CVSS 9.8
EPSS 100%Fix available
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2022-03-25
- EPSS: 100% chance of exploitation in the next 30 days (higher than 100% of CVEs)
- Critical severity: CVSS 9.8
[ Description ]Official description
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (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.
CISA: 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.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 15 Apr 2022): Apply updates per vendor instructions.
- Patch on php.netVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on bugs.php.netVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
- Patch on bugs.php.netVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823Broken LinkExploit
- h20000.www2.hp.com/bizsupport/TechSupport/Document.jspBroken Link
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlMailing ListThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.htmlMailing ListThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.htmlMailing ListThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.htmlMailing ListThird Party Advisory
- marc.infoMailing List
- rhn.redhat.com/errata/RHSA-2012-0546.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2012-0547.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2012-0568.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2012-0569.htmlThird Party Advisory
- rhn.redhat.com/errata/RHSA-2012-0570.htmlThird Party Advisory
- secunia.com/advisories/49014Broken Link
- secunia.com/advisories/49065Broken Link
- secunia.com/advisories/49085Broken Link
- secunia.com/advisories/49087Broken Link
- support.apple.com/kb/HT5501Third Party Advisory
- www.debian.org/security/2012/dsa-2465Third Party Advisory
- www.kb.cert.org/vuls/id/520827ExploitThird Party AdvisoryUS Government Resource
- www.kb.cert.org/vuls/id/673343Third Party AdvisoryUS Government Resource
- www.mandriva.com/security/advisoriesBroken Link
- www.openwall.com/lists/oss-security/2024/06/07/1Mailing List
- www.php.net/ChangeLog-5.phpExploitPatchRelease Notes
- www.php.net/archive/2012.phpRelease Notes
- www.securitytracker.com/idBroken LinkThird Party AdvisoryVDB Entry
- bugs.php.net/bug.phpExploitPatch
- bugs.php.net/patch-display.phpPatch
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag…Mailing ListRelease Notes
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/messag…Mailing ListRelease Notes
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/…Mailing ListRelease Notes
- www.cisa.gov/known-exploited-vulnerabilities-catalogUS Government Resource