CVE-2012-1823

PHP-CGI Query String Parameter Vulnerability

Actively exploited · CISA KEV
9.8 CriticalCVSS v3.1
100.0%EPSS (30-day exploit probability)
2022-03-25added to KEV
2022-04-15CISA federal due date

Summary

PHP PHP. 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.

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not properly handle query strings that lack an = (equals sign) character, which allows remote attackers to execute arbitrary code by placing command-line options in the query string, related to lack of skipping a certain php_getopt for the 'd' case.

CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-77
Published
2012-05-11 (last modified 2026-06-16)

What to do

Apply updates per vendor instructions.

  1. Find every instance of PHP PHP in your asset inventory, including internet-facing ones.
  2. Apply the vendor fix or mitigation, or isolate/disconnect the asset until you can.
  3. Hunt for signs of compromise from before you patched; exploitation is already happening in the wild.
  4. Ask critical suppliers whether they are affected and when they will be patched.

FAQ

Is CVE-2012-1823 being exploited?

Yes. CISA added CVE-2012-1823 to its Known Exploited Vulnerabilities catalog on 2022-03-25, which means there is reliable evidence of active exploitation.

How do I fix CVE-2012-1823?

CISA required action: Apply updates per vendor instructions.

What is the EPSS score for CVE-2012-1823?

The EPSS score is 100%, meaning an estimated 100% probability of exploitation activity in the next 30 days (percentile 100).

Other exploited PHP vulnerabilities

CVE-2016-10033PHPMailer Command Injection Vulnerability2025-07-07
CVE-2019-11043PHP FastCGI Process Manager (FPM) Buffer Overflow Vulnerability2022-03-25

All PHP exploited CVEs →

Triage many CVEs at once

Paste up to 25 CVEs and get KEV, EPSS and CVSS side by side, with CSV export.

Try Pro CVE triage

Sources: CISA KEV, NIST NVD, FIRST EPSS. This page is informational; verify against the vendor advisory before acting. © CyberStrategiX.