Buffer overflow in 7-Zip
CVE-2026-125742
7-Zip before 26.06 contains a heap out-of-bounds write vulnerability in the LZX decoder that lets attackers corrupt memory when a continuation CAB volume declares a smaller window. Attackers can entice victims to extract crafted multi-volume CAB archives, where a stale _pos value bypasses bounds checks, enabling arbitrary code execution.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.8 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.002, 7.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- github.com/ip7z/7zip/blob/26.05/CPP/7zip/Compress/LzxDecoder.cpp (product)
- github.com/ip7z/7zip/commit/d3296e39e1f1f92c7b41c0c3848e65640428d42d (patch)
- github.com/ip7z/7zip/releases/tag/26.06 (release-notes)
- potion-brew.pages.dev/posts/7zip-cab-lzx-window-desync-rce/ (technical-description, exploit)
- www.vulncheck.com/advisories/7-zip-before-26.06-heap-out-of-bounds-write-via-lz… (third-party-advisory)