Skip to content
OpenAdvisories
Unscored CVE-2012-0831 EUVD-2012-0857GHSA-p39c-84x2-h365

PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive during the importing of environment variab…

Published Feb 10, 2012 · Updated Aug 6, 2024 · Assigned by redhat

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 6.0 php5 5.3.3-7+squeeze8 DSA-2408-1
ReleasePackageFixed inAdvisory
RHEL 6 php +26 5.3.3-22.el6 RHSA-2013:0514
RHEL 5 php53 +20 5.3.3-21.el5 RHSA-2013:1307

Advisories 3

References