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 decla…
Impact
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.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products · 7-Zip
| Product | Affected versions |
|---|---|
| 7-Zip | before 26.06 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/ip7z/7zip/commit/d3296e39e1f1f92c7b41c0c3848e65640428d42d
- https://github.com/ip7z/7zip/releases/tag/26.06
- https://github.com/ip7z/7zip/blob/26.05/CPP/7zip/Compress/LzxDecoder.cpp#L1496-L1513
- https://potion-brew.pages.dev/posts/7zip-cab-lzx-window-desync-rce/
- https://www.vulncheck.com/advisories/7-zip-before-26.06-heap-out-of-bounds-write-via-lzx-decoder-in-cab-extraction
- https://github.com/advisories/GHSA-vfpw-mfgh-fqwf
- https://nvd.nist.gov/vuln/detail/CVE-2026-125742
- https://potion-brew.pages.dev/posts/7zip-cab-lzx-window-desync-rce