VDB

CVE-2012-1823

CVE-2012-1823 PUBLISHED CVSS 9.8 CRITICAL

Reported by certcc · Published 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, related to lack of skipping a certain php_getopt for the 'd' case.

Risk scores

CVSS 3.1
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
n/an/an/a
n/an/a*

Timeline

  • May 4, 2012 PoC Published (59 in total, the first dated here)
  • May 11, 2012 CVE Published
  • Jun 19, 2012 VulnCheck KEV Exploitation (47 in total, the first dated here)
  • Sep 8, 2015 VulnCheck XDB Entry (5 in total, the first dated here)
  • Feb 4, 2022 EPSS Score (30 in total, the first dated here)
  • Mar 25, 2022 CISA KEV Added
  • Mar 27, 2026 Distribution Patch (4 in total, the first dated here)
  • Mar 27, 2026 Security Advisory (12 in total, the first dated here)
  • Oct 27, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2012-1823
vulnetix vdb fixes CVE-2012-1823

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2012-1823/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

…and 11 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›