CVE-2004-1304

Exp

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: 2005-01-10 Last update: 2026-06-16 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2004-1304 is rated High Exploit Risk (93.4/100): CVSS Critical severity, with high exploitation likelihood (EPSS 11.40%, 95th percentile). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). EPSS rose +5.68% over the last day, indicating growing attacker interest. Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2004-1304

EDB-ID Source Kind Published Link
24784 exploit_db edb 2004-11-29 Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2004-1304

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 5.72% 11.40% +5.68%
2 2025-03-30 11.87% 5.72% -6.15%
3 2025-03-29 11.87%

Full EPSS history (7 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2004-1304

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
10.0 2.0 HIGH
AV:N/AC:L/Au:N/C:C/I:C/A:C Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:L)
Exploitation conditions are straightforward and predictable.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:C)
Complete confidentiality impact.
Integrity impact (I:C)
Complete integrity impact.
Availability impact (A:C)
Complete availability impact.
10.0 10.0 [email protected]

Weakness enumeration for CVE-2004-1304

OS Trackers for CVE-2004-1304

vendor priority summary link
debian not yet assigned CVE-2004-1304 not yet assigned priority: Debian including 1 source packages (file), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2004-1304
gentoo normal CVE-2004-1304: 1 GLSA(s) (200412-07), 1 atom(s) (sys-apps/file); latest impact normal. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2004-1304

Affected software / configurations for CVE-2004-1304

Vendor Product Version Raw CPE
file file 4.0 cpe:2.3:a:file:file:4.0:*:*:*:*:*:*:*
file file 4.1 cpe:2.3:a:file:file:4.1:*:*:*:*:*:*:*
file file 4.2 cpe:2.3:a:file:file:4.2:*:*:*:*:*:*:*
file file 4.3 cpe:2.3:a:file:file:4.3:*:*:*:*:*:*:*
file file 4.4 cpe:2.3:a:file:file:4.4:*:*:*:*:*:*:*
file file 4.5 cpe:2.3:a:file:file:4.5:*:*:*:*:*:*:*
file file 4.6 cpe:2.3:a:file:file:4.6:*:*:*:*:*:*:*
file file 4.7 cpe:2.3:a:file:file:4.7:*:*:*:*:*:*:*
file file 4.8 cpe:2.3:a:file:file:4.8:*:*:*:*:*:*:*
file file 4.9 cpe:2.3:a:file:file:4.9:*:*:*:*:*:*:*
file file 4.10 cpe:2.3:a:file:file:4.10:*:*:*:*:*:*:*
file file 4.11 cpe:2.3:a:file:file:4.11:*:*:*:*:*:*:*
gentoo linux cpe:2.3:o:gentoo:linux:*:*:*:*:*:*:*:*
trustix secure_linux 2.0 cpe:2.3:o:trustix:secure_linux:2.0:*:*:*:*:*:*:*
trustix secure_linux 2.1 cpe:2.3:o:trustix:secure_linux:2.1:*:*:*:*:*:*:*
trustix secure_linux 2.2 cpe:2.3:o:trustix:secure_linux:2.2:*:*:*:*:*:*:*

References for CVE-2004-1304

cvelogic Threat Intelligence