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.
https://exchange.xforce.ibmcloud.com/vulnerabilities/73125
http://www.ubuntu.com/usn/USN-1358-1
http://www.securityfocus.com/bid/51954
http://svn.php.net/viewvc?view=revision&revision=323016
http://support.apple.com/kb/HT5501
http://secunia.com/advisories/55078
http://secunia.com/advisories/48668
http://rhn.redhat.com/errata/RHSA-2013-1307.html
http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html
http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html
http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html
http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html
http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html