CVE-2012-1823
Attackers are using this
Critical severity
Published May 11, 2012
· updated June 16, 2026
Attackers are using this.
CISA added it to its list of vulnerabilities being exploited on March 25, 2022.
CISA's advice: Apply updates per vendor instructions.
What it is
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.
What it affects, and the version that fixes it
- Debian No fixed version listed yet.
- macOS Make sure you are on 10.8.2 or later.
- Fedora No fixed version listed yet.
- HP HP-UX No fixed version listed yet.
- OpenSUSE No fixed version listed yet.
- PHP Make sure you are on 5.4.2 or later.
- Red Hat Enterprise Linux Extended Update Support (EUS) No fixed version listed yet.
- Red Hat Enterprise Linux Server No fixed version listed yet.
- Red Hat Enterprise Linux Server Advanced mission critical Update Support (AUS) No fixed version listed yet.
- Red Hat Enterprise Linux Workstation No fixed version listed yet.
- Red Hat Gluster Storage Server for On-premise No fixed version listed yet.
- Red Hat Storage No fixed version listed yet.
- Red Hat Storage For Public Cloud No fixed version listed yet.
- Redhat Application Stack No fixed version listed yet.
- Redhat Enterprise Linux Desktop No fixed version listed yet.
- SUSE Linux Enterprise Server No fixed version listed yet.
- SUSE Linux Enterprise Software Development Kit No fixed version listed yet.