TROYANOSYVIRUS
Back to CVEs

CVE-2012-1823

CRITICALCISA KEV
9.8

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.

CVE Details

CVSS v3.1 Score9.8
SeverityCRITICAL
CVSS VectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Attack VectorNETWORK
ComplexityLOW
Privileges RequiredNONE
User InteractionNONE
Published5/11/2012
Last Modified4/21/2026
Sourcekev
Honeypot Sightings0

CISA KEV

VendorPHP
ProductPHP
Vulnerability NamePHP-CGI Query String Parameter Vulnerability
KEV Date Added2022-03-25
Remediation Due Date2022-04-15
Ransomware UseUnknown

Affected Products

apple:mac_os_xdebian:debian_linuxfedoraproject:fedorahp:hp-uxopensuse:opensusephp:phpredhat:application_stackredhat:enterprise_linux_desktopredhat:enterprise_linux_eusredhat:enterprise_linux_serverredhat:enterprise_linux_server_ausredhat:enterprise_linux_workstationredhat:gluster_storage_server_for_on-premiseredhat:storageredhat:storage_for_public_cloudsuse:linux_enterprise_serversuse:linux_enterprise_software_development_kit

Weaknesses (CWE)

CWE-77CWE-77

References

http://marc.info/?l=bugtraq&m=134012830914727&w=2(af854a3a-2127-422b-91ae-364da2661108)
http://rhn.redhat.com/errata/RHSA-2012-0546.html(af854a3a-2127-422b-91ae-364da2661108)
http://rhn.redhat.com/errata/RHSA-2012-0547.html(af854a3a-2127-422b-91ae-364da2661108)
http://rhn.redhat.com/errata/RHSA-2012-0568.html(af854a3a-2127-422b-91ae-364da2661108)
http://rhn.redhat.com/errata/RHSA-2012-0569.html(af854a3a-2127-422b-91ae-364da2661108)
http://rhn.redhat.com/errata/RHSA-2012-0570.html(af854a3a-2127-422b-91ae-364da2661108)
http://secunia.com/advisories/49014(af854a3a-2127-422b-91ae-364da2661108)
http://secunia.com/advisories/49065(af854a3a-2127-422b-91ae-364da2661108)
http://secunia.com/advisories/49085(af854a3a-2127-422b-91ae-364da2661108)
http://secunia.com/advisories/49087(af854a3a-2127-422b-91ae-364da2661108)
http://support.apple.com/kb/HT5501(af854a3a-2127-422b-91ae-364da2661108)
http://www.debian.org/security/2012/dsa-2465(af854a3a-2127-422b-91ae-364da2661108)
http://www.kb.cert.org/vuls/id/520827(af854a3a-2127-422b-91ae-364da2661108)
http://www.kb.cert.org/vuls/id/673343(af854a3a-2127-422b-91ae-364da2661108)
http://www.openwall.com/lists/oss-security/2024/06/07/1(af854a3a-2127-422b-91ae-364da2661108)
http://www.php.net/ChangeLog-5.php#5.4.2(af854a3a-2127-422b-91ae-364da2661108)
http://www.php.net/archive/2012.php#id2012-05-03-1(af854a3a-2127-422b-91ae-364da2661108)
http://www.securitytracker.com/id?1027022(af854a3a-2127-422b-91ae-364da2661108)
https://bugs.php.net/bug.php?id=61910(af854a3a-2127-422b-91ae-364da2661108)

IOC Correlations

No correlations recorded

This product uses data from the NVD API but is not endorsed or certified by the NVD.