CVE-2012-1823 - CVE House
Back to Database
Status published Unknown CVE-2012-1823

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when...

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

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2012-1823

Credits & Attribution

No credits recorded in the NVD database.

References

Affected Vendor

Affected Software

php, fedora, debian linux, hp-ux, opensuse, linux enterprise server, linux enterprise software development kit, mac os x, application stack, gluster storage server for on-premise, storage, storage for public cloud, enterprise linux desktop, enterprise linux eus, enterprise linux server, enterprise linux server aus, enterprise linux workstation
Vulnerable Versions:
0, 5.4.0, 39, 40, 6.0, b.11.23, b.11.31, 11.4, 12.1, 10, 11, 10.6.8, 10.8.0, 2.0, 5.6, 6.1, 6.2, 5.0, 5.3

Timeline

Official Publish: May 11th, 2012
Last Modified: November 4th, 2025
Added to House: July 19th, 2026

CVSS Vectors

No vector data available

Weaknesses (CWE)

No CWE data available

MITRE ATT&CK TTPs

No associated TTPs found for this vulnerability.