{"id":"CVE-2004-1020","aliases":["EUVD-2004-1018","GHSA-h7q9-pqp4-r828"],"status":"published","title":"The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may...","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.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.07068,"percentile":0.94251,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"published":"2004-12-08T05:00:00Z","modified":"2026-06-16T22:06:52Z","exploits":[{"source":"exploitdb","id":"EDB-24985","title":"PHP 4/5 - 'addslashes()' Null Byte Bypass","type":"remote","platform":"php","date":"2004-12-16","verified":true,"url":"https://www.exploit-db.com/exploits/24985"}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18516","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.php.net/release_4_3_10.php","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"]},{"url":"http://www.securityfocus.com/bid/11981","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit","Patch"]},{"url":"http://www.securityfocus.com/archive/1/384663","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred","Exploit","Vendor Advisory"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a\u0026anuncio=000915","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","Vendor Advisory"]},{"url":"http://www.securityfocus.com/advisories/9028","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1020"},{"url":"https://github.com/advisories/GHSA-h7q9-pqp4-r828"}],"sources":{"cve":[{"id":"CVE-2004-1020","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.","status":"published","published":"2004-12-08T05:00:00Z","modified":"2024-08-08T00:39:00.815Z","updated_at":"2026-11-02T14:34:54.398187Z"}],"euvd":[{"id":"EUVD-2004-1018","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.","status":"published","published":"2004-12-08T05:00:00Z","modified":"2024-08-08T00:39:00Z","updated_at":"2026-11-03T01:15:16.711153Z"}],"ghsa":[{"id":"GHSA-h7q9-pqp4-r828","title":"The addslashes function in PHP 4.3.9 does not properly escape a NULL (/0) character, which may...","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.","status":"published","published":"2022-04-29T02:58:47Z","modified":"2023-01-30T05:03:05Z","updated_at":"2026-11-02T14:46:46.047512Z"}],"nvd":[{"id":"CVE-2004-1020","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.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-06-16T22:06:52.15Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"updated_at":"2026-11-02T14:00:53.133049Z"}]}}
