Description
7-Zip is a file archiver with a high compression ratio. Versions 26.00 and prior contain a heap buffer overflow vulnerability caused by an under-allocation in the NTFS compressed stream buffer (GetCuSize shift UB), potentially allowing attackers to cause arbitrary code execution or application crashes. CInStream::GetCuSize() in the NTFS handler computes the compression-unit buffer size as (UInt32)1 << (BlockSizeLog + CompressionUnit), and a crafted image with ClusterSizeLog >= 28 and CompressionUnit == 4 drives the exponent to 32, which is undefined behavior and collapses on x86/x64 so _inBuf is allocated as 1 byte. ReadStream_FALSE then writes up to 256 MB of attacker-controlled data into that 1-byte buffer in 64 KB iterations, and because the CInStream object sits only 304 bytes after _inBuf, its vtable pointer is overwritten and the next dispatched call achieves a vtable hijack. On 32-bit builds the overflow is unconditionally reached; on 64-bit it requires the parallel 8 GB _outBuf allocation to succeed, otherwise failing closed to denial of service. The NTFS handler is enabled by default in stock 7z.dll and, via signature-based fallback matching "NTFS " at offset 3, will open a crafted image regardless of file extension during extraction or testing. Version 26.01 fixes the issue.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| mcmilk | 7-Zip | <= 26.00 | — |
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 | 7zip | 26.01+dfsg-1 | — |
| Debian 13 | 7zip | No fix yet | — |
| Debian 13 | p7zip | 16.02+transitional.1 | — |
| Debian 12 | 7zip | 22.01+really26.01+dfsg-0+deb12u1 | — |
| Debian 12 | p7zip | 16.02+really26.01+dfsg-0+deb12u1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | 7zip | No fix yet | — |
| Ubuntu 26.04 LTS | 7zip | No fix yet | — |
| Ubuntu 25.10 | 7zip | No fix yet | — |
| Ubuntu 22.04 LTS | p7zip | No fix yet | — |
| Ubuntu 20.04 LTS | p7zip | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | p7zip | No fix yet | — |
| Ubuntu 16.04 LTS | p7zip | No fix yet | — |
| Ubuntu 14.04 LTS | p7zip | No fix yet | — |
| Ubuntu Pro 24.04 LTS | 7zip | No fix yet | — |
| Ubuntu Pro 22.04 LTS | 7zip | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLES 15 SP6 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLES 15 SP5 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLES 15 SP4 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | 7zip | 26.01-160000.1.1 | SUSE-SU-2026:22347-1 |
| SLES for SAP 15 SP6 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLES for SAP 15 SP5 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLES for SAP 15 SP4 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLES 16.0 | 7zip | 26.01-160000.1.1 | SUSE-SU-2026:22347-1 |
| SLE HPC 15 SP5 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
| SLE HPC 15 SP4 | 7zip | 26.01-150400.9.6.1 | SUSE-SU-2026:2696-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | 7zip | 26.01-1.1 | openSUSE-SU-2026:10942-1 |
| openSUSE Leap 16.0 | 7zip | 26.01-160000.1.1 | openSUSE-SU-2026:21038-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | 7zip | 26.01-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | 7zip +3 | 26.01-14.amzn2023.0.1 | ALAS2023-2026-1820 |
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
-
HORKimhab/CVE-2026-48095 ★ 3 · May 26, 2026
CVE-2026-48095
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 6
- WID-SEC-2026-1681 7-Zip: Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Jul 27, 2026
- SUSE-SU-2026:22347-1 Security update for 7zip SUSE / openSUSE Security Updates · Jul 2, 2026
- SUSE-SU-2026:2696-1 Security update for 7zip SUSE / openSUSE Security Updates · Jul 1, 2026
- openSUSE-SU-2026:21038-1 Security update for 7zip SUSE / openSUSE Security Updates · Jun 30, 2026
- ALAS2023-2026-1820 Important: 7zip security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Jun 8, 2026
- openSUSE-SU-2026:10942-1 7zip-26.01-1.1 on GA media SUSE / openSUSE Security Updates · Jun 4, 2026