New 7-Zip Vulnerability Could Let Crafted XZ Archives Run Code During Extraction

Summary: Opening a crafted XZ archive in 7-Zip could let an attacker run code on the machine. The flaw, CVE-2026-14266, is a heap-based buffer overflow in how the archiver processes XZ chunked data, and Trend Micro's Zero Day Initiative (ZDI) detailed it on July 15. A fix shipped on June 25 in 7-Zip 26.02. The overflow lets an attacker "execute code in the context of the current process," per the

A newly disclosed vulnerability in 7-Zip could allow attackers to execute arbitrary code simply by convincing a user to open a specially crafted archive, reinforcing the importance of keeping even everyday utility software up to date. Although file compression tools are often overlooked in patch management programs, they regularly process untrusted content and can become an effective entry point for malware.

The vulnerability, tracked as CVE-2026-14266, is a high-severity heap-based buffer overflow affecting the XZ archive decoder in 7-Zip. An attacker can exploit the flaw by creating a malicious XZ archive that triggers memory corruption when opened with a vulnerable version of the application. Successful exploitation could allow arbitrary code execution with the privileges of the current user.

The issue has already been fixed in 7-Zip version 26.02, which was released before the public disclosure of the technical details. Users who upgraded shortly after the release were protected before the advisory became widely known, but systems still running older versions remain vulnerable.

Memory corruption vulnerabilities such as heap overflows continue to be among the most dangerous classes of software flaws because they can allow attackers to alter program execution. If exploited successfully, they may lead to malware installation, credential theft, data exfiltration, or broader system compromise. In many cases, exploitation requires little more than opening a malicious file received through email, messaging platforms, or file-sharing services.

The risk extends beyond individual desktop users. Many enterprise environments rely on 7-Zip or its libraries within automated workflows, backup systems, malware analysis platforms, software packaging processes, and CI/CD pipelines. If these environments process untrusted archives automatically, a vulnerable component could provide attackers with an avenue to compromise development or production infrastructure.

The vulnerability also highlights the ongoing challenges posed by software supply chains. Numerous third-party applications bundle 7-Zip components rather than requiring a separate installation, meaning organizations should verify whether security updates are available not only for standalone 7-Zip installations but also for software that embeds its archive-handling libraries.

Security teams should inventory systems running 7-Zip, upgrade them to version 26.02 or later, review software that incorporates 7-Zip components, and educate users about the risks of opening archive files from untrusted sources. Organizations that automatically process compressed files should also validate that downstream applications have incorporated the patched library.

Although archive utilities rarely receive the same attention as web browsers or operating systems, they routinely handle untrusted input from external sources. As attackers continue to target widely deployed utilities, maintaining current versions of file-handling software remains an important part of a comprehensive vulnerability management strategy.

Key facts

  • A vulnerability in 7-Zip, CVE-2026-14266, allows for code execution
  • The flaw involves a heap-based buffer overflow during XZ chunked data processing
  • Exploitation requires an attacker to craft a malicious XZ archive
  • Trend Micro's Zero Day Initiative detailed the vulnerability on July 15
  • A fix was released in 7-Zip version 26.02 on June 25

Why it matters

This vulnerability poses a significant risk to systems relying on 7-Zip for archive management, as a successful exploit could lead to system compromise. Users and administrators must prioritize updating to the patched version to mitigate potential attacks leveraging this flaw, especially in environments where archives are frequently processed from untrusted sources.