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.
Jump to: Remediation Exploit intelAffected versionsDescription
Remediation#
CISA required action: Apply updates per vendor instructions. (federal due date 2022-04-15)
Patch events
Language runtimePHP
-CGI Query String ParameterCVE-2012-1823
Why: Known exploited server software, exploitation is automatable, total technical impact.
Exploit intelligence#
| Signal | Value | Source |
|---|---|---|
| Known exploited | Yes, added 2022-03-25 | CISA KEV |
| Ransomware use | Unknown | CISA KEV |
| EPSS (30-day exploitation probability) | 100% (100th pct) | FIRST EPSS v2026.06.15 |
| CVSS base score | 9.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 exploitation | active | CISA Vulnrichment |
| SSVC automatable | Yes | CISA Vulnrichment |
| SSVC technical impact | total | CISA Vulnrichment |
Weakness: CWE-20: Improper Input Validation
More from this vendor: all PHP vulnerabilities · recent KEV additions
Affected versions (from the CVE record)#
- Product
n/a(affected)
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.