Public Date:
789468: CVE-2012-0831 php: PG(magic_quote_gpc) was not restored on shutdown

The MITRE CVE dictionary describes this issue as:

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.

Find out more about CVE-2012-0831 from the MITRE CVE dictionary dictionary and NIST NVD.


This issue does not affect the version of php as shipped with Red Hat Enterprise Linux 5.

CVSS v2 metrics

Base Score 2.6
Base Metrics AV:N/AC:H/Au:N/C:N/I:P/A:N
Access Vector Network
Access Complexity High
Authentication None
Confidentiality Impact None
Integrity Impact Partial
Availability Impact None

Find out more about Red Hat support for the Common Vulnerability Scoring System (CVSS).

Red Hat Security Errata

Platform Errata Release Date
Red Hat Enterprise Linux 6 (php) RHSA-2013:0514 2013-02-20
Red Hat Enterprise Linux 5 (php53) RHSA-2013:1307 2013-09-30

Affected Packages State

Platform Package State
Red Hat Enterprise Linux 5 php Not affected
Last Modified

CVE description copyright © 2017, The MITRE Corporation