CVE-2012-0831

medium
Published 2012-02-10 · Modified 2026-04-29
CVSS v3
CVSS v2
6.8
VIR risk
6.8

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.

Predictions

Exploit likelihood
20%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://www.ubuntu.com/usn/USN-1358-1

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://www.securityfocus.com/bid/51954

vendor Authored 2026-05-27

Vendor advisory: secalert@redhat.com — http://svn.php.net/viewvc?view=revision&revision=323016

Application impact

VendorProductVersionsFixed
phpphp{"endIncluding":"5.3.10"}

References

CWEs

CWE-20

Verify integrity in audit chain (admin only). AS-IS.