Every CVE Search/ Get API key

CVE-2004-1304

Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers...

10.0 HighPublic exploitFix available

CVE-2004-1304 is a high vulnerability (CVSS 10.0) in File, published December 22, 2004. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 11.4%, the 96th percentile. Fixed in file 4.12.

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.

Exploit likelihood

11.4%Up 7.1 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 10.0

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.

Record
CVE-2004-1304
CVSS 2.0
10.0 HighAV:N/AC:L/Au:N/C:C/I:C/A:C
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2004-1304
Updated
2026-11-02
EUVDEUVD-2004-1301 No score

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.

Record
EUVD-2004-1301
Updated
2026-11-03
GitHub AdvisoriesGHSA-w22m-7gfq-73mf No score

Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers...

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.

Record
GHSA-w22m-7gfq-73mf
Updated
2026-11-02
OSV No score

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.

Record
CVE-2004-1304
Updated
2026-11-02
OSVDEBIAN-CVE-2004-1304 No score

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.

Record
DEBIAN-CVE-2004-1304
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
file
Debian:12
before 4.12
4.12
file
Debian:13
before 4.12
4.12
file
Debian:14
before 4.12
4.12

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
Exploit-DBFile ELF 4.x - Header Buffer Overflow2004-11-29

History

History
WhenChangedSources
2026-11-03aliasesEUVD
2026-11-02createdCVE List, Exploit-DB, GitHub Advisories, NVD, OSV

References

MoveEnter Open