CVE-2012-1823
PHP — PHP-CGI Query String Parameter Vulnerability
PHP · CWE-77 · in CISA KEV since 2022-03-25
EVRS 87 of 100 Immediate
Out-of-Band / Urgent Remediation
Rank 200 of 2,960 tracked
Why it scores 87
Evidence available: 6 of 7 signalsListed in the CISA KEV catalog, and an EPSS probability of 0.999.
- CISA KEVApplied
- RansomwareDid not apply
- Vendor exploitationDid not apply
- EPSSApplied
- Microsoft Exploitability IndexNot applicable
- Pre-patch disclosureNo data
- KEV recencyDid not apply
- CVSSApplied
The band answers “how soon”, not “how bad”. No data for: Pre-patch disclosure. Why some signals show no data
Fix
Patch or fixed version identifiedCISA required action
Fixed in
php: update to 5.3.12 or later | php: update to 5.4.2 or later | mac os x: update to 10.7.5 or later | mac os x: update to 10.8.2 or later
Affected versions
- php
< 5.3.12>= 5.4.0 < 5.4.2 - application stack
2.0 - gluster storage server for on-premise
2.0 - storage
2.0 - storage for public cloud
2.0 - fedora
3940 - debian linux
6.0 - hp-ux
b.11.23b.11.31
+9 more affected products; see the full list at NVD.
Remediation
Apply updates per vendor instructions.
Fixed versions from NVD.
Evidence
Each value with its source| Measure | Value | Source |
|---|---|---|
| CVSS base scoreHow severe the flaw is in itself. It does not say how likely an attack is. | 9.8 | NVD |
| FIRST EPSSFIRST's estimate of the chance this is exploited in the next 30 days, and how that ranks against all CVEs. | 0.999 (99.99th pctl) | FIRST EPSS |
| Actively exploitedWhether a source of record has confirmed attacks using it in the wild. | Confirmed | CISA KEV |
| Ransomware campaign useWhether CISA has seen ransomware operators use it. | Unknown or none | CISA KEV |
| CISA remediation deadlineThe date US federal agencies must have fixed or mitigated it. | 2022-04-15 · KEV since 2022 · listed over a year | CISA KEV |
| Public exploit moduleA module existing is not the same as active exploitation. | Public module exists | Metasploit |
| EUVD cross-referenceENISA's record: CVSS 9.8 (v3.1), assigned by certcc. | Listed | ENISA EUVD |
Description
NVDsapi/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.
What CISA says to do
Public module
Metasploit lists a public excellent-rank module for this CVE: PHP CGI Argument Injection (multi/http/php_cgi_arg_injection). A module existing is not the same as active exploitation; see metasploit.com.
