Home / Advisories / CVE-2012-1823 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 2012-05-11 ; 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.2Severity 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 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 scanRunning a fleet? Aggregate hosts into one report .
Install docs How findings are ranked Related advisories CVE-2026-109618 KEV critical Upload-progress use-after-free and remote process-memory disclosure same package: PHP engine CVE-2026-109619 KEV critical Fatal-error backtrace use-after-free and OPcache type confusion same package: PHP engine CVE-2024-4577 KEV critical PHP-CGI argument injection to RCE on Windows via Best-Fit encoding same package: PHP engine CVE-2019-11043 KEV critical PHP-FPM remote code execution via env_path_info buffer underflow same package: PHP engine CVE-2026-115560 critical Session serializer mismatch can lead to remote code execution same package: PHP engine CVE-2022-31626 high In PHP versions 7.4.x below 7.4.30, 8.0.x below 8.0.20, and 8.1.x below 8.1.7, when pdo_my same package: PHP engine