CVE-2004-1304
CVE-2004-1304 is a critical-severity vulnerability in File with a CVSS 2.0 base score of 10.0. Its EPSS exploit-prediction score of 11% places it in the 95th percentile, indicating an elevated likelihood of exploitation.
Key facts
- Severity: Critical (CVSS 2.0 base score 10.0)
- EPSS exploit prediction: 11% (95th percentile)
- Actively exploited: Not listed in CISA KEV
- Affected product: File
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2004-1304?
- 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.
- How severe is CVE-2004-1304?
- CVE-2004-1304 has a CVSS 2.0 base score of 10.0, rated critical severity.
- Is CVE-2004-1304 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 11% (95th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2004-1304?
- CVE-2004-1304 primarily affects File. In total, 16 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
- How do I fix CVE-2004-1304?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2004-1304 published?
- CVE-2004-1304 was published on 2005-01-10 and last updated on 2026-06-16.
References
- http://securitytracker.com/id?1012433
- http://www.gentoo.org/security/en/glsa/glsa-200412-07.xml
- http://www.securityfocus.com/bid/11771
- http://www.trustix.net/errata/2004/0063/
- https://exchange.xforce.ibmcloud.com/vulnerabilities/18368
Affected products (16)
- cpe:2.3:a:file:file:4.0:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.1:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.2:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.3:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.4:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.5:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.6:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.7:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.8:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.9:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.10:*:*:*:*:*:*:*
- cpe:2.3:a:file:file:4.11:*:*:*:*:*:*:*
- cpe:2.3:o:gentoo:linux:*:*:*:*:*:*:*:*
- cpe:2.3:o:trustix:secure_linux:2.0:*:*:*:*:*:*:*
- cpe:2.3:o:trustix:secure_linux:2.1:*:*:*:*:*:*:*
- cpe:2.3:o:trustix:secure_linux:2.2:*:*:*:*:*:*:*
More vulnerabilities in File
- CVE-2007-1536 — Critical (CVSS 9.3): Integer underflow in the file_printf function in the "file" program before 4.20 allows user-assisted attackers to…
- CVE-2007-2799 — Medium (CVSS 5.1): Integer overflow in the "file" program 4.20, when running on 32-bit systems, as used in products including The Sleuth…
- CVE-2003-0102 — Medium (CVSS 4.6): Buffer overflow in tryelf() in readelf.c of the file command allows attackers to execute arbitrary code as the user…