php: change to the FILTER_UNSAFE_RAW in 5.2.7 breaks magic_quotes_gpc
Published Jan 5, 2009
7.5
HIGHCVSS 2.0
EPSS 1.66%
Description
PHP 5.2.7 contains an incorrect change to the FILTER_UNSAFE_RAW functionality, and unintentionally disables magic_quotes_gpc regardless of the actual magic_quotes_gpc setting, which might make it easier for context-dependent attackers to conduct SQL injection attacks and unspecified other attacks.
Affected products
Remediation
Red Hat statement
Not vulnerable. This issue did not affect the versions of the php package, as shipped with Red Hat Enterprise Linux 2.1, 3, 4, 5, and with Red Hat Application Stack v1 and v2. Only PHP version 5.2.7 was affected by this flaw.
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:L/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 3, 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 (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 3, 2026 | 1.66% (0.01664) | 75.90th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.66% (0.01664) | 73.59th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.53% (0.00526) | 65.07th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.36% (0.00360) | 73.11th | v3 (v2023.03.01) |
| May 4, 2024 | 0.37% (0.00372) | 72.53th | v3 (v2023.03.01) |
| Feb 8, 2024 | 0.36% (0.00360) | 71.45th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.36% (0.00362) | 67.93th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
References (11)
- http://bugs.php.net/bug.php?id=42718 x_refsource_CONFIRMExploit
- http://bugs.php.net/bug.php?id=46759 x_refsource_CONFIRM
- http://www.php.net/ChangeLog-5.php#5.2.8 x_refsource_CONFIRM
- http://www.php.net/archive/2008.php#id2008-12-07-1 x_refsource_CONFIRM
- http://www.php.net/archive/2008.php#id2008-12-08-1 x_refsource_CONFIRM
- http://www.securityfocus.com/bid/32673 vdb-entryx_refsource_BID
- http://www.securitytracker.com/id?1021393 vdb-entryx_refsource_SECTRACK
- https://access.redhat.com/security/cve/CVE-2008-5844 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=480169 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2008-5844
- https://www.cve.org/CVERecord?id=CVE-2008-5844
| Link | Providers | Tags |
|---|---|---|
| http://bugs.php.net/bug.php?id=42718 | x_refsource_CONFIRMExploit | |
| http://bugs.php.net/bug.php?id=46759 | x_refsource_CONFIRM | |
| http://www.php.net/ChangeLog-5.php#5.2.8 | x_refsource_CONFIRM | |
| http://www.php.net/archive/2008.php#id2008-12-07-1 | x_refsource_CONFIRM | |
| http://www.php.net/archive/2008.php#id2008-12-08-1 | x_refsource_CONFIRM | |
| http://www.securityfocus.com/bid/32673 | vdb-entryx_refsource_BID | |
| http://www.securitytracker.com/id?1021393 | vdb-entryx_refsource_SECTRACK | |
| https://access.redhat.com/security/cve/CVE-2008-5844 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=480169 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2008-5844 | ||
| https://www.cve.org/CVERecord?id=CVE-2008-5844 |
Change history (0)
No recorded changes yet.