The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism
Published Dec 8, 2004
5.0
MEDIUMCVSS 2.0
EPSS 7.07%
Description
The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary files in PHP applications that contain a directory traversal vulnerability in require or include statements, but are otherwise protected by the magic_quotes_gpc mechanism. NOTE: this issue was originally REJECTed by its CNA before publication, but that decision is in active dispute. This candidate may change significantly in the future as a result of further discussion.
Affected products
No data.
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
Red Hat statement
Red Hat does not consider this issue to be a security vulnerability since no trust boundary is crossed. There are no known uses of this function which could allow a remote attacker to execute arbitrary code.
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:N/A:N
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 (18 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 7.07% (0.07068) | 94.02th | v5 (v2026.06.15) |
| Jun 15, 2026 | 7.07% (0.07068) | 93.37th | v5 (v2026.06.15) |
| Mar 13, 2026 | 10.40% (0.10400) | 93.11th | v4 (v2025.03.14) |
| Dec 28, 2025 | 8.01% (0.08011) | 91.81th | v4 (v2025.03.14) |
| Dec 27, 2025 | 12.64% (0.12637) | 93.78th | v4 (v2025.03.14) |
| Oct 28, 2025 | 8.01% (0.08011) | 91.70th | v4 (v2025.03.14) |
| Oct 27, 2025 | 12.64% (0.12637) | 93.70th | v4 (v2025.03.14) |
| Oct 1, 2025 | 8.01% (0.08011) | 91.80th | v4 (v2025.03.14) |
| Jul 30, 2025 | 12.64% (0.12637) | 93.68th | v4 (v2025.03.14) |
| Mar 30, 2025 | 8.01% (0.08011) | 91.29th | v4 (v2025.03.14) |
| Mar 29, 2025 | 6.03% (0.06026) | 84.10th | v4 (v2025.03.14) |
| Mar 17, 2025 | 8.01% (0.08011) | 91.48th | v4 (v2025.03.14) |
| Dec 12, 2024 | 1.96% (0.01959) | 89.20th | v3 (v2023.03.01) |
| Jul 20, 2024 | 1.96% (0.01959) | 88.88th | v3 (v2023.03.01) |
| Mar 7, 2023 | 1.96% (0.01959) | 86.88th | v3 (v2023.03.01) |
| Mar 6, 2023 | 7.20% (0.07197) | 92.42th | v2 (v2022.01.01) |
| Apr 1, 2022 | 7.20% (0.07197) | 91.69th | v2 (v2022.01.01) |
| Feb 4, 2022 | 7.20% (0.07197) | 80.47th | v2 (v2022.01.01) |
No CWE recorded.
References (11)
- http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 vendor-advisoryx_refsource_CONECTIVA
- http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml vendor-advisoryx_refsource_GENTOOVendor Advisory
- http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 vendor-advisoryx_refsource_MANDRAKE
- http://www.php.net/release_4_3_10.php x_refsource_CONFIRMVendor Advisory
- http://www.securityfocus.com/advisories/9028 vendor-advisoryx_refsource_HP
- http://www.securityfocus.com/archive/1/384663 mailing-listx_refsource_BUGTRAQExploitVendor Advisory
- http://www.securityfocus.com/bid/11981 vdb-entryx_refsource_BIDExploitPatch
- https://access.redhat.com/security/cve/CVE-2004-1020 Vendor Advisory
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18516 vdb-entryx_refsource_XF
- https://nvd.nist.gov/vuln/detail/CVE-2004-1020
- https://www.cve.org/CVERecord?id=CVE-2004-1020
| Link | Providers | Tags |
|---|---|---|
| http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915 | vendor-advisoryx_refsource_CONECTIVA | |
| http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml | vendor-advisoryx_refsource_GENTOOVendor Advisory | |
| http://www.mandriva.com/security/advisories?name=MDKSA-2004:151 | vendor-advisoryx_refsource_MANDRAKE | |
| http://www.php.net/release_4_3_10.php | x_refsource_CONFIRMVendor Advisory | |
| http://www.securityfocus.com/advisories/9028 | vendor-advisoryx_refsource_HP | |
| http://www.securityfocus.com/archive/1/384663 | mailing-listx_refsource_BUGTRAQExploitVendor Advisory | |
| http://www.securityfocus.com/bid/11981 | vdb-entryx_refsource_BIDExploitPatch | |
| https://access.redhat.com/security/cve/CVE-2004-1020 | Vendor Advisory | |
| https://exchange.xforce.ibmcloud.com/vulnerabilities/18516 | vdb-entryx_refsource_XF | |
| https://nvd.nist.gov/vuln/detail/CVE-2004-1020 | ||
| https://www.cve.org/CVERecord?id=CVE-2004-1020 |
Change history (0)
No recorded changes yet.