php: PG(magic_quote_gpc) was not restored on shutdown
Published Feb 10, 2012
6.8
MEDIUMCVSS 2.0
EPSS 6.47%
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.
Affected products
No data.
No data.
Red Hat Enterprise Linux 5
php53-0:5.3.3-21.el5
Fixed · RHSA-2013:1307
Red Hat Enterprise Linux 6
php-0:5.3.3-22.el6
Fixed · RHSA-2013:0514
Red Hat Enterprise Linux 5
php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php53-0:5.3.3-21.el5 | Fixed | RHSA-2013:1307 |
| Red Hat Enterprise Linux 6 | php-0:5.3.3-22.el6 | Fixed | RHSA-2013:0514 |
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This issue does not affect the version of php as shipped with Red Hat Enterprise Linux 5.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
No CVSS v3.0 score for this CVE.
AV:N/AC:M/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (44 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.47% (0.06469) | 93.54th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.71% (0.06709) | 93.06th | v5 (v2026.06.15) |
| Mar 4, 2026 | 10.63% (0.10633) | 93.16th | v4 (v2025.03.14) |
| Mar 1, 2026 | 8.40% (0.08404) | 92.20th | v4 (v2025.03.14) |
| Feb 4, 2026 | 10.63% (0.10633) | 93.11th | v4 (v2025.03.14) |
| Feb 1, 2026 | 8.40% (0.08404) | 92.13th | v4 (v2025.03.14) |
| Jan 4, 2026 | 10.63% (0.10633) | 93.05th | v4 (v2025.03.14) |
| Jan 1, 2026 | 8.40% (0.08404) | 92.08th | v4 (v2025.03.14) |
| Dec 4, 2025 | 10.63% (0.10633) | 93.01th | v4 (v2025.03.14) |
| Dec 1, 2025 | 8.40% (0.08404) | 92.01th | v4 (v2025.03.14) |
| Nov 4, 2025 | 10.63% (0.10633) | 92.95th | v4 (v2025.03.14) |
| Nov 1, 2025 | 8.40% (0.08404) | 91.95th | v4 (v2025.03.14) |
| Oct 4, 2025 | 10.63% (0.10633) | 93.00th | v4 (v2025.03.14) |
| Oct 1, 2025 | 8.40% (0.08404) | 92.01th | v4 (v2025.03.14) |
| Sep 4, 2025 | 9.76% (0.09761) | 92.66th | v4 (v2025.03.14) |
| Sep 1, 2025 | 5.26% (0.05260) | 89.67th | v4 (v2025.03.14) |
| Aug 17, 2025 | 9.76% (0.09761) | 92.63th | v4 (v2025.03.14) |
| Aug 4, 2025 | 10.95% (0.10954) | 93.13th | v4 (v2025.03.14) |
| Aug 1, 2025 | 5.63% (0.05628) | 90.04th | v4 (v2025.03.14) |
| Jul 17, 2025 | 11.91% (0.11914) | 93.42th | v4 (v2025.03.14) |
| Jul 4, 2025 | 15.36% (0.15360) | 94.32th | v4 (v2025.03.14) |
| Jul 1, 2025 | 11.70% (0.11699) | 93.39th | v4 (v2025.03.14) |
| Jun 4, 2025 | 15.36% (0.15360) | 94.27th | v4 (v2025.03.14) |
| Jun 1, 2025 | 10.99% (0.10993) | 93.09th | v4 (v2025.03.14) |
| May 4, 2025 | 13.78% (0.13779) | 93.87th | v4 (v2025.03.14) |
| May 1, 2025 | 10.99% (0.10993) | 93.06th | v4 (v2025.03.14) |
| Apr 24, 2025 | 13.78% (0.13779) | 93.86th | v4 (v2025.03.14) |
| Apr 8, 2025 | 16.05% (0.16053) | 94.24th | v4 (v2025.03.14) |
| Apr 7, 2025 | 12.89% (0.12892) | 93.44th | v4 (v2025.03.14) |
| Apr 3, 2025 | 16.05% (0.16053) | 94.23th | v4 (v2025.03.14) |
| Apr 2, 2025 | 12.89% (0.12892) | 93.44th | v4 (v2025.03.14) |
| Mar 30, 2025 | 16.05% (0.16053) | 94.22th | v4 (v2025.03.14) |
| Mar 29, 2025 | 24.44% (0.24439) | 93.71th | v4 (v2025.03.14) |
| Mar 17, 2025 | 16.05% (0.16053) | 94.29th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.63% (0.00625) | 79.65th | v3 (v2023.03.01) |
| Apr 4, 2024 | 0.63% (0.00625) | 78.57th | v3 (v2023.03.01) |
| Nov 9, 2023 | 0.63% (0.00625) | 76.56th | v3 (v2023.03.01) |
| Jul 8, 2023 | 0.74% (0.00736) | 78.29th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.04% (0.01042) | 81.65th | v3 (v2023.03.01) |
| Mar 6, 2023 | 3.78% (0.03779) | 85.48th | v2 (v2022.01.01) |
| Feb 13, 2023 | 3.78% (0.03779) | 85.08th | v2 (v2022.01.01) |
| Feb 3, 2023 | 4.36% (0.04358) | 87.66th | v2 (v2022.01.01) |
| Apr 1, 2022 | 3.78% (0.03779) | 84.01th | v2 (v2022.01.01) |
| Feb 4, 2022 | 3.78% (0.03779) | 67.21th | v2 (v2022.01.01) |
References (19)
- http://lists.apple.com/archives/security-announce/2012/Sep/msg00004.html vendor-advisoryx_refsource_APPLEMailing ListThird Party Advisory
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080037.html vendor-advisoryx_refsource_FEDORAMailing ListThird Party Advisory
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080041.html vendor-advisoryx_refsource_FEDORAMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00013.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2012-03/msg00016.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://lists.opensuse.org/opensuse-security-announce/2012-04/msg00001.html vendor-advisoryx_refsource_SUSEMailing ListThird Party Advisory
- http://rhn.redhat.com/errata/RHSA-2013-1307.html vendor-advisoryx_refsource_REDHATThird Party Advisory
- http://secunia.com/advisories/48668 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://secunia.com/advisories/55078 third-party-advisoryx_refsource_SECUNIAThird Party Advisory
- http://support.apple.com/kb/HT5501 x_refsource_CONFIRMThird Party Advisory
- http://svn.php.net/viewvc?view=revision&revision=323016 x_refsource_CONFIRMVendor Advisory
- http://www.securityfocus.com/bid/51954 vdb-entryx_refsource_BIDPatchThird Party AdvisoryVDB Entry
- http://www.ubuntu.com/usn/USN-1358-1 vendor-advisoryx_refsource_UBUNTUPatchThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2012-0831 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=789468 Issue Tracking
- https://exchange.xforce.ibmcloud.com/vulnerabilities/73125 vdb-entryx_refsource_XFThird Party AdvisoryVDB Entry
- https://launchpadlibrarian.net/92454212/php5_5.3.2-1ubuntu4.13.diff.gz x_refsource_CONFIRMExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2012-0831
- https://www.cve.org/CVERecord?id=CVE-2012-0831
Change history (0)
No recorded changes yet.