CVE-2012-1823

CRITICAL
9.8
CVSS Score
Published: May 11, 2012 at 10:00 AM UTC
Updated: June 16, 2026 at 11:40 PM UTC
17 products affected across 8 vendorsmacOSDebian LinuxFedora

Using N/A by N/A?

Get instant alerts when new vulnerabilities affect N/A - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
CRITICAL9.8
Exploitation
CISA KEV
Exploit prediction
EPSS 100%
SSVC
Active

Actively Exploited

CISA Known Exploited Vulnerabilities (KEV) Catalog

EPSS Score100.0%

EPSS (Exploit Prediction Scoring System) estimates a 100.0% chance this CVE is exploited in the wild within the next 30 days — higher than 100% of all CVEs. It complements CVSS: a high EPSS on a mid-severity CVE can still be urgent.

sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.

Required Action
Apply updates per vendor instructions.
Ransomware Use
Unknown
Added to KEV
Mar 25, 2022
Remediation Due
Apr 15, 2022
1656 days overdue

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

10.6.8 ≤ v < 10.7.510.8.0 ≤ v < 10.8.2
Affected range stops below 10.7.5, so it looks safe — our inference, not a vendor statement
Affected range stops below 10.8.2, so it looks safe — our inference, not a vendor statement
PHP· PHPdrupal
95%
v < 5.3.125.4.0 ≤ v < 5.4.2
Affected range stops below 5.3.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.4.2, so it looks safe — our inference, not a vendor statement

References (31)

SSVC — Action Prioritization

SSVCActiveAutomatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

9.8CRITICALCISA-ADP
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-77

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card