JLSEC-2026-2037: Integer Overflow
7-Zip is a file archiver with a high compression ratio. Versions 9.34 through 26.00 contain a heap memory disclosure via SquashFS fragment offset integer overflow on 32-bit builds. 32-bit integer overflow in the SquashFS ReadBlock function allows an attacker-controlled node.Offset value to bypass the fragment bounds check, causing memcpy to read heap memory preceding the cache buffer into the extracted file. The vulnerability is exploitable only on 32-bit builds of 7-Zip where sizet is 32 bits, allowing the addition offsetInBlock + blockSize to wrap modulo 2³². On 64-bit builds the addition is promoted to 64 bits and the check correctly rejects the input. Version 26.01 patches the issue.
Only the 32-bit Windows artifacts ship the affected SquashFS handler. Starting with 17.7.0+0, the package ships the standalone 7za executable without that handler.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
julia/p7zip_jllto a version that resolves this vulnerability.Fixed in 17.7.0+0 - Upgrade
Upgrade
7-Zipto a version that resolves this vulnerability.Fixed in 26.01
Event History
Frequently Asked Questions
Which deployments of this package are affected?
The issue affects only 32-bit Windows artifacts that include the SquashFS handler. It does not affect 64-bit builds, and standalone 7za packages shipped starting with 17.7.0+0 do not include the affected handler.
What must an attacker do to exploit the issue?
An attacker must induce a user to extract a crafted SquashFS archive. The crafted node.Offset value causes a 32-bit arithmetic wraparound that bypasses a fragment bounds check and copies heap memory into the extracted output.
What is the impact of successful exploitation?
The extracted file can contain heap memory located before the cache buffer, resulting in disclosure of process memory. The supplied severity vector also indicates availability impact.
What should be done if an update cannot be applied immediately?
Avoid extracting untrusted SquashFS archives with affected 32-bit Windows builds. Where feasible, use a 64-bit build or a standalone 7za package version starting with 17.7.0+0, neither of which includes the affected condition.
How can I determine whether I am affected?
Check whether the installed artifact is a 32-bit Windows build with the SquashFS handler and whether its version falls from 9.34 through 26.00. Version 26.01 patches the issue.