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.
CVE-2012-1823
“—” 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.
- Actively exploited in the wild (CISA-KEV) — the reason this is sooner than the SSVC decision on this page at low mission impact
A fix is available — apply it.
- CVSS v3
- 9.8
- EG Score
- 9.8CRITICALhigh confidence
- EG Risk
- 99EG Risk 99/100
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computed (value × EchelonGraph’s weight)Severity98% × 45%The EG Score, 9.8 of 10.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
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.
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 8, 2026'[security bulletin] HPSBUX02791 SSRT100856 rev.1 - HP-UX Apache Web Server running PHP, Remote Execu' - MARC
http://marc.info/?l=bugtraq&m=134012830914727&w=2Patch Availability(5)
| Vendor / Ecosystem | Fix (by version range) / Patch | Released | Source |
|---|---|---|---|
| ubuntu | php5-cgi (5.3.10-1ubuntu3.1) @ precise | 2026-10-12 | ubuntu |
| redhat | php53-0:5.3.3-1.el5_6.2 | 2012-05-10 | redhat |
| redhat | php-0:5.3.3-3.el6_1.4 | 2012-05-10 | redhat |
| redhat | php-0:5.3.3-3.el6_2.8 | 2012-05-07 | redhat |
| redhat | php53-0:5.3.3-7.el5_8 | 2012-05-07 | redhat |
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)
| Package | Vulnerable range | Fix by version range | Dependents |
|---|---|---|---|
| php5 | 5.3.3-7 ... 5.3.3-7+squeeze8 (8 versions) |
| — |
Weakness Classification(2)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
All Vendor Advisories
(5)
Every vendor that published an advisory referencing this CVE — pulled from our cve_vendor_advisories aggregation. Click any row for the vendor's original advisory page.
Data Freshness Timeline
(refreshed 87× in last 7d / 390× 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,765 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,665 oldest rows on record are not shown and were not checked, so the counts can still include repeats.
- 2026-10-12 05:05 UTCVendor advisory
- 2026-10-12 05:05 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-12 01:18 UTCVendor advisory
- 2026-10-12 01:18 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-11 21:32 UTCEG score recompute
- 2026-10-11 21:32 UTCVendor advisory
- 2026-10-11 21:32 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-11 17:46 UTCEG score recompute
- 2026-10-11 17:46 UTCVendor advisory
- 2026-10-11 17:45 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-11 13:54 UTCEG score recompute
- 2026-10-11 13:54 UTCVendor advisory
- 2026-10-11 13:54 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-11 10:08 UTCVendor advisory
- 2026-10-11 10:07 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-11 06:19 UTCVendor advisory
- 2026-10-11 06:19 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-11 02:31 UTCVendor advisory
- 2026-10-11 02:31 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-10 22:43 UTCVendor advisory
- 2026-10-10 22:43 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-10 18:57 UTCVendor advisory
- 2026-10-10 18:56 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-10 15:10 UTCVendor advisory
- 2026-10-10 15:09 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
Show 75 moreShow fewer
- 2026-10-10 11:23 UTCVendor advisory
- 2026-10-10 11:23 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-10 07:37 UTCVendor advisory
- 2026-10-10 07:37 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-10 03:51 UTCVendor advisory
- 2026-10-10 03:51 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-10 00:05 UTCVendor advisory
- 2026-10-10 00:04 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-09 20:19 UTCVendor advisory
- 2026-10-09 20:18 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-09 16:32 UTCVendor advisory
- 2026-10-09 16:32 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-09 12:46 UTCVendor advisory
- 2026-10-09 12:46 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-09 09:00 UTCVendor advisory
- 2026-10-09 09:00 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-09 05:13 UTCVendor advisory
- 2026-10-09 05:13 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-09 01:26 UTCVendor advisory
- 2026-10-09 01:26 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-08 21:40 UTCVendor advisory
- 2026-10-08 21:40 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-08 17:54 UTCVendor advisory
- 2026-10-08 17:54 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-08 14:08 UTCVendor advisory
- 2026-10-08 14:07 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-08 10:17 UTCVendor advisory
- 2026-10-08 10:17 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-08 06:30 UTCVendor advisory
- 2026-10-08 06:30 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-08 02:44 UTCVendor advisory
- 2026-10-08 02:44 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 22:58 UTCVendor advisory
- 2026-10-07 22:58 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 19:12 UTCVendor advisory
- 2026-10-07 19:12 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 15:26 UTCVendor advisory
- 2026-10-07 15:26 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 11:40 UTCVendor advisory
- 2026-10-07 11:40 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 07:54 UTCVendor advisory
- 2026-10-07 07:54 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 04:08 UTCVendor advisory
- 2026-10-07 04:08 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-07 00:22 UTCVendor advisory
- 2026-10-07 00:22 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-06 20:35 UTCVendor advisory
- 2026-10-06 20:35 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-06 16:49 UTCVendor advisory
- 2026-10-06 16:49 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-06 13:03 UTCVendor advisory
- 2026-10-06 13:03 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-06 09:17 UTCVendor advisory
- 2026-10-06 09:17 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-06 05:31 UTCVendor advisory
- 2026-10-06 05:30 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-06 01:42 UTCVendor advisory
- 2026-10-06 01:42 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-05 21:55 UTCVendor advisory
- 2026-10-05 21:55 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-05 18:09 UTCVendor advisory
- 2026-10-05 18:09 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-05 14:23 UTCVendor advisory
- 2026-10-05 14:23 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-05 10:38 UTCVendor advisory
- 2026-10-05 10:38 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-05 06:51 UTCVendor advisory
- 2026-10-05 06:51 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-05 03:04 UTCVendor advisory
- 2026-10-05 03:04 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-04 23:19 UTCVendor advisory
- 2026-10-04 23:19 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-04 19:33 UTCVendor advisory
- 2026-10-04 19:33 UTCGHSA enrichmentGHSA-3p37-hv77-x3rp · GitHub severity HIGH · GitHub CVSS 9.8
- 2026-10-04 15:47 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✓ verifiedPublished Oct 29, 2013
Apache + PHP < 5.3.12 / < 5.4.2 - cgi-bin Remote Code Execution
Open source ↗ - Exploit-DBEDB-18834✓ verifiedPublished May 5, 2012
PHP 5.3.12/5.4.2 - CGI Argument Injection (Metasploit)
Open source ↗ - Exploit-DBEDB-18836✓ verifiedPublished May 5, 2012
PHP < 5.3.12 / < 5.4.2 - CGI Argument Injection
Open source ↗ - Metasploitexploit/multi/http/php_cgi_arg_injection✓ verifiedPublished May 4, 2012
PHP CGI Argument Injection
Open source ↗ - GitHub PoCmujtaba815/metasploitable2-php-cgi-exploitPublished 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-1823Published Aug 24, 2023
PHP CGI Argument Injection.
Open source ↗ - Nucleihttp/cves/2012/CVE-2012-1823.yamlPublished Jul 20, 2021
PHP CGI v5.3.12/5.4.2 Remote Code Execution
Open source ↗ - GitHub PoCUnix13/metasploitable2Published 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-1Published Oct 1, 2017
First script, pgp-cgi-cve-2012-1823 BASH script
Open source ↗ - Exploit-DBEDB-29316Published Oct 31, 2013
Apache + PHP < 5.3.12 / < 5.4.2 - Remote Code Execution + Scanner
Open source ↗
Related CVEs(same product + same vendor + same CWE)
Same product
10 shownDebian:6.0:php5
- CVE-2012-2688EG 10.0EPSS p96HIGH
- CVE-2015-6834EG 9.8EPSS p99CRITICAL
- CVE-2015-5589EG 9.8EPSS p93CRITICAL
- CVE-2015-4643EG 9.8EPSS p97CRITICAL
- CVE-2015-4602EG 9.8EPSS p96CRITICAL
- CVE-2015-4601EG 9.8EPSS p95CRITICAL
- CVE-2015-4600EG 9.8EPSS p96CRITICAL
- CVE-2015-4599EG 9.8EPSS p96CRITICAL
- CVE-2015-6838EG 7.5EPSS p95HIGH
- CVE-2015-6837EG 7.5EPSS p94HIGH
Same CWE
10 shownCWE-20
Frequently asked(6)
What is CVE-2012-1823?
When was CVE-2012-1823 made public?
Is CVE-2012-1823 actively exploited?
What is the CVSS score of CVE-2012-1823?
Which products are affected by CVE-2012-1823?
How do I remediate CVE-2012-1823?
Dependency Blast Radius
See which npm, PyPI, Go, and Maven packages are affected by CVE-2012-1823
Is Your Infrastructure Affected by CVE-2012-1823?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.