Description
Heap-based buffer overflow in the NArchive::NHfs::CHandler::ExtractZlibFile method in 7zip before 16.00 and p7zip allows remote attackers to execute arbitrary code via a crafted HFS+ image.
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 13 | p7zip | 15.14.1+dfsg-2 | — |
| Debian 12 | p7zip | 15.14.1+dfsg-2 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | p7zip | 16.02-2.1 | openSUSE-SU-2024:10322-1 |
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.
GitHub 1 repository
-
icewall/CVE-2016-2334 ★ 11 · Nov 27, 2017
Exploiting CVE-2016-2334 7zip HFS+ vulnerability
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- openSUSE-SU-2024:10322-1 p7zip-16.02-2.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
References
- FEDORA-2016-bbcb0e4eb4 vendor-advisory
- http://blog.talosintelligence.com/2017/11/exploiting-cve-2016-2334.html
- http://www.talosintel.com/reports/TALOS-2016-0093/
- http://blog.talosintel.com/2016/05/multiple-7-zip-vulnerabilities.html
- 90531 vdb-entry
- GLSA-201701-27 vendor-advisory
- 1035876 vdb-entry
- http://www.oracle.com/technetwork/topics/security/bulletinoct2016-3090566.html
- FEDORA-2016-430bc0f808 vendor-advisory