CVE-2012-0831

PHP < 5.3.10 - SQL Injection via Environment Variable Import

Title source: llm
STIX 2.1

Description

PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive during the importing of environment variables, which makes it easier for remote attackers to conduct SQL injection attacks via a crafted request, related to main/php_variables.c, sapi/cgi/cgi_main.c, and sapi/fpm/fpm/fpm_main.c.

References (15)

Core 15
Core References
Patch, Third Party Advisory vendor-advisory x_refsource_ubuntu
http://www.ubuntu.com/usn/USN-1358-1
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/55078
Vendor Advisory x_refsource_confirm
http://svn.php.net/viewvc?view=revision&revision=323016
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html
Mailing List, Third Party Advisory vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/48668
Mailing List, Third Party Advisory vendor-advisory x_refsource_apple
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html
Third Party Advisory vendor-advisory x_refsource_redhat
http://rhn.redhat.com/errata/RHSA-2013-1307.html
Third Party Advisory x_refsource_confirm
http://support.apple.com/kb/HT5501
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html
Exploit, Third Party Advisory x_refsource_confirm
https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/73125
Patch, Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/51954
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html

Scores

EPSS 0.1063
EPSS Percentile 93.4%

Details

CWE
CWE-20
Status published
Products (1)
php/php < 5.3.10
Published Feb 10, 2012
Tracked Since Feb 18, 2026