CVE-2026-48095GHSL-2026-140_7-Zip: 7-Zip has a heap buffer overflow via NTFS compressed stream buffer…
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.
What to do
Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.
Debian, Ubuntu have not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | 7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Ubuntu 26.04 | 7zip | Under investigation | UBUNTU-CVE-2026-48095 | |
| Ubuntu 26.04 | p7zip | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | 7zip | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2026-48095 | |
| Ubuntu 25.10 | p7zip | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | 7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Ubuntu 24.04 | p7zip | Not affected vulnerable_code_not_present | ||
| Ubuntu 22.04 | 7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Ubuntu 22.04 | p7zip | Under investigation | UBUNTU-CVE-2026-48095 | |
| Ubuntu 20.04 | p7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Ubuntu 18.04 | p7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Ubuntu 16.04 | p7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Ubuntu 14.04 | p7zip | Fix pending | UBUNTU-CVE-2026-48095 | |
| Debian 14 | 7zip | Fixed | 26.01+dfsg-1 | DEBIAN-CVE-2026-48095 |
| Debian 13 | 7zip | Fix pending | DEBIAN-CVE-2026-48095 | |
| Debian 13 | p7zip | Fixed | 16.02+transitional.1 | DEBIAN-CVE-2026-48095 |
| Debian 12 | 7zip | Fixed | 22.01+really26.01+dfsg-0+deb12u1 | DEBIAN-CVE-2026-48095 |
| Debian 12 | p7zip | Fixed | 16.02+really26.01+dfsg-0+deb12u1 | DEBIAN-CVE-2026-48095 |
| Alpine Linux 3.24 | 7zip | Fixed | 26.01-r0 | ALPINE-CVE-2026-48095 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- mcmilk 7-Zip: affected: <= 26.00
References
- https://securitylab.github.com/advisories/GHSL-2026-140_7-Zip/
- https://sourceforge.net/p/sevenzip/discussion/45797/thread/555e132ba4
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.