{"id":"CVE-2004-1304","aliases":["DEBIAN-CVE-2004-1304","EUVD-2004-1301","GHSA-w22m-7gfq-73mf"],"status":"published","title":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers...","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","severity":{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.11396,"percentile":0.96026,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":true},"published":"2004-12-22T05:00:00Z","modified":"2026-10-21T15:47:38Z","exploits":[{"source":"exploitdb","id":"EDB-24784","title":"File ELF 4.x - Header Buffer Overflow","type":"remote","platform":"linux","date":"2004-11-29","verified":true,"url":"https://www.exploit-db.com/exploits/24784"}],"fixes":[{"ecosystem":"Debian:12","package":"file","fixed_in":["4.12"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"file","fixed_in":["4.12"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"file","fixed_in":["4.12"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"file","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.12"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"file","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.12"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"file","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.12"}]}]}],"products":[{"vendor":"file","product":"file"},{"vendor":"gentoo","product":"linux"},{"vendor":"trustix","product":"secure_linux"}],"references":[{"url":"http://www.trustix.net/errata/2004/0063/","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred","web"]},{"url":"http://securitytracker.com/id?1012433","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","web"]},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred","web"]},{"url":"http://www.securityfocus.com/bid/11771","tags":["vdb-entry","x_refsource_BID","x_transferred","Patch","Vendor Advisory","advisory","fix"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18368","tags":["vdb-entry","x_refsource_XF","x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1304"},{"url":"http://www.trustix.net/errata/2004/0063"},{"url":"https://github.com/advisories/GHSA-w22m-7gfq-73mf"},{"url":"https://security-tracker.debian.org/tracker/CVE-2004-1304","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2004-1304","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","status":"published","published":"2004-12-22T05:00:00Z","modified":"2024-08-08T00:46:12.358Z","updated_at":"2026-11-02T14:34:54.063504Z"}],"euvd":[{"id":"EUVD-2004-1301","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","status":"published","published":"2004-12-22T05:00:00Z","modified":"2024-08-08T00:46:12Z","updated_at":"2026-11-03T01:15:15.601329Z"}],"ghsa":[{"id":"GHSA-w22m-7gfq-73mf","title":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers...","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","status":"published","published":"2022-04-29T02:59:18Z","modified":"2025-04-03T04:08:40Z","updated_at":"2026-11-02T15:00:41.179225Z"}],"nvd":[{"id":"CVE-2004-1304","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-06-16T22:07:25.99Z","cvss":[{"version":"2.0","score":10,"vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"updated_at":"2026-11-02T14:00:53.662124Z"}],"osv":[{"id":"CVE-2004-1304","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-04-10T03:36:36.822608Z","updated_at":"2026-11-02T15:43:56.315348Z"},{"id":"DEBIAN-CVE-2004-1304","description":"Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.","status":"published","published":"2005-01-10T05:00:00Z","modified":"2026-10-21T15:47:38.644045844Z","updated_at":"2026-11-02T15:45:22.55978Z"}]}}
