Back
CVE-2012-0831
PHP before 5.3.10 does not properly perform a temporary change to the magic_quotes_gpc directive during the importing of environment…
Medium6.8EPSS 6.5%
- Published
- Updated
- Reserved
- Assigned by
- redhat
Description
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 6.5% · top 6.3% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 6.8.
Weakness
Affected products
n/a
- affected n/a
References (15)
- USN-1358-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- SUSE-SU-2012:0411 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 55078 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://svn.php.net/viewvc?view=revision&revision=323016 (opens in a new tab)x_refsource_CONFIRMx_transferred
- openSUSE-SU-2012:0426 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- SUSE-SU-2012:0472 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 48668 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- APPLE-SA-2012-09-19-2 (opens in a new tab)vendor-advisoryx_refsource_APPLEx_transferred
- RHSA-2013:1307 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- http://support.apple.com/kb/HT5501 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2012-6907 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz (opens in a new tab)x_refsource_CONFIRMx_transferred
- php-magicquotesgpc-sec-bypass(73125) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- 51954 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- FEDORA-2012-6911 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .