Known exploited · PHP

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

What it is

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.

Added March 25, 2022Due April 15, 2022CISA KEV catalog 2026.10.01

Vendor
PHP
Product
PHP
Added to KEV
March 25, 2022
CISA due date
April 15, 2022
Ransomware use
Unknown

What CISA requires

Apply updates per vendor instructions.

Forensic triage

No

What to do now

  1. Find every instance of PHP you run, including the forgotten ones, and check its version against the vendor advisory.
  2. Apply the vendor's fix or mitigation, before April 15, 2022 if you are bound by CISA's deadline, sooner if it faces the internet.
  3. Assume it was tried against you already: look for signs of exploitation from the date it was added, not from the day you patched.

References

CVE-2012-1823 in the National Vulnerability Database

H2 Security

Not sure you are clear?

We check where you run it, patch or mitigate with your team, and look for signs it was already used against you.

Talk to our team

T Academy

Train the engineers who fix it

Security engineering on real hosts in the browser, every objective checked on the machine. The first two lessons of Linux 1 are free.

Start free

Source: CISA Known Exploited Vulnerabilities Catalog (public domain), catalog version 2026.10.01.