PHP · PHP · CWE-20 · published 2012-05-11

CVE-2012-1823PHP-CGI Query String Parameter Vulnerability

Patch today Known exploited server software, exploitation is automatable, total technical impact.

CVE-2012-1823 is actively exploited in the wild: CISA added it to the Known Exploited Vulnerabilities catalog on 2022-03-25. EPSS estimates a 100% chance of exploitation in the next 30 days, higher than 99% of all CVEs. This PHP vulnerability: CVSS 9.8 (v3.1), attacks can be automated, a successful attack gives total control of the component. CISA’s required action: Apply updates per vendor instructions. US federal agencies must remediate by 2022-04-15. Patch today.

Share this

Remediation#

CISA required action: Apply updates per vendor instructions. (federal due date 2022-04-15)

Patch events

  1. Patch todayExploited (KEV)CISA due 2022-04-15

    Language runtimePHP

    -CGI Query String ParameterCVE-2012-1823

    Why: Known exploited server software, exploitation is automatable, total technical impact.

Exploit intelligence#

SignalValueSource
Known exploitedYes, added 2022-03-25CISA KEV
Ransomware useUnknownCISA KEV
EPSS (30-day exploitation probability)100% (100th pct)FIRST EPSS v2026.06.15
CVSS base score9.8 (v3.1)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA / CISA ADP
SSVC exploitationactiveCISA Vulnrichment
SSVC automatableYesCISA Vulnrichment
SSVC technical impacttotalCISA Vulnrichment

Weakness: CWE-20: Improper Input Validation

More from this vendor: all PHP vulnerabilities · recent KEV additions

Affected versions (from the CVE record)#

Description (from the CVE record)#

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.

Quoted from the CVE Program record.

Elsewhere#

Distro status: Debian · Ubuntu · Red Hat · Alpine

Something wrong on this page?
Anonymous. Reports are checked against the primary source.

Also on today's list

See today's list → · Coming up →