JLSEC-2026-2041: High severity julia/p7zip_jll vulnerability
7-Zip is a file archiver with a high compression ratio. Versions 9.34 through 26.00 contain an off-by-one heap out-of-bounds read in the WIM (Windows Imaging) archive handler's security descriptor lookup. In CHandler::GetSecurity (CPP/7zip/Archive/Wim/WimHandler.cpp), the per-image SecurOffsets table holds numEntries + 1 cumulative offsets, but the check securityId >= SecurOffsets.Size() admits securityId == numEntries, and the function then reads SecurOffsets[securityId + 1], fetching one UInt32 past the end of the heap-allocated CRecordVector (which performs no bounds checking on operator[]). The securityId is attacker-controlled at offset +0xC of any directory entry in WIM metadata, and the handler is registered for .wim, .swm, .esd, and .ppkg and enabled by default in stock 7z.dll; the OOB triggers zero-click in the GUI because 7zFM.exe's ListView calls GetRawProp(kpidNtSecure) for every item during listing (ASan-confirmed), and is also reachable via CLI listing with 7zz l -slt. Impact is limited to denial of service under hardened allocators and minor information disclosure, since the OOB value is only consumed arithmetically as a length and is not surfaced to the attacker; there is no write primitive.
Only the Windows artifacts ship the affected handler. Starting with 17.7.0+0, the package ships the standalone 7za executable instead of the full archive handler library.
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
Event History
Frequently Asked Questions
Which files and workflows can trigger the issue?
The affected handler is registered for .wim, .swm, .esd, and .ppkg files and is enabled by default in stock 7z.dll. Listing a crafted archive can trigger it in the GUI, where 7zFM.exe queries security properties for every item, and it is also reachable through CLI detailed listing with "7zz l -slt".
What does an attacker need to control?
An attacker needs to supply a crafted archive with WIM metadata containing a directory entry whose securityId field is set to the out-of-range value. No authentication or prior privileges are required, but a user must open or list the malicious file.
What is the likely impact if the flaw is triggered?
The out-of-bounds value is used only in arithmetic as a length and is not returned directly to the attacker. The described impact is denial of service under hardened allocators and potentially minor information disclosure.
How can I assess whether an installation is exposed?
Installations in the stated affected version range, 9.34 through 26.00, are exposed when the WIM handler is present and enabled. Processing or listing any of the registered WIM-related extensions is the relevant exposure path.