CVE-2012-1823

CRITICALCVSS 9.8/10Actively ExploitedEPSS 100.00%

Last modified

CVE-2012-1823 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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.. CISA has confirmed active exploitation in the wild. EPSS estimates a 100.00% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
9.8/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

EPSS Probability
100.00%

100.0th percentile

Probability of exploitation in the next 30 days. Learn more

Exploitation Status

This vulnerability is listed in CISA’s Known Exploited Vulnerabilities catalog, confirming active exploitation in the wild. Federal agencies must remediate by .

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
PhpPhp< 5.3.12
PhpPhp>= 5.4.0, < 5.4.2
FedoraprojectFedora39
FedoraprojectFedora40
DebianDebian Linux6.0
HpHp-Uxb.11.23
HpHp-Uxb.11.31
OpensuseOpensuse11.4
OpensuseOpensuse12.1
SuseLinux Enterprise Server10Sp4
SuseLinux Enterprise Server11Sp2
SuseLinux Enterprise Software Development Kit10Sp4
SuseLinux Enterprise Software Development Kit11Sp2
AppleMac Os X>= 10.6.8, < 10.7.5
AppleMac Os X>= 10.8.0, < 10.8.2
RedhatApplication Stack2.0
RedhatGluster Storage Server For On-Premise2.0
RedhatStorage2.0
RedhatStorage For Public Cloud2.0
RedhatEnterprise Linux Desktop6.0
RedhatEnterprise Linux Eus5.6
RedhatEnterprise Linux Eus6.1
RedhatEnterprise Linux Eus6.2
RedhatEnterprise Linux Server5.0
RedhatEnterprise Linux Server6.0
RedhatEnterprise Linux Server Aus5.3
RedhatEnterprise Linux Server Aus5.6
RedhatEnterprise Linux Workstation5.0
RedhatEnterprise Linux Workstation6.0

References

Timeline

Published
Last Modified
Status
Analyzed

Frequently Asked Questions

What is 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 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.
How severe is CVE-2012-1823?
CVE-2012-1823 has a CVSS score of 9.8/10 (CRITICAL severity). The EPSS model estimates a 100.00% probability of exploitation in the next 30 days. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog.
How do I fix CVE-2012-1823?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2012-1823?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST