{"id":"CVE-2004-1020","published":"2004-12-08T05:00:00Z","modified":"2024-08-08T00:39:00Z","title":"The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may allow remote attackers…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.07322,"percentile":0.94525,"provenance":"source"},"cwes":[],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18516","tags":["vdb-entry","x_refsource_XF"]},{"url":"http://www.php.net/release_4_3_10.php","tags":["x_refsource_CONFIRM"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE"]},{"url":"http://www.securityfocus.com/bid/11981","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securityfocus.com/archive/1/384663","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915","tags":["vendor-advisory","x_refsource_CONECTIVA"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securityfocus.com/advisories/9028","tags":["vendor-advisory","x_refsource_HP"]}],"priority":{"score":23.9,"factors":[{"name":"EPSS percentile","points":18.91},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":1,"earliest":"2004-12-16"},"first":{"date":"2004-12-16","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/24985"},"provenance":"source"},"summary":{"text":"The addslashes function in PHP 4.3.9 fails to properly escape NULL (\\0) characters, so the flaw lives in PHP's string-escaping behaviour in that release. An attacker who can reach a PHP application containing a directory traversal flaw in a require or include statement, and which otherwise relies on magic_quotes_gpc for protection, may be able to read arbitrary files.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:59:42Z"},"euvd":{"id":"EUVD-2004-1018","exploited":false,"provenance":"source"},"exploits":[{"id":24985,"url":"https://www.exploit-db.com/exploits/24985","title":"PHP 4/5 - 'addslashes()' Null Byte Bypass","date":"2004-12-16","verified":true,"provenance":"source"}]}