CVE-2012-0831

Publication date 2 February 2012

Last updated 24 July 2024


Ubuntu priority

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.

From the Ubuntu Security Team

It was discovered that PHP allowed the magic_quotes_gpc setting to be disabled remotely. This could allow a remote attacker to bypass restrictions that could prevent an SQL injection.

Read the notes from the security team

Status

Package Ubuntu Release Status
php5 11.10 oneiric
Fixed 5.3.6-13ubuntu3.5
11.04 natty
Fixed 5.3.5-1ubuntu7.6
10.10 maverick
Fixed 5.3.3-1ubuntu9.9
10.04 LTS lucid
Fixed 5.3.2-1ubuntu4.13
8.04 LTS hardy
Fixed 5.2.4-2ubuntu5.22

Notes


sbeattie

this introduced a regression, see bugs

References

Related Ubuntu Security Notices (USN)

Other references