A critical heap-based buffer overflow vulnerability in 7-Zip, the widely used open-source file archiver, could allow remote attackers to execute arbitrary code on affected systems.
Tracked as CVE-2026-14266, the flaw resides in 7-Zip’s handling of XZ chunked data during decompression.
Specifically, crafted XZ-compressed data can trigger a heap-based buffer overflow, allowing attackers to execute code in the context of the process handling the file.
Critical 7-Zip XZ Vulnerability
While the vulnerability carries a critical severity rating due to its potential for remote code execution, exploitation requires user interaction.
An attacker must convince a target to either open a malicious file or visit a malicious web page that triggers 7-Zip’s processing of a specially crafted XZ archive.
This interaction requirement lowers the immediate risk profile compared to fully unauthenticated, zero-click vulnerabilities, but it remains a serious threat given how routinely users open compressed archives from email attachments, downloads, and shared links.
The core issue lies in how 7-Zip parses XZ chunked data streams. XZ is a compression format that organizes data into blocks and chunks, each carrying metadata used to reconstruct the original file during decompression.
According to ZDI, insufficient validation of chunk data allows an attacker to craft input that overflows a heap-allocated buffer during processing.
Heap overflows of this nature can corrupt adjacent memory structures, potentially allowing attackers to hijack program execution flow.
In practical terms, a successful exploit could let an attacker run arbitrary code with the same privileges as the user running 7-Zip, opening the door to malware deployment, data theft, or further lateral movement within a compromised environment.
Affected Software
The vulnerability affects installations of 7-Zip prior to version 26.02, which is when the issue was officially patched. Users and organizations relying on 7-Zip for archive management should prioritize updating to version 26.02 or later immediately.
Given 7-Zip’s widespread use in enterprise and consumer environments for handling compressed files, unpatched systems remain exposed to social engineering campaigns that deliver malicious XZ archives via phishing emails or compromised websites.
The vulnerability was discovered and reported by Landon Peng of Lunbun LLC, whose research helped identify the flaw in 7-Zip’s XZ chunk-processing logic.
Security teams are advised to treat this as a high-priority patching item, particularly in environments where 7-Zip is used to process files from external or untrusted sources.
Prevent critical incidents and financial loss with stronger proactive defense. Integrate a live threat feed from 15K SOCs