Skip to main content
ExploitedIn CISA KEVFix available

CVE-2012-1823

Exploitation confirmed. First attested on 2022-03-25 by CISA-ADP, CISA KEV, GCVE · kevintel.

  • Published2012-05-11
  • WeaknessCWE-77

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

Description

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.

Timeline

dates in UTC
  1. 2012-05-1110:15CVE publishedNVD
  2. 2022-03-25Listed as exploited by GCVEGCVE
  3. 2022-03-25Exploitation first reportedCISA KEV
  4. 2022-03-25Added to the CISA KEV catalogCISA KEV
  5. 2025-02-0713:10SSVC exploitation set to activeCISA-ADP
  6. 2026-10-2319:23First public proof of conceptPoC-in-GitHub
  7. 2026-10-2319:23EPSS crossed 10 %FIRST EPSS

Observed activity

isMalicious corpus · updated 2026-10-23 21:37 UTC
Indicators tagged with this CVE, per day0 indicators over 7 days
Block these indicators
  • Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2012-1823?format=txt
  • CSV export: https://api.ismalicious.com/edl/cve/CVE-2012-1823?format=csv
  • TAXII collection of exploited CVEs
  • The EDL and CSV take an API key on the Pro plan.

Versions per branch

NVD
Redhat enterprise linux eus
BranchAffectedFixed in
5.6= 5.6no fix published
6.1= 6.1no fix published
6.2= 6.2no fix published
Apple mac os x
BranchAffectedFixed in
10.8≥ 10.8.0, < 10.8.210.8.2
10.x≥ 10.6.8, < 10.7.510.7.5
Fedoraproject fedora
BranchAffectedFixed in
39.x= 39no fix published
40.x= 40no fix published

14 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Fix

  1. CISA’s required action: Apply updates per vendor instructions.due 2022-04-15

Advisories and patches

Detection

read 2026-10-23 19:23 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB

CISA Known Exploited Vulnerability

Date Added
2022-03-25
Patch Due Date
2022-04-15
Ransomware Use
Unknown
Required Action
Apply updates per vendor instructions.

Sources

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2012-05-11
Last Modified
2026-06-16
NVD status
Analyzed

Frequently asked questions

What is CVE-2012-1823?

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.

Is CVE-2012-1823 actively exploited?

Yes. CVE-2012-1823 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning it has been confirmed as actively exploited in the wild. CISA requires federal agencies to patch by 2022-04-15.

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

CVE-2012-1823 has a CVSS v3 base score of 9.8 (CRITICAL severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Hear about the next vulnerability in your software

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Related vulnerabilities

Same product first, then the same vendor advisory and the same publication week.