CVE-2012-1823

CRITICALNVD 9.89.8
EchelonGraph scoreHIGH confidence

“—” beside the score: it is equal to NVD's CVSS score.

Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2022-03-25), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.

Triggered by: CISA KEV (actively exploited)
Sources: CISA Known Exploited Vulnerabilities catalog, EPSS, GitHub Security Advisory, NVD CVSS v3
Trending — 4 sources updated this weekExploited in the wild

Also known asEUVD-2012-1833 (ENISA EUVD) · GHSA-3p37-hv77-x3rp (GitHub Security Advisories)Source: ENISA EUVD

9.8EG
EchelonGraph verdictPatch nowTreat as an emergency — this is being exploited.
  • Actively exploited in the wild (CISA-KEV) — the reason this is sooner than the SSVC decision on this page at low mission impact
CISA-KEV: ExploitedEPSS PROB: >99.9%CVSS: 9.8Exploit: Metasploit · Exploit-DB (verified) · other public PoCExposed services: Not assessed

A fix is available — apply it.

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 v3
9.8
EG Score
9.8CRITICALhigh confidence
EG Risk
99
EG Risk 99/100

EG Risk is EchelonGraph's 0–100 priority score. It fuses impact severity (EG Severity, the CVSS base score, never the KEV-floored or EPSS-lifted EG Score) with real-world exploitation and automatability, under weights EchelonGraph set by hand, so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner.

