{"id":"CVE-2004-1020","state":"PUBLISHED","title":"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 dir","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.","publishedAt":"2004-12-08T05:00:00.000Z","updatedAt":"2024-08-08T00:39:00.815Z","severity":null,"assigner":"mitre","products":["n/a n/a"],"affected":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":["https://exchange.xforce.ibmcloud.com/vulnerabilities/18516","http://www.php.net/release_4_3_10.php","http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","http://www.securityfocus.com/bid/11981","http://www.securityfocus.com/archive/1/384663","http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915","http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml","http://www.securityfocus.com/advisories/9028"],"weaknesses":[],"ingestedAt":"2026-10-29T19:27:02.310Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2004/1xxx/CVE-2004-1020.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2004-1020","state":"PUBLISHED","datePublished":"2004-12-08T05:00:00.000Z","dateUpdated":"2024-08-08T00:39:00.815Z","assignerShortName":"mitre","assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","dateReserved":"2004-11-04T00:00:00.000Z"},"containers":{"cna":{"descriptions":[{"lang":"en","value":"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":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}],"references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18516","name":"php-addslashes-view-files(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","name":"MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE"]},{"url":"http://www.securityfocus.com/bid/11981","name":"11981","tags":["vdb-entry","x_refsource_BID"]},{"url":"http://www.securityfocus.com/archive/1/384663","name":"20041216 PHP Input Validation Vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915","name":"CLA-2005:915","tags":["vendor-advisory","x_refsource_CONECTIVA"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml","name":"GLSA-200412-14","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"http://www.securityfocus.com/advisories/9028","name":"HPSBMA01212","tags":["vendor-advisory","x_refsource_HP"]}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"shortName":"mitre","dateUpdated":"2017-07-10T14:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca"},"datePublic":"2004-12-15T00:00:00.000Z","x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-1020","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"php-addslashes-view-files(18516)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18516"},{"name":"http://www.php.net/release_4_3_10.php","refsource":"CONFIRM","url":"http://www.php.net/release_4_3_10.php"},{"name":"MDKSA-2004:151","refsource":"MANDRAKE","url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151"},{"name":"11981","refsource":"BID","url":"http://www.securityfocus.com/bid/11981"},{"name":"20041216 PHP Input Validation Vulnerabilities","refsource":"BUGTRAQ","url":"http://www.securityfocus.com/archive/1/384663"},{"name":"CLA-2005:915","refsource":"CONECTIVA","url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915"},{"name":"GLSA-200412-14","refsource":"GENTOO","url":"http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml"},{"name":"HPSBMA01212","refsource":"HP","url":"http://www.securityfocus.com/advisories/9028"}]}}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18516","name":"php-addslashes-view-files(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"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2004:151","name":"MDKSA-2004:151","tags":["vendor-advisory","x_refsource_MANDRAKE","x_transferred"]},{"url":"http://www.securityfocus.com/bid/11981","name":"11981","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/384663","name":"20041216 PHP Input Validation Vulnerabilities","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://distro.conectiva.com.br/atualizacoes/?id=a&anuncio=000915","name":"CLA-2005:915","tags":["vendor-advisory","x_refsource_CONECTIVA","x_transferred"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-14.xml","name":"GLSA-200412-14","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://www.securityfocus.com/advisories/9028","name":"HPSBMA01212","tags":["vendor-advisory","x_refsource_HP","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-08T00:39:00.815Z"}}]}}}