Live threats

All CVEs / Php

CVE-2012-0831Php

Medium 6.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Php.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected products (CPE)

VendorProductVersions
phpphp≤ 5.3.10

Official sources

References

Links published by the sources. Open them with care.