KEVIntel
9.8
CVSS
Critical

CVE-2012-1823

PUBLISHED

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

Exploited in the wild Remote Low complexity No user interaction
Vendor
PHP
Product
PHP
Published
May 11, 2012
EPSS

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.

php cisa nuclei_scanner metasploit

CVSS scores

CVSS v3.1 9.8 Critical

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

CVSS v2.0 7.5

AV:N/AC:L/Au:N/C:P/I:P/A:P

Exploitation status

Exploited in the wild

Recorded 2022-03-25 00:00:00 UTC · Source

SSVC decision points

Exploitation
active
Automatable
Yes
Technical impact
total

References

Known exploited vulnerability sources

Catalogues that list this CVE as a known exploited vulnerability.

Source Added
CISA Mar 25, 2022

Potential proof of concepts

These PoCs are unverified and could contain malware. Use at your own risk.

php_cgi_arg_injection

metasploit · Created Unknown

Metasploit module for CVE-2012-1823

JasonHobs/CVE-2012-1823-exploit-for-https-user-password-web

github · Created 2025-02-16 23:45:55 UTC · 0 stars

CVE-2012-1823 exploit for https user password website.

Jimmy01240397/CVE-2012-1823-Analyze

github · Created 2024-12-09 08:31:04 UTC · 0 stars

0xl0k1/CVE-2012-1823

github · Created 2023-08-24 11:17:51 UTC · 9 stars

PHP CGI Argument Injection.

cyberharsh/PHP_CVE-2012-1823

github · Created 2020-08-17 19:54:11 UTC · 0 stars

drone789/CVE-2012-1823

github · Created 2015-09-08 14:37:25 UTC · 1 stars

Timeline

  • CVE ID Reserved

  • CVE Published to Public

  • Added to KEVIntel

  • Detected by Nuclei

  • Detected by Metasploit