Vulnerabilities · 2012 · Php
CVE-2012-0831
Php vulnerability
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.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- svn.php.net/viewvc?view=revision&revision=323016 · Vendor Advisory
- www.securityfocus.com/bid/51954 · Patch
- www.ubuntu.com/usn/USN-1358-1 · Patch
- lists.apple.com/archives/security-announce/2012/Sep/msg00004.html · Third Party Advisory
- lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html · Third Party Advisory
- lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html · Third Party Advisory
- lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2012-0831
- cve.org/CVERecord?id=CVE-2012-0831
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.