CVE-2004-1020 json
The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers to read arbitrary fil…
published 2004-12-08 21 y ago modified 2026-06-16 4 mo ago also EUVD-2004-1018
- cvss
- 5.0
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 7.1%
- EPSS 7.1% chance of exploitation in 30 days, percentile 94%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
Timeline
- Published
- First public exploit (EDB-24985)
Exploit prediction
7.07% chance of exploitation in the next 30 days, higher than 94% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-24985 PHP 4/5 - 'addslashes()' Null Byte Bypass remote, 2004-12-16
- securityfocus.com http://www.securityfocus.com/bid/11981 referenced PoC, tagged "exploit" by a source, unverified
- securityfocus.com http://www.securityfocus.com/archive/1/384663 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 5.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
- Technology feeds
References
-
securityfocus.com
/bid/11981
vdb-entry, exploit, patch
-
securityfocus.com
/archive/1/384663
mailing-list, exploit, vendor-advisory
-
mandriva.com
/security/advisories?name=MDKSA-2004:151
vendor-advisory
-
distro.conectiva.com.br
/atualizacoes/?id=a&anuncio=000915
vendor-advisory
-
gentoo.org
/security/en/glsa/glsa-200412-14.xml
vendor-advisory
-
securityfocus.com
/advisories/9028
vendor-advisory
-
php.net
/release_4_3_10.php
vendor-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/18516
vdb-entry
Sources
- CVE List CVE-2004-1020
- NVD CVE-2004-1020
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.