CVE-2012-1823
Published: March 25, 2022
Official Description
sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.
CISA KEV Advisory
PHP-CGI Query String Parameter Vulnerability
sapi/cgi/cgi_main.c in PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code.
Apply updates per vendor instructions.
Risk Analysis
PHP, when configured as a CGI script, does not properly handle query strings, which allows remote attackers to execute arbitrary code. This is a HIGH severity vulnerability with a high EPSS score of 0.94386, indicating a high likelihood of exploitation. CISA has confirmed its exploitation in the KEV catalog.
This vulnerability is actively being exploited in the wild. It can be exploited remotely when PHP is configured as a CGI script.
PHP users should ensure their installations are updated to versions that address this vulnerability. If running PHP as a CGI script, review and harden configurations, and consider alternative deployment methods if possible.
Technical Analysis
CVE-2012-1823 requires local access, meaning attackers must already have a foothold on the target system.
Exploitation requires some privileges, which limits the exposure to scenarios where an attacker has already gained initial access.
CISA has added CVE-2012-1823 to the Known Exploited Vulnerabilities (KEV) catalog, confirming active exploitation in the wild. U.S. federal agencies are required to patch this within the mandated timeframe, and all organizations should treat remediation as urgent.
Affected Vendors & Products
Exploit & PoC Resources
All References (1)
Quick Facts
Recommended Actions
- →Apply vendor patches immediately
- →Monitor CVE-2012-1823 in threat intel feeds
- →Review IDS/IPS signatures for exploitation attempts
- !CISA KEV: Federal agencies must patch per BOD 22-01 timeline
- !Active exploitation confirmed — treat as P1