{"id":"CVE-2012-0831","published":"2012-02-10T20:00:00Z","modified":"2024-08-06T18:38:14Z","title":"PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive during the importing…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.06469,"percentile":0.93903,"provenance":"source"},"cwes":[],"references":[{"url":"http://www.ubuntu.com/usn/USN-1358-1","tags":["vendor-advisory","x_refsource_UBUNTU"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://secunia.com/advisories/55078","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://svn.php.net/viewvc?view=revision&revision=323016","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"http://secunia.com/advisories/48668","tags":["third-party-advisory","x_refsource_SECUNIA"]},{"url":"http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html","tags":["vendor-advisory","x_refsource_APPLE"]},{"url":"http://rhn.redhat.com/errata/RHSA-2013-1307.html","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://support.apple.com/kb/HT5501","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html","tags":["vendor-advisory","x_refsource_FEDORA"]},{"url":"https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz","tags":["x_refsource_CONFIRM"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/73125","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.securityfocus.com/bid/51954","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html","tags":["vendor-advisory","x_refsource_FEDORA"]}],"priority":{"score":18.8,"factors":[{"name":"EPSS percentile","points":18.78}]},"summary":{"text":"The flaw is in PHP before 5.3.10, where the magic_quotes_gpc directive is not properly and temporarily changed while environment variables are imported, with the affected code in main/php_variables.c, sapi/cgi/cgi_main.c, and sapi/fpm/fpm/fpm_main.c.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:01:25Z"},"euvd":{"id":"EUVD-2012-0857","exploited":false,"provenance":"source"}}