
CVE catalog
CVE-2004-1304
file: CVE-2004-1304
- Severity
- Medium
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 11.40% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | file | sid | 1:5.47-4 | fixed |
| Debian | file | forky | 1:5.47-4 | fixed |
| Debian | file | trixie | 1:5.46-5 | fixed |
| Debian | file | bookworm | 1:5.44-3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | file | source | sid | 4.12 | not yet assigned | Not reported | Not reported |
| Debian | file | source | forky | 4.12 | not yet assigned | Not reported | Not reported |
| Debian | file | source | trixie | 4.12 | not yet assigned | Not reported | Not reported |
| Debian | file | source | bookworm | 4.12 | not yet assigned | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [file]Fixed
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
- [libmagic1]Fixed
Source package: [file]
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
- [libmagic-dev]Fixed
Source package: [file]
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
- [libmagic-mgc]Fixed
Source package: [file]
Details (2)
1:5.44-3· amd64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
1:5.44-3· arm64 · bookwormFixed · Fixed:
4.12dsa · file · debian · bookworm; dsa · file · debian · 12
[Debian 13 (Trixie)]
- [file]Fixed
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
- [libmagic1t64]Fixed
Source package: [file]
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
- [libmagic-dev]Fixed
Source package: [file]
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
- [libmagic-mgc]Fixed
Source package: [file]
Details (2)
1:5.46-5· amd64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
1:5.46-5· arm64 · trixieFixed · Fixed:
4.12dsa · file · debian · 13
Observed: