CVE-2012-1823: PHP-CGI Query String Parameter Vulnerability
Critical · CVSS 9.8 (CVSS 3.1)KEV known exploitedEPSS 100.0%, 100th percentilePublished Updated Assigner: certcc
In CISA’s Known Exploited Vulnerabilities catalog: PHP-CGI Query String Parameter Vulnerability.
Added , federal remediation due . Known ransomware use: Unknown.
Required action: Apply updates per vendor instructions.
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.
Vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Status incidents that name it
No tracked status incident names this CVE.
Affected vendors and products
PHP: PHP
References
- CVE record on cve.org (opens in new tab)
- NVD entry (opens in new tab)
- eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/ (opens in new tab)
- h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp (opens in new tab)
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.html (opens in new tab)
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.html (opens in new tab)
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.html (opens in new tab)
- lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.html (opens in new tab)
- marc.info (opens in new tab)
- rhn.redhat.com/errata/RHSA-2012-0546.html (opens in new tab)
- rhn.redhat.com/errata/RHSA-2012-0547.html (opens in new tab)
- rhn.redhat.com/errata/RHSA-2012-0568.html (opens in new tab)
- rhn.redhat.com/errata/RHSA-2012-0569.html (opens in new tab)
- rhn.redhat.com/errata/RHSA-2012-0570.html (opens in new tab)
- bugs.php.net/bug.php (opens in new tab)
- bugs.php.net/patch-display.php (opens in new tab)
- secunia.com/advisories/49014 (opens in new tab)
- secunia.com/advisories/49065 (opens in new tab)
- secunia.com/advisories/49085 (opens in new tab)
- secunia.com/advisories/49087 (opens in new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/PKGT… (opens in new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/W45D… (opens in new tab)
- support.apple.com/kb/HT5501 (opens in new tab)
- www.debian.org/security/2012/dsa-2465 (opens in new tab)
- www.kb.cert.org/vuls/id/520827 (opens in new tab)
- www.kb.cert.org/vuls/id/673343 (opens in new tab)
- www.mandriva.com/security/advisories (opens in new tab)
- www.openwall.com/lists/oss-security/2024/06/07/1 (opens in new tab)
- www.php.net/archive/2012.php (opens in new tab)
- www.php.net/ChangeLog-5.php (opens in new tab)
- www.securitytracker.com/id (opens in new tab)
- CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (opens in new tab)
- This product uses data from the NVD API but is not endorsed or certified by the NVD. (opens in new tab)
- Known Exploited Vulnerabilities catalog from CISA. (opens in new tab)
- EPSS scores from FIRST (Exploit Prediction Scoring System). (opens in new tab)