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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | file | 4.12 | — |
| Debian 13 | file | 4.12 | — |
| Debian 12 | file | 4.12 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- File ELF 4.x - Header Buffer Overflow EDB-24784 · remote · Nov 29, 2004 · verified
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
References
- 2004-0063 vendor-advisory
- 1012433 vdb-entry
- GLSA-200412-07 vendor-advisory
- 11771 vdb-entry
- file-elf-header-bo(18368) vdb-entry