CVEfocus › CVE database › CVE-2026-48095

CVE-2026-48095GHSL-2026-140_7-Zip: 7-Zip has a heap buffer overflow via NTFS compressed stream buffer…

CVSS 8.8 HighEPSS 0.6% (higher than 45% of CVEs)Published 2026-06-05Updated 2026-06-08Assigner: GitHub_M

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.

CWE-190CWE-787

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

5Fixed
8Fix pending
2Under investigation
1Will not fix
3Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.107zipFix pendingUBUNTU-CVE-2026-48095
Ubuntu 26.047zipUnder investigationUBUNTU-CVE-2026-48095
Ubuntu 26.04p7zipNot affected
vulnerable_code_not_present
Ubuntu 25.107zipWill not fix
Ubuntu decided not to fix this in this release
UBUNTU-CVE-2026-48095
Ubuntu 25.10p7zipNot affected
vulnerable_code_not_present
Ubuntu 24.047zipFix pendingUBUNTU-CVE-2026-48095
Ubuntu 24.04p7zipNot affected
vulnerable_code_not_present
Ubuntu 22.047zipFix pendingUBUNTU-CVE-2026-48095
Ubuntu 22.04p7zipUnder investigationUBUNTU-CVE-2026-48095
Ubuntu 20.04p7zipFix pendingUBUNTU-CVE-2026-48095
Ubuntu 18.04p7zipFix pendingUBUNTU-CVE-2026-48095
Ubuntu 16.04p7zipFix pendingUBUNTU-CVE-2026-48095
Ubuntu 14.04p7zipFix pendingUBUNTU-CVE-2026-48095
Debian 147zipFixed26.01+dfsg-1DEBIAN-CVE-2026-48095
Debian 137zipFix pendingDEBIAN-CVE-2026-48095
Debian 13p7zipFixed16.02+transitional.1DEBIAN-CVE-2026-48095
Debian 127zipFixed22.01+really26.01+dfsg-0+deb12u1DEBIAN-CVE-2026-48095
Debian 12p7zipFixed16.02+really26.01+dfsg-0+deb12u1DEBIAN-CVE-2026-48095
Alpine Linux 3.247zipFixed26.01-r0ALPINE-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.

References

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.