kbrain

CVE-2012-1823

CRITICAL · CVSS 9.8CISA KEV: actively exploitedEPSS 100.0%EU EUVD: exploited

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.

Key facts

CVSS score
9.8 (v3.1)
Severity
CRITICAL
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness (CWE)
CWE-77
EPSS score
100.0% (100th percentile)
In CISA KEV
Yes, added March 25, 2022
In EU EUVD
Yes (EUVD-2012-1833)
Published
May 11, 2012
NVD last modified
June 16, 2026
Status
Analyzed

CISA Known Exploited Vulnerability

PHP-CGI Query String Parameter Vulnerability

Added to the KEV catalog on March 25, 2022; federal remediation due April 15, 2022.

EU Vulnerability Database (EUVD)

This vulnerability is also tracked by ENISA as EUVD-2012-1833 in the EU Vulnerability Database. ENISA flags it as known exploited. Last updated in EUVD on November 4, 2025.

View on the EU Vulnerability Database

Affected products

  • apple / mac os x
  • debian / debian linux
  • fedoraproject / fedora
  • fedoraproject / fedora
  • hp / hp-ux
  • hp / hp-ux
  • opensuse / opensuse
  • opensuse / opensuse
  • php / php
  • redhat / application stack
  • redhat / enterprise linux desktop
  • redhat / enterprise linux eus
  • redhat / enterprise linux eus
  • redhat / enterprise linux eus
  • redhat / enterprise linux server
  • redhat / enterprise linux server
  • redhat / enterprise linux server aus
  • redhat / enterprise linux server aus
  • redhat / enterprise linux workstation
  • redhat / enterprise linux workstation
  • redhat / gluster storage server for on-premise
  • redhat / storage
  • redhat / storage for public cloud
  • suse / linux enterprise server
  • suse / linux enterprise server
  • suse / linux enterprise server
  • suse / linux enterprise software development kit
  • suse / linux enterprise software development kit

Certified products that may be affected

4 FIPS 140 or Common Criteria certified products, from automated matching by sec-certs.org.

References

Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS

Query CVEs from your AI assistant

The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.

Add the CVE brain
CVE-2012-1823: CRITICAL severity (CVSS 9.8)