Vulnerability · 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.
Published Jan 10, 2005 · catalog updated Oct 21, 2026 · Stack-based buffer overflow in
Check this week
CVE-2004-1304 is not in CISA KEV. FIRST estimates a 11.40% chance of exploitation in the next 30 days. Check whether you run Stack-based buffer overflow in.
Gaps on this record
- The stored product name is a package slug. The name on this page is taken from the title (Stack-based buffer overflow in).
- No vendor fix or required action is stored. Compare the linked advisory before you change production.
- Severity
- Unknown—
- Known exploitation
- Not in CISA/VulnCheck KEV
- EPSS
- 11.40%
- Remediation
- Advisory link
- Affected products
- Debian:12 file · Debian:13 file · Debian:14 file
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.
Are you affected?
Enter the version you run. The result uses only the ranges stored on this record.
The check returns affected, not affected, or incomplete. It does not guess a version that is missing from the record.
- Debian:12 file0 → 4.12
- Debian:13 file0 → 4.12
- Debian:14 file0 → 4.12
How to fix CVE-2004-1304
Recommended remediation
A patch or advisory reference is linked. Open the original publisher for availability by product version.
Official advisories
What to do
Three questions, each answered from this record only. Confirm the vendor advisory before you patch.
Should you patch?
CVE-2004-1304 is not in CISA KEV. FIRST estimates a 11.40% chance of exploitation in the next 30 days. Check whether you run Stack-based buffer overflow in.
Which versions are affected?
Compare what you have installed with 0 → 4.12. Compare the installed version with the linked vendor advisory before you change production.
What should an analyst verify?
No weakness class is stored. EPSS 11.40%. There is no CISA KEV listing. No Exploit-DB or Metasploit reference is linked. Use the source links for the original advisory.
Technology hubs
Code
The project this record applies to. Exploit listings stay in References.
No public source repository is identified for this product.
Timeline
Detection, updates, and resolution for this record.
Jan 10, 2005 · OpenSSF OSV / OSV Scanner
Detected
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.
Oct 21, 2026 · OpenSSF OSV / OSV Scanner
Fix available
file fixed in 4.12; file fixed in 4.12; file fixed in 4.12
Oct 21, 2026 · OpenSSF OSV / OSV Scanner
Fix available
file fixed in 4.12
Oct 21, 2026 · OpenSSF OSV / OSV Scanner
Updated
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.
Sources
- CVE.orgVulnerability recordCVE-2004-1304
Official CVE identifier
cve.org - FIRST EPSSExploitation probabilityCVE-2004-1304
30-day exploitation probability 11.40%
first.org - OpenSSF OSV / OSV ScannerPackage advisoryDEBIAN-CVE-2004-1304osv.dev
References
Freshness
Last verified in this catalog Oct 21, 2026. Significant claims (KEV, EPSS, CVSS, affected ranges) come from the source rows above — open the original publisher for the authoritative advisory.