Skip to content
CVE Tracker
Back

CVE-2012-1823

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…

Critical9.8Known exploitedEPSS 100.0%
Published
Updated
Reserved
Assigned by
certcc

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.

Exploited in the wild

CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as PHP-CGI Query String Parameter Vulnerability.

Added
25 Mar 2022
Fix due (US federal)
15 Apr 2022
Used by ransomware
Not known

Apply updates per vendor instructions.

Scores

CVSS scores of CVE-2012-1823, by who scored it
Scored byCVSSScoreVector
CISA-ADPADP (enrichment)3.1Critical9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVDNVD · Analyzed3.1Critical9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS (exploitation in 30 days)
100.0% · top 0.1% of all CVEs (2 Nov 2026)
CISA SSVC
Exploitation: active · Automatable: yes · Technical impact: total

Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Critical 9.8.

Weakness

Affected products

  • n/a

    • affected n/a

References (31)

Sources

The same CVE in the primary databases and aggregators, to check against.

Record last updated .