CVE-2012-1823: PHP-CGI treats a query string without '=' as command-line options, allowing remote code execution

critical KEV Affects PHP engine. Feed 2026.11.23.2, updated 2026-11-23; published ; listed on CISA KEV 2022-03-25.

PHP-CGI treats a query string without '=' as command-line options, allowing remote code execution

Package
PHP engine PHP engine
Affected branches
5.3 → fixed in 5.3.12; 5.4 → fixed in 5.4.2
Severity
critical  CVSS 9.8
Exploitation
KEV listed by CISA as actively exploited · EPSS 100% (100.0th percentile)
Remediation
Upgrade to 5.3.12 / 5.4.2 or later. These branches are long end-of-life: move to a supported PHP release.
Published
2012-05-11

References

NVD recordPHP engine advisories

Quick answers

Is CVE-2012-1823 being actively exploited?

Yes. It is on CISA's Known Exploited Vulnerabilities list (added 2022-03-25), which means attackers are using it now.

Which version fixes CVE-2012-1823?

The fixed release depends on your PHP branch; see the table above.

How do I check whether I am affected?

Run `phpwarden scan`. phpwarden checks the exact version you have installed against this advisory.

Am I affected?

Find out in one command. phpwarden checks this host's PHP build against this advisory and 21,000+ others, ranked by real-world exploitation (CISA KEV + EPSS). Free, offline, open data.

# PHP projects (recommended)
composer require --dev phpwarden/phpwarden
# then
vendor/bin/phpwarden scan

# or, without Composer
pipx install phpwarden   &&   phpwarden scan

Running a fleet? Aggregate hosts into one report.

Install docs   How findings are ranked

Related advisories