CVE-2012-0831
MEDIUM · CVSS 6.8EPSS 6.5%EU EUVD
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.
Key facts
- CVSS score
- 6.8 (v2.0)
- Severity
- MEDIUM
- CVSS vector
AV:N/AC:M/Au:N/C:P/I:P/A:P- Weakness (CWE)
- CWE-20
- EPSS score
- 6.5% (94th percentile)
- In CISA KEV
- No
- In EU EUVD
- Yes (EUVD-2012-0857)
- Published
- February 10, 2012
- NVD last modified
- June 16, 2026
- Status
- Modified
EU Vulnerability Database (EUVD)
This vulnerability is also tracked by ENISA as EUVD-2012-0857 in the EU Vulnerability Database. Last updated in EUVD on August 6, 2024.
View on the EU Vulnerability DatabaseAffected products
- php / php
References
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html(Mailing List, Third Party Advisory)
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html(Mailing List, Third Party Advisory)
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html(Mailing List, Third Party Advisory)
- http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html(Mailing List, Third Party Advisory)
- http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html(Mailing List, Third Party Advisory)
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html(Mailing List, Third Party Advisory)
- http://rhn.redhat.com/errata/RHSA-2013-1307.html(Third Party Advisory)
- http://secunia.com/advisories/48668(Third Party Advisory)
- http://secunia.com/advisories/55078(Third Party Advisory)
- http://support.apple.com/kb/HT5501(Third Party Advisory)
- http://svn.php.net/viewvc?view=revision&revision=323016(Vendor Advisory)
- http://www.securityfocus.com/bid/51954(Patch, Third Party Advisory, VDB Entry)
- http://www.ubuntu.com/usn/USN-1358-1(Patch, Third Party Advisory)
- https://exchange.xforce.ibmcloud.com/vulnerabilities/73125(Third Party Advisory, VDB Entry)
- https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz(Exploit, Third Party Advisory)
Last updated September 17, 2026 · Source: NVD, CISA KEV, FIRST.org EPSS
Query CVEs from your AI assistant
The CVE/NVD Explorer brain answers CVE questions directly inside Claude, ChatGPT, or any MCP assistant — always up to date, no setup. Add it once and stop pasting advisories into chat.
Add the CVE brain