CVE-2026-48095: 7-zip Integer Overflow or Wraparound
Vulnerability summary
CVE-2026-48095 is a high (CVSS 8.8) Integer Overflow or Wraparound vulnerability in 7-zip. EPSS estimates a 0.63% chance of exploitation in the next 30 days, higher than 49.4% of scored vulnerabilities. 1 public exploit is recorded.
Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 05-06-2026PublishedVulnerability first disclosed.
- 08-06-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 5 sources · 1 version- OSV · AlpineEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · UbuntuEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- OSV · DebianEcosystem advisory · calculated8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- NVDNIST8.8HighCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS trend
Probability
0.63%
Chance of exploitation in the next 30 days
Percentile
49%
Versus all other CVEs
30-day change
-0.49 pp
From 1.12% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGhsl 2026 140 7 Zip
Maturity: poc
Weaknesses
CWE · root cause- CWE-190Integer Overflow or WraparoundThe product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
- CWE-787Out-of-bounds WriteThe product writes data past the end, or before the beginning, of the intended buffer.
Affected systems
Debian2 products
- 7zip< 22.01+really26.01+dfsg-0+deb12u1 | All versions (No fix recorded) | < 26.01+dfsg-1
- p7zip< 16.02+really26.01+dfsg-0+deb12u1 | < 16.02+transitional.1
Ubuntu2 products
- 7zipAll versions (No fix recorded)
- p7zipAll versions (No fix recorded)
7-zip1 product
- 7-zip< 26.01
Alpine1 product
- 7zip< 26.01-r0
Mageia1 product
- 7zip< 26.02-1.mga10
Mcmilk1 product
- 7-zip≤ 26.00
Opensuse1 product
- 7zip&distro=openSUSE Tumbleweed< 26.01-1.1
7 vendors · 9 products
References
12 links- securitylab.github.com/advisories/GHSL-2026-140_7-Zip/X Refsource CONFIRMAdvisoryREPORTExploitThird Party Advisory