CVE-2012-1823sapi/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 al…
Updated under an hour ago ()
Does this affect you?
It affects php and 16 other products. Add what you run to find out whether that includes you.
CISA lists it as known exploited since Mar 25, 2022; federal agencies had to remediate by Apr 15, 2022. Treat that date as your deadline.
Do this next
Free account, 1 product
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.
- CVSS
- 9.8 CRITICAL (v3.1, CISA ADP)CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness (CWE)
- CWE-77
- Known exploited
- Added to CISA KEV Mar 25, 2022; federal remediation due Apr 15, 2022Apply updates per vendor instructions.
- EPSS (exploitation in the next 30 days)
- 100.00% (percentile 100)
- Assigned by
- certcc
- NVD analysis
- Analyzed
- Record last updated
- Nov 4, 2025
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
php php php:php | before 5.3.12; from 5.4.0 before 5.4.2 | NVD |
fedoraproject fedora fedoraproject:fedora | 39; 40 | NVD |
debian debian_linux debian:debian_linux | 6.0 | NVD |
hp hp-ux hp:hp-ux | b.11.23; b.11.31 | NVD |
opensuse opensuse opensuse:opensuse | 11.4; 12.1 | NVD |
suse linux_enterprise_server suse:linux_enterprise_server | 10; 11; 11 | NVD |
suse linux_enterprise_software_development_kit suse:linux_enterprise_software_development_kit | 10; 11 | NVD |
apple mac_os_x apple:mac_os_x | from 10.6.8 before 10.7.5; from 10.8.0 before 10.8.2 | NVD |
redhat application_stack redhat:application_stack | 2.0 | NVD |
redhat gluster_storage_server_for_on-premise redhat:gluster_storage_server_for_on-premise | 2.0 | NVD |
redhat storage redhat:storage | 2.0 | NVD |
redhat storage_for_public_cloud redhat:storage_for_public_cloud | 2.0 | NVD |
redhat enterprise_linux_desktop redhat:enterprise_linux_desktop | 6.0 | NVD |
redhat enterprise_linux_eus redhat:enterprise_linux_eus | 5.6; 6.1; 6.2 | NVD |
redhat enterprise_linux_server redhat:enterprise_linux_server | 5.0; 6.0 | NVD |
redhat enterprise_linux_server_aus redhat:enterprise_linux_server_aus | 5.3; 5.6 | NVD |
redhat enterprise_linux_workstation redhat:enterprise_linux_workstation | 5.0; 6.0 | NVD |
References
- http://marc.info/?l=bugtraq&m=134012830914727&w=2vendor-advisory, mailing-list
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00011.htmlvendor-advisory, mailing-list, third-party-advisory
- http://www.securitytracker.com/id?1027022vdb-entry, broken-link, third-party-advisory
- http://h20000.www2.hp.com/bizsupport/TechSupport/Document.jsp?objectID=c03360041vendor-advisory, broken-link
- http://www.mandriva.com/security/advisories?name=MDVSA-2012:068vendor-advisory, broken-link
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00002.htmlvendor-advisory, mailing-list, third-party-advisory
- http://rhn.redhat.com/errata/RHSA-2012-0546.htmlvendor-advisory, third-party-advisory
- http://rhn.redhat.com/errata/RHSA-2012-0568.htmlvendor-advisory, third-party-advisory
- http://rhn.redhat.com/errata/RHSA-2012-0569.htmlvendor-advisory, third-party-advisory
- http://www.php.net/ChangeLog-5.php#5.4.2exploit, patch, release-notes
- http://secunia.com/advisories/49014third-party-advisory, broken-link
- http://rhn.redhat.com/errata/RHSA-2012-0570.htmlvendor-advisory, third-party-advisory
- http://lists.opensuse.org/opensuse-security-announce/2012-05/msg00007.htmlvendor-advisory, mailing-list, third-party-advisory
- https://bugs.php.net/bug.php?id=61910
- http://www.kb.cert.org/vuls/id/673343third-party-advisory, us-government-resource
- http://rhn.redhat.com/errata/RHSA-2012-0547.htmlvendor-advisory, third-party-advisory
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.htmlvendor-advisory, mailing-list, third-party-advisory
- http://support.apple.com/kb/HT5501third-party-advisory
- http://eindbazen.net/2012/05/php-cgi-advisory-cve-2012-1823/broken-link, exploit
- http://secunia.com/advisories/49065third-party-advisory, broken-link
- http://www.kb.cert.org/vuls/id/520827third-party-advisory, exploit, us-government-resource
- https://bugs.php.net/patch-display.php?bug_id=61910&patch=cgi.diff&revision=1335984315&display=1
- http://www.debian.org/security/2012/dsa-2465vendor-advisory, third-party-advisory
- http://secunia.com/advisories/49085third-party-advisory, broken-link
- http://www.php.net/archive/2012.php#id2012-05-03-1release-notes
- http://secunia.com/advisories/49087broken-link
- http://www.openwall.com/lists/oss-security/2024/06/07/1mailing-list
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.