{"api_version":"1","generated_at":"2026-04-22T23:09:03+00:00","cve":"CVE-2004-1304","urls":{"html":"https://cve.report/CVE-2004-1304","api":"https://cve.report/api/cve/CVE-2004-1304.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2004-1304","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2004-1304"},"summary":{"title":"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.","state":"PUBLISHED","assigner":"mitre","published_at":"2005-01-10 05:00:00","updated_at":"2025-04-03 01:03:51"},"problem_types":["NVD-CWE-Other","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"10","severity":"","vector":"AV:N/AC:L/Au:N/C:C/I:C/A:C","data":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","baseScore":10,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"}}],"references":[{"url":"http://securitytracker.com/id?1012433","name":"http://securitytracker.com/id?1012433","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"SecurityTracker.com Archives - 'File' Stack Overflow in Processing ELF Headers May Permit Arbitrary Code Execution","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18368","name":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18368","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"IBM X-Force Exchange","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.securityfocus.com/bid/11771","name":"http://www.securityfocus.com/bid/11771","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch","Vendor Advisory"],"title":"File ELF Header Unspecified Buffer Overflow Vulnerability","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml","name":"http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Gentoo Linux Documentation\n--\n  file: Arbitrary code execution","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.trustix.net/errata/2004/0063/","name":"http://www.trustix.net/errata/2004/0063/","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"","mime":"text/plain","httpstatus":"-1","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2004-1304","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2004-1304","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.10","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.11","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.4","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.5","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.6","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.7","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.8","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"file","cpe5":"file","cpe6":"4.9","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"gentoo","cpe5":"linux","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"trustix","cpe5":"secure_linux","cpe6":"2.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"trustix","cpe5":"secure_linux","cpe6":"2.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2004","cve_id":"1304","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"trustix","cpe5":"secure_linux","cpe6":"2.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-08T00:46:12.358Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"2004-0063","tags":["vendor-advisory","x_refsource_TRUSTIX","x_transferred"],"url":"http://www.trustix.net/errata/2004/0063/"},{"name":"1012433","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"],"url":"http://securitytracker.com/id?1012433"},{"name":"GLSA-200412-07","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml"},{"name":"11771","tags":["vdb-entry","x_refsource_BID","x_transferred"],"url":"http://www.securityfocus.com/bid/11771"},{"name":"file-elf-header-bo(18368)","tags":["vdb-entry","x_refsource_XF","x_transferred"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18368"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2004-11-29T00:00:00.000Z","descriptions":[{"lang":"en","value":"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."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-07-10T14:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"2004-0063","tags":["vendor-advisory","x_refsource_TRUSTIX"],"url":"http://www.trustix.net/errata/2004/0063/"},{"name":"1012433","tags":["vdb-entry","x_refsource_SECTRACK"],"url":"http://securitytracker.com/id?1012433"},{"name":"GLSA-200412-07","tags":["vendor-advisory","x_refsource_GENTOO"],"url":"http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml"},{"name":"11771","tags":["vdb-entry","x_refsource_BID"],"url":"http://www.securityfocus.com/bid/11771"},{"name":"file-elf-header-bo(18368)","tags":["vdb-entry","x_refsource_XF"],"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18368"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2004-1304","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":"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."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"2004-0063","refsource":"TRUSTIX","url":"http://www.trustix.net/errata/2004/0063/"},{"name":"1012433","refsource":"SECTRACK","url":"http://securitytracker.com/id?1012433"},{"name":"GLSA-200412-07","refsource":"GENTOO","url":"http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml"},{"name":"11771","refsource":"BID","url":"http://www.securityfocus.com/bid/11771"},{"name":"file-elf-header-bo(18368)","refsource":"XF","url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/18368"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2004-1304","datePublished":"2004-12-22T05:00:00.000Z","dateReserved":"2004-12-21T00:00:00.000Z","dateUpdated":"2024-08-08T00:46:12.358Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2005-01-10 05:00:00","lastModifiedDate":"2025-04-03 01:03:51","problem_types":["NVD-CWE-Other","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:C/I:C/A:C","baseScore":10,"accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"COMPLETE","integrityImpact":"COMPLETE","availabilityImpact":"COMPLETE"},"baseSeverity":"HIGH","exploitabilityScore":10,"impactScore":10,"acInsufInfo":false,"obtainAllPrivilege":true,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.0:*:*:*:*:*:*:*","matchCriteriaId":"8916F2B8-2411-4130-AF9A-2CC4CDFF2E3A"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.1:*:*:*:*:*:*:*","matchCriteriaId":"B0F56B59-6FA2-44D2-B4DC-58E6C30A4ACC"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.2:*:*:*:*:*:*:*","matchCriteriaId":"0318EE80-4042-4347-A7AC-818E5419396E"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.3:*:*:*:*:*:*:*","matchCriteriaId":"91A17FDE-1229-4EB8-AF80-D5398C97E05A"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.4:*:*:*:*:*:*:*","matchCriteriaId":"39AFA1E9-49E9-4BF6-A896-7019A38772C5"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.5:*:*:*:*:*:*:*","matchCriteriaId":"0BBDF54B-35C6-47DF-8BA1-39B744381A92"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.6:*:*:*:*:*:*:*","matchCriteriaId":"42DCEED6-D422-4F8A-9E1F-DF7FE3C9EADE"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.7:*:*:*:*:*:*:*","matchCriteriaId":"89B92B2A-EFD4-47B0-89B0-3B92FB610091"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.8:*:*:*:*:*:*:*","matchCriteriaId":"9D68C976-064C-468D-8B5F-223F12AE7F75"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.9:*:*:*:*:*:*:*","matchCriteriaId":"B9038973-BAC7-4F66-AFBB-15F83C61B9FD"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.10:*:*:*:*:*:*:*","matchCriteriaId":"A722FCC2-E952-476E-97A7-D992F047C6D7"},{"vulnerable":true,"criteria":"cpe:2.3:a:file:file:4.11:*:*:*:*:*:*:*","matchCriteriaId":"6E7C8CA5-7BDE-4E7E-A128-31485182E1BC"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:gentoo:linux:*:*:*:*:*:*:*:*","matchCriteriaId":"647BA336-5538-4972-9271-383A0EC9378E"},{"vulnerable":true,"criteria":"cpe:2.3:o:trustix:secure_linux:2.0:*:*:*:*:*:*:*","matchCriteriaId":"53AF1A2D-B0A2-4097-AD1D-DF3AF27171BA"},{"vulnerable":true,"criteria":"cpe:2.3:o:trustix:secure_linux:2.1:*:*:*:*:*:*:*","matchCriteriaId":"A67735E5-E43E-4164-BDB2-ADC6E0288E9F"},{"vulnerable":true,"criteria":"cpe:2.3:o:trustix:secure_linux:2.2:*:*:*:*:*:*:*","matchCriteriaId":"5AB70F82-52BB-4D0D-9A24-9AF67278466D"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2004","CveId":"1304","Ordinal":"1","Title":"CVE-2004-1304","CVE":"CVE-2004-1304","Year":"2004"},"notes":[{"CveYear":"2004","CveId":"1304","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"CVE-2004-1304"},{"CveYear":"2004","CveId":"1304","Ordinal":"2","NoteData":"2004-12-22","Type":"Other","Title":"Published"},{"CveYear":"2004","CveId":"1304","Ordinal":"3","NoteData":"2017-07-10","Type":"Other","Title":"Modified"}]}}}