RCE in Apple Mac_os_x
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 arbitra…
Vulnerability class: Command Injection (OS Command Injection)
EPSS: 1.000 (100.0th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Apple Mac_os_x
- Hp Hp-ux — versions b.11.23, b.11.31
- Php
- Debian Debian_linux — versions 6.0
- Fedoraproject Fedora — versions 39, 40
- Opensuse — versions 11.4, 12.1
- Redhat Application_stack — versions 2.0
- Redhat Enterprise_linux_desktop — versions 6.0
- Redhat Enterprise_linux_eus — versions 5.6, 6.1, 6.2
- Redhat Enterprise_linux_server — versions 5.0, 6.0
Weakness classification (CWE)
CISA KEV (Known Exploited Vulnerabilities)
This CVE is on the CISA KEV catalog, added on . CISA KEV inclusion means CISA has confirmed in-the-wild exploitation; US federal agencies are required to remediate within a published due date.
BOD 22-01 due date: .
Required action: Apply updates per vendor instructions.
Public proof-of-concept exploits
- 0xl0k1/CVE-2012-1823
- Unix13/metasploitable2
- tardummy01/oscp_scripts-1
- hackherMind-Pixel/Vulnerable-Lab-Exploitation
- Dmitri131313/CVE-2012-1823-exploit-for-https-user-password-web
- cyberharsh/PHP_CVE-2012-1823
- drone789/CVE-2012-1823
- mehedi-hasan-sami98/DVWA-ZAP-PENTEST
- K3ysTr0K3R/CVE-2012-1823
- tryj/CVE-2012-1823---PHP-CGI---RCE
References
- cret@cert.org (vendor-advisory, Mailing List)
- cret@cert.org (vendor-advisory, Mailing List, Third Party Advisory)
- cret@cert.org (VDB Entry, Third Party Advisory, vdb-entry, Broken Link)
- cret@cert.org (vendor-advisory, Broken Link)
- cret@cert.org (vendor-advisory, Broken Link)
- cret@cert.org (vendor-advisory, Mailing List, Third Party Advisory)
- cret@cert.org (vendor-advisory, Third Party Advisory)
- cret@cert.org (vendor-advisory, Third Party Advisory)
- cret@cert.org (vendor-advisory, Third Party Advisory)
- cret@cert.org (Exploit, Patch, Release Notes)
Frequently asked questions
- What is CVE-2012-1823?
- CVE-2012-1823 is a critical-severity vulnerability in Apple Mac_os_x, classified under Command Injection. CVSS score: 9.8/10. Published 2012-05-11.
- How severe is CVE-2012-1823?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2012-1823 known to be exploited?
- Yes. CVE-2012-1823 is listed in the CISA Known Exploited Vulnerabilities catalog (added 2022-03-25), indicating it is being actively exploited. 86 public proof-of-concept repositories are indexed.