Vulnerabilities

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

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.

  1. 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.

  2. Oct 21, 2026 · OpenSSF OSV / OSV Scanner

    Fix available

    file fixed in 4.12; file fixed in 4.12; file fixed in 4.12

  3. Oct 21, 2026 · OpenSSF OSV / OSV Scanner

    Fix available

    file fixed in 4.12

  4. 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

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.