CVE-2004-1304 Memory corruption in n/a

Critical 10.0 Published Updated

Attackers can execute arbitrary code by tricking users into opening a crafted ELF file with the file utility.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2004-1304?

CVE-2004-1304 is a critical memory corruption vulnerability in Gentoo Linux, published on 22 Dec 2004. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Which versions are affected by CVE-2004-1304?

It affects 3 products.

Products include File File, Gentoo Linux, Trustix Secure Linux.

How do I fix CVE-2004-1304?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2004-1304 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2004-1304 exists.

Public exploit code: 1 Exploit-DB entry.

All Gentoo Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2004-1304, GHSA-w22m-7gfq-73mf.

Is CVE-2004-1304 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free