JLSEC-2026-2040: Medium severity julia/p7zip_jll vulnerability
7-Zip is a file archiver with a high compression ratio. Versions 9.11 through 26.00 contain a heap out-of-bounds read of up to 3 bytes in the UDF disc image handler's File Identifier Descriptor parser. In CFileId::Parse (CPP/7zip/Archive/Udf/UdfIn.cpp), after validating size < 38 + idLen + impLen and advancing processed to 38 + impLen + idLen, the alignment-padding loop reads p[processed] while incrementing up to 3 times to reach a 4-byte boundary, and the processed <= size bounds check only runs after the loop. When (38 + impLen + idLen) % 4 != 0 and 38 + impLen + idLen == size, the loop reads 1 to 3 bytes past the end of the exact-size heap buffer allocated via buf.Alloc((sizet)item.Size). The UDF handler is registered for .iso and .udf files and auto-detected by signature, and the OOB read triggers during Open() when listing or extracting a crafted UDF image. Impact is limited to information disclosure (a 1-bit oracle per OOB byte via open/fail behavior) and denial of service (crash under hardened allocators); there is no write primitive. Version 26.01 fixes the issue.
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 - Upgrade
Upgrade
7-Zipto a version that resolves this vulnerability.Fixed in 26.01
Event History
Frequently Asked Questions
Which deployments are affected?
Only Windows artifacts ship the affected UDF handler. The handler is used for .iso and .udf files and can also be selected through signature-based auto-detection.
What must an attacker provide to trigger the issue?
An attacker needs to induce listing or extraction of a crafted UDF disc image. The out-of-bounds read occurs during archive Open(), so simply opening the malicious image is sufficient; no privileges are required, but user interaction is required.
What is the practical impact?
The issue is limited to information disclosure through an open/fail oracle of up to one bit per out-of-bounds byte, or a denial of service crash under hardened allocators. The described flaw does not provide a write primitive.
What should be done if an immediate update is not possible?
Avoid opening, listing, or extracting untrusted .iso or .udf images with the affected Windows artifacts. Since the handler is also auto-detected by signature, do not rely only on a file extension when filtering potentially untrusted inputs.
Which version fixes the issue?
Version 26.01 fixes the issue. Affected versions are 9.11 through 26.00.