CVE-2012-1823

Known Exploited Public Exploit

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.

Category

9.8
CVSS
Severity: Critical
CVSS 3.1 •
CVSS 2.0 •
EPSS 94.39% Top 5%
KEV Since 
Vendor Advisory marc.info Vendor Advisory opensuse.org Vendor Advisory hp.com Vendor Advisory mandriva.com Vendor Advisory opensuse.org Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory redhat.com Vendor Advisory opensuse.org Vendor Advisory redhat.com Vendor Advisory apple.com Vendor Advisory debian.org Vendor Advisory fedoraproject.org Vendor Advisory fedoraproject.org
Affected: n/a n/a
Published at:
Updated at:

References

Link Tags
http://marc.info/?l=bugtraq&m=134012830914727&w=2 vendor advisory mailing list
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html vendor advisory mailing list third party advisory
http://www.securitytracker.com/id?1027022 vdb entry broken link third party advisory
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041 broken link vendor advisory
http://www.mandriva.com/security/advisories?name=MDVSA-2012:068 broken link vendor advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html vendor advisory mailing list third party advisory
http://rhn.redhat.com/errata/RHSA-2012-0546.html vendor advisory third party advisory
http://rhn.redhat.com/errata/RHSA-2012-0568.html vendor advisory third party advisory
http://rhn.redhat.com/errata/RHSA-2012-0569.html vendor advisory third party advisory
http://www.php.net/ChangeLog-5.php#5.4.2 exploit release notes patch
http://secunia.com/advisories/49014 broken link third party advisory
http://rhn.redhat.com/errata/RHSA-2012-0570.html vendor advisory third party advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html vendor advisory mailing list third party advisory
https://bugs.php.net/bug.php?id=61910 patch exploit
http://www.kb.cert.org/vuls/id/673343 third party advisory us government resource
http://rhn.redhat.com/errata/RHSA-2012-0547.html vendor advisory third party advisory
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html vendor advisory mailing list third party advisory
http://support.apple.com/kb/HT5501 third party advisory
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/ broken link exploit
http://secunia.com/advisories/49065 broken link third party advisory
http://www.kb.cert.org/vuls/id/520827 exploit us government resource third party advisory
https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1 patch
http://www.debian.org/security/2012/dsa-2465 vendor advisory third party advisory
http://secunia.com/advisories/49085 broken link third party advisory
http://www.php.net/archive/2012.php#id2012-05-03-1 release notes
http://secunia.com/advisories/49087 broken link third party advisory
http://www.openwall.com/lists/oss-security/2024/06/07/1 mailing list
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGTQUOA2NTZ3RXN22CSAUJPIRUYRB4B/ vendor advisory release notes mailing list
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45DBOH56NQDRTOM2DN2LNA2FZIMC3PK/ vendor advisory release notes mailing list

Frequently Asked Questions

What is the severity of CVE-2012-1823?
CVE-2012-1823 has been scored as a critical severity vulnerability.
How to fix CVE-2012-1823?
To fix CVE-2012-1823, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2012-1823 being actively exploited in the wild?
It is confirmed that CVE-2012-1823 is actively exploited. Be extra cautious if you are using vulnerable components. According to its EPSS score, there is a ~94% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.