CVE-2012-1823

9.8 CRITICAL CISA KEV - Actively Exploited
Published: May 11, 2012 Modified: November 04, 2025

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
Source: cret@cert.org
Broken Link Exploit
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
Source: cret@cert.org
Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
Source: cret@cert.org
Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
Source: cret@cert.org
Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
Source: cret@cert.org
Mailing List Third Party Advisory
http://marc.info/?l=bugtraq&m=134012830914727&w=2
Source: cret@cert.org
Mailing List
http://rhn.redhat.com/errata/RHSA-2012-0546.html
Source: cret@cert.org
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0547.html
Source: cret@cert.org
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0568.html
Source: cret@cert.org
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0569.html
Source: cret@cert.org
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0570.html
Source: cret@cert.org
Third Party Advisory
http://secunia.com/advisories/49014
Source: cret@cert.org
Broken Link
http://secunia.com/advisories/49065
Source: cret@cert.org
Broken Link
http://secunia.com/advisories/49085
Source: cret@cert.org
Broken Link
http://secunia.com/advisories/49087
Source: cret@cert.org
Broken Link
http://support.apple.com/kb/HT5501
Source: cret@cert.org
Third Party Advisory
http://www.debian.org/security/2012/dsa-2465
Source: cret@cert.org
Third Party Advisory
http://www.kb.cert.org/vuls/id/520827
Source: cret@cert.org
Exploit Third Party Advisory US Government Resource
http://www.kb.cert.org/vuls/id/673343
Source: cret@cert.org
Third Party Advisory US Government Resource
http://www.php.net/ChangeLog-5.php#5.4.2
Source: cret@cert.org
Exploit Patch Release Notes
http://www.php.net/archive/2012.php#id2012-05-03-1
Source: cret@cert.org
Release Notes
http://www.securitytracker.com/id?1027022
Source: cret@cert.org
Broken Link Third Party Advisory VDB Entry
https://bugs.php.net/bug.php?id=61910
Source: cret@cert.org
Exploit Patch
http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link Exploit
http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List Third Party Advisory
http://marc.info/?l=bugtraq&m=134012830914727&w=2
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List
http://rhn.redhat.com/errata/RHSA-2012-0546.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0547.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0568.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0569.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://rhn.redhat.com/errata/RHSA-2012-0570.html
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://secunia.com/advisories/49014
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://secunia.com/advisories/49065
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://secunia.com/advisories/49085
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://secunia.com/advisories/49087
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://support.apple.com/kb/HT5501
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://www.debian.org/security/2012/dsa-2465
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory
http://www.kb.cert.org/vuls/id/520827
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Third Party Advisory US Government Resource
http://www.kb.cert.org/vuls/id/673343
Source: af854a3a-2127-422b-91ae-364da2661108
Third Party Advisory US Government Resource
http://www.mandriva.com/security/advisories?name=MDVSA-2012:068
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link
http://www.openwall.com/lists/oss-security/2024/06/07/1
Source: af854a3a-2127-422b-91ae-364da2661108
Mailing List
http://www.php.net/ChangeLog-5.php#5.4.2
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Patch Release Notes
http://www.php.net/archive/2012.php#id2012-05-03-1
Source: af854a3a-2127-422b-91ae-364da2661108
Release Notes
http://www.securitytracker.com/id?1027022
Source: af854a3a-2127-422b-91ae-364da2661108
Broken Link Third Party Advisory VDB Entry
https://bugs.php.net/bug.php?id=61910
Source: af854a3a-2127-422b-91ae-364da2661108
Exploit Patch

60 reference(s) from NVD

Quick Stats

CVSS v3 Score
9.8 / 10.0
EPSS (Exploit Probability)
94.4%
100th percentile
Exploitation Status
Actively Exploited
Remediation due: 2022-04-15

Weaknesses (CWE)

Affected Vendors

hp php suse redhat debian fedoraproject apple opensuse