CVE-2004-1304
No CVSS score yet. EPSS 11% estimated probability of exploitation activity in the next 30 days.
On this page
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.
- EPSS
- 11% (unchanged from 11% a week ago; 11% 30 days ago) estimated probability of exploitation activity in the next 30 days; 96th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
- Debian: fixed package versions per release
- Patch: http://www.securityfocus.com/bid/11771
- Vendor advisory: http://www.securityfocus.com/bid/11771
Ask an AI about this CVE
Show the prompt
Explain CVE-2004-1304 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2004-1304?via=ask-ai-copy and https://cve.bz/cve/CVE-2004-1304?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2004-1304 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| file:file | 4.0 |
| file:file | 4.1 |
| file:file | 4.2 |
| file:file | 4.3 |
| file:file | 4.4 |
| file:file | 4.5 |
| file:file | 4.6 |
| file:file | 4.7 |
| file:file | 4.8 |
| file:file | 4.9 |
| file:file | 4.10 |
| file:file | 4.11 |
| trustix:secure_linux | 2.0 |
| trustix:secure_linux | 2.1 |
| trustix:secure_linux | 2.2 |
Linux distributions
| Distribution | Release | Package | Fixed in | Advisory |
|---|---|---|---|---|
| Debian | 12, 13, 14 | file | 4.12 | DEBIAN-CVE-2004-1304 |
From the distributions' data via OSV.dev: the Debian Security Tracker. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian.
Public exploits
- Exploit-DB File ELF 4.x - Header Buffer Overflow