CVE-2012-0831Php
Medium 6.8 No auth needed
Follow: this CVE · Php · Php We alert you by email or Slack (account required).
- Priority
- 56
- CVSS 2.0
- 6.8
- EPSS
- 6.5% probability of exploitation in 30 days · percentile 95
- Auth required
- No
- Published
- Feb 10, 2012
- Updated
- Jun 16, 2026
- Category
- Web application · Cross-platform
- Weakness (CWE)
- CWE-20
- Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P
What happens
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.
What to do
- Apply the vendor's security update for Php.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| php | php | ≤ 5.3.10 |
Official sources
References
Links published by the sources. Open them with care.
- lists.apple.com Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.fedoraproject.org Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- lists.opensuse.org Mailing List Third Party Advisory
- rhn.redhat.com Third Party Advisory
- secunia.com Third Party Advisory
- secunia.com Third Party Advisory
- support.apple.com Third Party Advisory
- svn.php.net Vendor Advisory
- www.securityfocus.com Patch Third Party Advisory VDB Entry
- www.ubuntu.com Patch Third Party Advisory
- exchange.xforce.ibmcloud.com Third Party Advisory VDB Entry
- launchpadlibrarian.net Exploit Third Party Advisory