How it’s computed (value × EchelonGraph’s weight)
Severity98% × 45%
Impact severity (EG Severity): CVSS 9.8 of 10. Never the KEV-floored or EPSS-lifted EG Score.
Exploitation100% × 40%
Fixed at 100% for a CISA KEV listing: EchelonGraph's rule.
Automatability100% × 15%
CISA's SSVC Automatable value: yes (Vulnrichment).
SSVC (CISA's decision table, applied by EchelonGraph): Attend at low mission impact; Act at medium or high.
Exploitation active (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE.
Action: A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high.
EPSS PROB
>99.9%
EPSS %ILE
99th
KEV
⚠ Exploited

What the EG score is made of (scorer v4.0: the three questions the 0–10 score mixes, published apart · methodology)

The EG score (9.8): severity, escalated by confirmed exploitation. This CVE's 9.8 is its impact severity (EG Severity), not escalated.

EG Severity
9.8 CRITICALCVSS-B, impact only: no KEV listing, EPSS or EG-KEV tier raises it.GitHub Security Advisory CVSS
EG Likelihood
>99.9% within 30 daysSource: FIRST EPSS (model v2026.06.15, score date 2026-11-01). FIRST's exploitation probability, not an EchelonGraph model.
Confirmed exploitation
CISA KEV and EG-KEV Tier 1 (exploited in the wild)Reported apart from the likelihood: an observed fact, not a probability.
EG Priority
SSVC Act at medium mission impactAttend at low mission impact; Act at medium or high.CISA BOD 26-04: 3 days & forensic triage if the affected system is publicly exposed; 3 days & forensic triage if it is not.Each input and its source, and whom BOD 26-04 binds: the SSVC and BOD 26-04 blocks below.

SSVC (CISA's decision table, applied by EchelonGraph)Attend at low mission impact; Act at medium or high.

A fix is available. Apply it sooner than your standard update timelines at low mission impact and as soon as possible at medium or high.

Exploitation active (CISA Vulnrichment) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). All three are CISA's SSVC values (Vulnrichment). EchelonGraph applied CISA's decision table to them; CISA publishes SSVC inputs and the table, not a decision for each CVE. Mission impact is CISA's Mission & Well-being decision point, and only you can judge it. CISA's table makes it high when Mission Prevalence is Essential — the vulnerable component "directly provides capabilities that constitute at least one MEF for at least one entity" (MEF: mission essential function) — or when Public Well-Being Impact is Irreversible: "multiple fatalities are likely", the cyber-physical system "is likely lost or destroyed", "extreme or serious externalities" are imposed on other parties, or social systems such as elections or the financial grid "are destabilized and potentially collapse". CISA's decision table

BOD 26-04 (CISA's remediation timeline, Table 1)3 days & forensic triage if the affected system is publicly exposed; 3 days & forensic triage if it is not.

The score's inputs: In CISA KEV yes (CISA's KEV catalog) · Automatable yes (CISA Vulnrichment) · Technical impact total (CISA Vulnrichment). Whether your system is publicly exposed is yours to answer. BOD 26-04 binds US Federal Civilian Executive Branch agencies; for anyone else it is CISA's published timeline, a reference rather than an obligation. The directive · how EchelonGraph applies it

CISA required action“Apply updates per vendor instructions.”

Quoted verbatim from CISA's Known Exploited Vulnerabilities catalog. CISA directs it at US federal civilian executive branch agencies under Binding Operational Directive (BOD) 26-04, which replaced BOD 22-01 on 10 June 2026; it is not EchelonGraph's advice. CISA's notes: https://nvd.nist.gov/vuln/detail/CVE-2012-1823

Published

May 11, 2012

Last Modified

April 21, 2026

Advisory Details (4)

Auto-updated Oct 29, 2026
⚠️ Actively exploited (CISA KEV, CISA Vulnrichment). Patch available.
Web page

'[security bulletin] HPSBUX02791 SSRT100856 rev.1 - HP-UX Apache Web Server running PHP, Remote Execu' - MARC

http://marc.info/?l=bugtraq&m=134012830914727&w=2

Patch Availability(5)

Vendor / EcosystemFix (by version range) / PatchReleasedSource
ubuntuphp5-cgi (5.3.10-1ubuntu3.1) @ precise2026-11-01ubuntu
redhatphp53-0:5.3.3-1.el5_6.22012-05-10redhat
redhatphp-0:5.3.3-3.el6_1.42012-05-10redhat
redhatphp-0:5.3.3-3.el6_2.82012-05-07redhat
redhatphp53-0:5.3.3-7.el5_82012-05-07redhat

Patches are aggregated from vendor advisories (Red Hat, Microsoft, Cisco, GitHub) and package ecosystems (OSV, GHSA). Multiple rows for the same upstream release have been deduplicated.

Affected Packages

(1 across 1 ecosystem)
Debian:6.0(1)
PackageVulnerable rangeFix by version rangeDependents
php55.3.3-7 ... 5.3.3-7+squeeze8 (8 versions)
  • every version up to 5.3.3-7+squeeze9: fixed in 5.3.3-7+squeeze9
—

Weakness Classification(2)

MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.

All Vendor Advisories

(5)

Data Freshness Timeline

(refreshed 19× in last 7d / 173× in last 30d)

Each row is a time one of our pipelines fetched, updated or re-scored this CVE. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. An arrow marks a change the record states ("CVSS v3 → 9.1"); EPSS and GHSA rows show the values recorded at that time, not what changed (EPSS values are rounded; hover one for the exact figures). Most recent first.

Showing the most recent 100 of 1,825 refreshes on record for this CVE.

A repeat, a row identical to one the same pipeline wrote less than 10 seconds earlier, is not a separate refresh and is not counted. None are among the latest 100 rows. The 1,725 oldest rows on record are not shown and were not checked, so the counts can still include repeats.

  1. 2026-11-01 20:13 UTCEG score recompute
  2. 2026-11-01 20:13 UTCVendor advisory
  3. 2026-11-01 20:13 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  4. 2026-10-31 18:11 UTCEG score recompute
  5. 2026-10-31 18:11 UTCVendor advisory
  6. 2026-10-31 18:11 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  7. 2026-10-30 16:07 UTCEG score recompute
  8. 2026-10-30 16:07 UTCVendor advisory
  9. 2026-10-30 16:07 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  10. 2026-10-29 14:04 UTCEG score recompute
  11. 2026-10-29 14:04 UTCVendor advisory
  12. 2026-10-29 14:04 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  13. 2026-10-28 12:02 UTCEG score recompute
  14. 2026-10-28 12:02 UTCVendor advisory
  15. 2026-10-28 12:02 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  16. 2026-10-27 16:26 UTCEPSS rescoreEPSS >99.9% · 99th percentile
  17. 2026-10-27 09:59 UTCEG score recompute
  18. 2026-10-27 09:59 UTCVendor advisory
  19. 2026-10-27 09:59 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  20. 2026-10-26 07:58 UTCVendor advisory
  21. 2026-10-26 07:57 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  22. 2026-10-25 20:13 UTCEG score recompute
  23. 2026-10-25 05:55 UTCEG score recompute
  24. 2026-10-25 05:55 UTCVendor advisory
  25. 2026-10-25 05:55 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
Show 75 more
  1. 2026-10-24 03:52 UTCEG score recompute
  2. 2026-10-24 03:52 UTCVendor advisory
  3. 2026-10-24 03:52 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  4. 2026-10-23 01:47 UTCEG score recompute
  5. 2026-10-23 01:47 UTCVendor advisory
  6. 2026-10-23 01:47 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  7. 2026-10-21 23:43 UTCEG score recompute
  8. 2026-10-21 23:43 UTCVendor advisory
  9. 2026-10-21 23:43 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  10. 2026-10-20 21:39 UTCEG score recompute
  11. 2026-10-20 21:39 UTCVendor advisory
  12. 2026-10-20 21:39 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  13. 2026-10-19 19:33 UTCEG score recompute
  14. 2026-10-19 19:33 UTCVendor advisory
  15. 2026-10-19 19:33 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  16. 2026-10-18 17:28 UTCEG score recompute
  17. 2026-10-18 17:28 UTCVendor advisory
  18. 2026-10-18 17:28 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  19. 2026-10-18 11:27 UTCEG score recompute
  20. 2026-10-17 15:25 UTCEG score recompute
  21. 2026-10-17 15:25 UTCVendor advisory
  22. 2026-10-17 15:25 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  23. 2026-10-16 16:26 UTCEPSS rescoreEPSS >99.9% · 99th percentile
  24. 2026-10-16 13:21 UTCEG score recompute
  25. 2026-10-16 13:21 UTCVendor advisory
  26. 2026-10-16 13:21 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  27. 2026-10-15 11:18 UTCEG score recompute
  28. 2026-10-15 11:18 UTCVendor advisory
  29. 2026-10-15 11:17 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  30. 2026-10-14 09:13 UTCEG score recompute
  31. 2026-10-14 09:13 UTCVendor advisory
  32. 2026-10-14 09:13 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  33. 2026-10-13 07:08 UTCVendor advisory
  34. 2026-10-13 07:08 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  35. 2026-10-12 21:31 UTCEG score recompute
  36. 2026-10-12 05:05 UTCVendor advisory
  37. 2026-10-12 05:05 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  38. 2026-10-12 01:18 UTCVendor advisory
  39. 2026-10-12 01:18 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  40. 2026-10-11 21:32 UTCEG score recompute
  41. 2026-10-11 21:32 UTCVendor advisory
  42. 2026-10-11 21:32 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  43. 2026-10-11 17:46 UTCEG score recompute
  44. 2026-10-11 17:46 UTCVendor advisory
  45. 2026-10-11 17:45 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  46. 2026-10-11 13:54 UTCEG score recompute
  47. 2026-10-11 13:54 UTCVendor advisory
  48. 2026-10-11 13:54 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  49. 2026-10-11 10:08 UTCVendor advisory
  50. 2026-10-11 10:07 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  51. 2026-10-11 06:19 UTCVendor advisory
  52. 2026-10-11 06:19 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  53. 2026-10-11 02:31 UTCVendor advisory
  54. 2026-10-11 02:31 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  55. 2026-10-10 22:43 UTCVendor advisory
  56. 2026-10-10 22:43 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  57. 2026-10-10 18:57 UTCVendor advisory
  58. 2026-10-10 18:56 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  59. 2026-10-10 15:10 UTCVendor advisory
  60. 2026-10-10 15:09 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  61. 2026-10-10 11:23 UTCVendor advisory
  62. 2026-10-10 11:23 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  63. 2026-10-10 07:37 UTCVendor advisory
  64. 2026-10-10 07:37 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  65. 2026-10-10 03:51 UTCVendor advisory
  66. 2026-10-10 03:51 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  67. 2026-10-10 00:05 UTCVendor advisory
  68. 2026-10-10 00:04 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  69. 2026-10-09 20:19 UTCVendor advisory
  70. 2026-10-09 20:18 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  71. 2026-10-09 16:32 UTCVendor advisory
  72. 2026-10-09 16:32 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  73. 2026-10-09 12:46 UTCVendor advisory
  74. 2026-10-09 12:46 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
  75. 2026-10-09 09:00 UTCVendor advisory

Publicly available exploits

(10 references)

Public exploit code is referenced for this CVE (1 Metasploit module, 4 Exploit-DB entries, 4 GitHub PoCs), as is 1 Nuclei detection template. A detection template checks whether a system is affected; it is not necessarily exploit code. Defenders should treat patch urgency accordingly.

  • Exploit-DBEDB-29290✓ verified
    Published Oct 29, 2013

    Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution

    Open source ↗
  • Exploit-DBEDB-18834✓ verified
    Published May 5, 2012

    PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit)

    Open source ↗
  • Exploit-DBEDB-18836✓ verified
    Published May 5, 2012

    PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection

    Open source ↗
  • Metasploitexploit/multi/http/php_cgi_arg_injection✓ verified
    Published May 4, 2012

    PHP CGI Argument Injection

    Open source ↗
  • GitHub PoCmujtaba815/metasploitable2-php-cgi-exploit
    Published Oct 2, 2026

    Exploited a known RCE vulnerability (PHP-CGI Argument Injection, CVE-2012-1823) on Metasploitable2 using Metasploit Framework, gained a shell, and documented post-exploitation

    Open source ↗
  • GitHub PoC0xl0k1/CVE-2012-1823
    Published Aug 24, 2023

    PHP CGI Argument Injection.

    Open source ↗
  • Nucleihttp/cves/2012/CVE-2012-1823.yaml
    Published Jul 20, 2021

    PHP CGI v5.3.12/5.4.2 Remote Code Execution

    Open source ↗
  • GitHub PoCUnix13/metasploitable2
    Published Jul 5, 2019

    PHP-CGI-REMOTE_CVE-2012-1823, UnrealIRCd, MySQL, PostgreSQL and SSH bruteforce, VSFTPD2.3.4, samba CVE-2007-2447, JAVA RMI Server, distcc daemon, misconfigured NFS files, etc.

    Open source ↗
  • GitHub PoCtardummy01/oscp_scripts-1
    Published Oct 1, 2017

    First script, pgp-cgi-cve-2012-1823 BASH script

    Open source ↗
  • Exploit-DBEDB-29316
    Published Oct 31, 2013

    Apache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution + Scanner

    Open source ↗

Frequently asked(6)

What is CVE-2012-1823?
CVE-2012-1823 is a critical-severity vulnerability; its CVE record was published on May 11, 2012. 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,…
When was CVE-2012-1823 made public?
CVE-2012-1823 was made public on May 3, 2012: that is the date its CVE record's CNA, CERT/CC, gives for when the vulnerability was made public. The CVE record itself was published on May 11, 2012. EchelonGraph's copy of the record carries a last-modified date of April 21, 2026; the record at its source may have been updated since.
Is CVE-2012-1823 actively exploited?
Yes. CISA added CVE-2012-1823 to the Known Exploited Vulnerabilities catalog on March 25, 2022, affecting PHP PHP. KEV listing indicates confirmed exploitation in the wild; this CVE warrants immediate attention. A fix is available. Apply it.
What is the CVSS score of CVE-2012-1823?
CVE-2012-1823 has a CVSS v3 base score of 9.8 (NVD).
Which products are affected by CVE-2012-1823?
CVE-2012-1823 affects PHP PHP. The affected packages EchelonGraph has on record, with version ranges, are listed in the Affected Packages section of this page.
How do I remediate CVE-2012-1823?
A fix for CVE-2012-1823 is available: update to the fixed version the vendor names in its advisory.

Dependency Blast Radius

See which npm, PyPI, Go, and Maven packages are affected by CVE-2012-1823

Explore →

Is Your Infrastructure Affected by CVE-2012-1823?

EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.