Description
Heap-based buffer overflow in the NCompress::NShrink::CDecoder::CodeReal method in 7-Zip before 18.00 and p7zip allows remote attackers to cause a denial of service (out-of-bounds write) or potentially execute arbitrary code via a crafted ZIP archive.
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 | 16.02+dfsg-5 | — |
| Debian 12 | p7zip | 16.02+dfsg-5 | — |
| Debian 9 | p7zip | 16.02+dfsg-3+deb9u1 | DSA-4104-1 |
| Debian 8 | p7zip | 9.20.1~dfsg.1-4.1+deb8u3 | DSA-4104-1 |
| Debian 7 | p7zip | 9.20.1~dfsg.1-4+deb7u3 | DLA-1268-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | p7zip | 9.20.1~dfsg.1-4.2ubuntu0.1 | USN-3913-1 |
| Ubuntu 14.04 LTS | p7zip | 9.20.1~dfsg.1-4+deb7u3build0.14.04.1 | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP3 | p7zip | 9.20.1-7.3.1 | SUSE-SU-2018:0464-1 |
| SLES 12 SP2 | p7zip | 9.20.1-7.3.1 | SUSE-SU-2018:0464-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP3 | p7zip | 9.20.1-7.3.1 | SUSE-SU-2018:0464-1 |
| SLES for SAP 12 SP2 | p7zip | 9.20.1-7.3.1 | SUSE-SU-2018:0464-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | p7zip | 16.02-11.3 | openSUSE-SU-2024:11137-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.17 | p7zip | 16.02-r2 | — |
| Alpine v3.16 | p7zip | 16.02-r2 | — |
| Alpine v3.15 | p7zip | 16.02-r2 | — |
| Alpine v3.14 | p7zip | 16.02-r2 | — |
| Alpine v3.13 | p7zip | 16.02-r2 | — |
Show 8 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.12 | p7zip | 16.02-r2 | — |
| Alpine v3.11 | p7zip | 16.02-r2 | — |
| Alpine v3.10 | p7zip | 16.02-r2 | — |
| Alpine v3.9 | p7zip | 16.02-r2 | — |
| Alpine v3.8 | p7zip | 16.02-r2 | — |
| Alpine v3.7 | p7zip | 16.02-r2 | — |
| Alpine v3.6 | p7zip | 16.02-r2 | — |
| Alpine v3.5 | p7zip | 16.02-r2 | — |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | p7zip | 16.02-23 | — |
| Azure Linux 2 (CBL-Mariner) | p7zip | 16.02-22 | — |
Advisories 5
- DSA-4104-1 p7zip - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DLA-1268-1 p7zip - security update Debian Security (DSA / DLA) · Mar 9, 2026
- USN-3913-1 p7zip vulnerabilities Ubuntu Security Notices (USN) · Feb 10, 2026
- openSUSE-SU-2024:11137-1 p7zip-16.02-11.3 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:0464-1 Security update for p7zip SUSE / openSUSE Security Updates · May 2, 2025
References
- DSA-4104 vendor-advisory
- [debian-lts-announce] 20180202 [SECURITY] [DLA 1268-1] p7zip security update mailing-list
- https://landave.io/2018/01/7-zip-multiple-memory-corruptions-via-rar-and-zip/
- 1040831 vdb-entry
- https://0patch.blogspot.si/2018/02/two-interesting-micropatches-for-7-zip.html
- USN-3913-1 vendor-advisory
- https://github.com/p7zip-project/p7zip/issues/7