Vulnerability database / CVE-2012-0831
CVE-2012-0831
MEDIUM 6.8 CVSS 2.0 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.
Published 10 Feb 2012
Last modified 16 Jun 2026 Assigned by secalert@redhat.com NVD status Modified Weakness
CWE-20 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 6.8
AV:N/AC:M/Au:N/C:P/I:P/A:P
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
php
phpcpe:2.3:a:php:php:*:*:*:*:*:*:*:*
<= 5.3.10
References
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html · Mailing List, Third Party Advisory http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html · Mailing List, Third Party Advisory http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html · Mailing List, Third Party Advisory http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html · Mailing List, Third Party Advisory http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html · Mailing List, Third Party Advisory http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html · Mailing List, Third Party Advisory http://rhn.redhat.com/errata/RHSA-2013-1307.html · Third Party Advisory http://secunia.com/advisories/48668 · Third Party Advisory http://secunia.com/advisories/55078 · Third Party Advisory http://support.apple.com/kb/HT5501 · Third Party Advisory http://svn.php.net/viewvc?view=revision&revision=323016 · Vendor Advisory http://www.securityfocus.com/bid/51954 · Patch, Third Party Advisory, VDB Entry http://www.ubuntu.com/usn/USN-1358-1 · Patch, Third Party Advisory https://exchange.xforce.ibmcloud.com/vulnerabilities/73125 · Third Party Advisory, VDB Entry https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz · Exploit, Third Party Advisory
History
25 Nov 2026 20:16 UTC · NVD: first stored (published 10 Feb 2012)