BlogSafe.org

PHP CVEs

Vulnerabilities in the PHP language itself, and which PHP versions they affect.

← Back to CVE list

CVE-2012-0831

MEDIUM 6.8 CVSS 2.0
Published
February 10, 2012
Last modified
June 16, 2026
NVD status
Modified
Reported by
secalert@redhat.com
Weakness
CWE-20
CVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

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.

Affected products and versions

  • PHP — Up to and including 5.3.10

References

  • lists.apple.com http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html Mailing List, Third Party Advisory
  • lists.fedoraproject.org http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html Mailing List, Third Party Advisory
  • lists.fedoraproject.org http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html Mailing List, Third Party Advisory
  • lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html Mailing List, Third Party Advisory
  • lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html Mailing List, Third Party Advisory
  • lists.opensuse.org http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html Mailing List, Third Party Advisory
  • rhn.redhat.com http://rhn.redhat.com/errata/RHSA-2013-1307.html Third Party Advisory
  • secunia.com http://secunia.com/advisories/48668 Third Party Advisory
  • secunia.com http://secunia.com/advisories/55078 Third Party Advisory
  • support.apple.com http://support.apple.com/kb/HT5501 Third Party Advisory
  • svn.php.net http://svn.php.net/viewvc?view=revision&revision=323016 Vendor Advisory
  • www.securityfocus.com http://www.securityfocus.com/bid/51954 Patch, Third Party Advisory, VDB Entry
  • www.ubuntu.com http://www.ubuntu.com/usn/USN-1358-1 Patch, Third Party Advisory
  • exchange.xforce.ibmcloud.com https://exchange.xforce.ibmcloud.com/vulnerabilities/73125 Third Party Advisory, VDB Entry
  • launchpadlibrarian.net https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz Exploit, Third Party Advisory
  • nvd.nist.gov Official NVD record