Known Exploited Vulnerability

CVE-2012-1823

PHP-CGI Query String Parameter Vulnerability

Past federal due date 77 public exploits Added 25 Mar 2022 Due 15 Apr 2022 · 1575 days ago
VendorPHP
ProductPHP
WeaknessCWE-20
RansomwareNone confirmed

What the flaw 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.

Description as published by CISA. We have not independently reproduced it.

What CISA requires

Apply updates per vendor instructions.

This deadline is binding on US federal civilian agencies under BOD 22-01. It is not a legal deadline for anyone else, but it is a useful urgency signal — CISA sets it by how actively the flaw is being used, not by CVSS.

Public exploit code

77 public repositories referencing this CVE have been catalogued on GitHub. That volume usually means a reliable, widely-reproduced exploit. Treat this as a strong signal to prioritise patching, not as a verified working exploit — many such repositories are scanners, write-ups or forks rather than functional code.

Showing 8 of 77. Full list in the trickest/cve dataset.

Vendor advisories

Primary sources

Share

Was this page helpful?

If something here is wrong or out of date, tell us and we will check the source.

Other PHP entries

See all

Source: CISA KEV catalog · last verified August 6, 2026. Rebuilt automatically twice a day.