CVE-2026-14266 Overview
CVE-2026-14266 is a heap-based buffer overflow [CWE-122] in the 7-Zip file archiver. The flaw resides in the routine that processes XZ chunked data during decompression. Crafted XZ-compressed content triggers an out-of-bounds write on the heap, allowing arbitrary code execution in the context of the current process. Exploitation requires user interaction: a target must open a malicious archive or visit a page that delivers one. The Zero Day Initiative tracked the issue as ZDI-CAN-30169 and published advisory ZDI-26-444.
Critical Impact
Successful exploitation grants attackers arbitrary code execution with the privileges of the user who opens a malicious XZ-compressed archive in 7-Zip.
Affected Products
- 7-Zip file archiver (XZ decompression component)
- Applications and installers bundling vulnerable 7-Zip libraries
- Windows, Linux, and macOS builds relying on affected 7-Zip code paths
Discovery Timeline
- 2026-07-17 - Vulnerability disclosed on the Openwall oss-security mailing list
- 2026-07-29 - CVE-2026-14266 published to NVD
- 2026-07-30 - Last updated in NVD database
Technical Details for CVE-2026-14266
Vulnerability Analysis
The vulnerability lives inside 7-Zip's XZ decompressor, which parses compressed data in chunks. When the decompressor processes a malformed chunk header or crafted stream metadata, it computes an undersized destination buffer while writing a larger amount of decompressed data. The result is a heap-based buffer overflow that corrupts adjacent heap metadata and application objects.
An attacker delivers the malicious archive through phishing, drive-by download, or embedded content in another file format that invokes 7-Zip. Exploitation runs in the security context of the process performing decompression, which typically matches the interactive user.
Root Cause
The root cause is missing or incorrect bounds validation on XZ chunk length fields before the decompression routine writes output bytes into a heap allocation. Because the allocation size is derived from attacker-controlled input, mismatched size assumptions produce a classic heap overflow condition tracked under [CWE-122].
Attack Vector
The attack vector is local and user-assisted. A victim must open the crafted .xz file, an archive containing an XZ stream, or a container format that chains into 7-Zip. Attack complexity is high because reliable exploitation typically requires heap grooming to place useful adjacent objects before the overflow occurs.
The vulnerability is described in prose only. Refer to the Zero Day Initiative Advisory ZDI-26-444 and the Openwall OSS Security Mailing List Post for additional technical detail.
Detection Methods for CVE-2026-14266
Indicators of Compromise
- Unexpected child processes spawned by 7zFM.exe, 7z.exe, or 7zG.exe such as command shells, scripting hosts, or LOLBins.
- Crashes or Windows Error Reporting entries referencing 7-Zip modules while handling .xz, .txz, or .tar.xz files.
- Inbound .xz archives delivered by email, chat, or download proxies from untrusted senders.
Detection Strategies
- Alert on process lineage where 7-Zip binaries spawn interpreters (powershell.exe, cmd.exe, wscript.exe, bash, python).
- Hunt for memory-corruption telemetry (access violations, guard page hits) in 7-Zip processes correlated with archive open events.
- Inspect email and web gateway logs for XZ-family archives targeting users known to run 7-Zip.
Monitoring Recommendations
- Deploy EDR rules covering suspicious child processes and in-memory code execution originating from archiver binaries.
- Forward archive-open events and process telemetry to a centralized data lake for retroactive hunting once new IOCs surface.
- Track 7-Zip version inventory across managed endpoints to flag hosts still running vulnerable builds.
How to Mitigate CVE-2026-14266
Immediate Actions Required
- Upgrade 7-Zip to the fixed release referenced in Zero Day Initiative Advisory ZDI-26-444 as soon as it is available.
- Block delivery of .xz, .txz, and .tar.xz attachments from untrusted external sources at email and web gateways.
- Restrict which users can execute 7-Zip binaries on high-value hosts until patching completes.
Patch Information
Monitor the Zero Day Initiative Advisory ZDI-26-444 and the upstream 7-Zip project for the fixed version that addresses the XZ decompression bounds check. Redistribute the patched build through software management tooling once released.
Workarounds
- Do not open untrusted .xz, .txz, or .tar.xz archives until a patched 7-Zip build is deployed.
- Route archive inspection through sandboxed decompression services instead of user workstations.
- Apply application control policies that prevent 7-Zip processes from launching interpreters or unsigned binaries.
# Configuration example: block archiver processes from spawning interpreters (Windows AppLocker / WDAC concept)
# Deny rule pseudocode
Deny ParentProcess IN (7z.exe, 7zG.exe, 7zFM.exe)
ChildProcess IN (powershell.exe, cmd.exe, wscript.exe, cscript.exe, mshta.exe)
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

