7-Zip CVE-2026-14266: How a Malicious XZ Archive Triggers Remote Code Execution

7-Zip 26.02 patches CVE-2026-14266, a heap buffer overflow in XZ parsing that lets a crafted archive run code. Learn how the flaw works and why archives stay risky.

Patch 7-Zip. Govern What Executes Next.
  • July 21, 2026

Inside The 7-Zip XZ Flaw Attackers Could Weaponize

The recently discovered 7-Zip security issue, CVE-2026-14266, allows threat actors to execute arbitrary code once a user extracts the maliciously crafted compressed file. Zero Day Initiative issued the advisory under ZDI-26-444, 20 days after a fix release in 7-Zip 26.02 on June 25.

The vulnerability has been identified on June 5, 2026. Hence, the developers issued 7-Zip 26.02 two weeks later, patching the vulnerability before disclosing any technical details about it.

As for the essence of the vulnerability, it is related to a heap-based buffer overflow in 7-Zip XZ chunked data handling. Thus, specially crafted input containing XZ compressed data could make a decompression routine write beyond the buffer allocated on a heap. This, in turn, leads to memory corruption and, therefore, control over the execution flow of the program.

CVSS score of this issue is 7.0. It should be noted that high attack complexity and user interaction requirement in the vector string (AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) influence the score negatively.

How Exploitation Actually Works

XZ is common in software packages, backups, and distributed archives, so that the malicious payload could be included in seemingly innocent data.

Exploitation requires some user intervention as the attacker would need to make the target download or access an archive file, or visit a site hosting an XZ-encoded file. Once activated, the code would execute under the rights of the current user.

This issue lies at the core of the problem, as patch 26.02 introduces bounds checking so that the buffer would not be exceeded.

As for July 21, 2026, there was no evidence of a working exploit published on the web. However, some clues in the public domain may help the attacker get there faster.

One complication: 7-Zip doesn’t update automatically, and having more than 400 million downloads implies that some of its users have to download the patch manually.

CVE-2026-14266 – 7-Zip XZ Heap Overflow Vulnerability
CVE-2026-14266 · 7-ZIP
A Buffer Overflow
Hides Inside XZ Archives
A heap-based buffer overflow in 7-Zip’s XZ chunk handling lets a crafted archive corrupt memory and run code once extracted. Patched quietly in 7-Zip 26.02, disclosed 20 days later via ZDI-26-444.
7.0
HIGH
CVSS BASE SCORE
REQUIRES USER ACTION
A Heap Overflow In XZ Handling
CVE-2026-14266: Heap-based buffer overflow, CVSS 7.0.
Location: 7-Zip’s XZ chunked-data decompression routine.
Trigger: Extracting a specially crafted XZ archive corrupts memory and hijacks execution.
One Click Extract, Code Runs
Delivery: XZ data hides easily in archives, backups, and software packages.
User Action: Victim just needs to open or extract the malicious file.
Impact: Code executes under the current user’s own privileges.
Patched Quietly, Then Disclosed
Found: June 5, 2026. Patched: 7-Zip 26.02, June 25, before any public detail.
Disclosed: ZDI-26-444, 20 days after the fix.
Exploit Status: None public as of July 21, 2026, no auto-update means many users are still exposed.
A Pattern Of Archive Bugs
CVE-2025-0411: MotW bypass, used to drop SmokeLoader in Ukraine.
CVE-2025-11001/11002: ZIP symlink traversal, exploited by NHS England in Nov 2025.
CVE-2026-48095: NTFS-handling heap overflow, patched in 26.01.
400M+ DOWNLOADS, NO AUTO-UPDATE: 7-Zip won’t patch itself, so most of its huge install base must manually grab 26.02. No working exploit is public yet, but the patch diff alone can point attackers toward one.

A Pattern Of Archive-Based Attacks On 7-Zip

This is not the first major archive issue for 7-Zip; it follows previous issues concerning parsing and extraction problems in this popular utility.

Recent examples:

  • CVE-2025-0411 (CVSS 7.0): Use of MotW bypass for zero-day starting September 2024. Hackers employed double archiving to remove MotW and install SmokeLoader in Ukraine. Patched in 24.09.
  • CVE-2025-11001 and CVE-2025-11002 (CVSS 7.0 each): Directory-traversal issue related to handling of ZIP symbolic links. Attackers would be able to write outside of extraction folder and execute code. Active exploitation by NHS England Digital confirmed in November 2025. Proof of Concept available. Patched in 25.00.
  • CVE-2026-48095: Heap Overflow in NTFS image handling module due to buffer underallocation which shrinks down to 1 byte while writing up to 256 MB of data from attacker. Patched in 26.01.

Competing utilities face the same pressure. In particular, WinRAR path traversal vulnerability CVE-2025-8088 was exploited via phishing

Why Archive Files Remain A Favorite Malware Vehicle

It is no surprise that attackers use archives for various purposes. Compressed packages conceal payloads, contain several files, and are not detected by scanners unable to unpack and scan encrypted or nested files.

The statistics confirm this claim, 44% of malware attacks used archive files in Q3 2022. Archives comprised 45% of attacks in Q3 2025, followed by 38% of attacks in Q1 2026, falling just below executable files with 39% and above PDFs with 10%.

Moreover, attackers use multiple methods for evading detection. Threat actors may use HTML to evade scanning email gateways and lure victims using fake document viewer websites.

In addition, nested archives make attacks more difficult to detect. Vulnerability CVE-2026-14266 provides additional trigger to be paired with those delivery techniques.

Conclusion: When an Archive Becomes an Execution Path

A specially crafted XZ archive can turn a routine extraction process into heap corruption, execution-flow control, and arbitrary code execution under the victim’s current privileges.

The user does not need to launch an obvious executable.
Extracting the archive is the trigger.

Why This Threat Matters

7-Zip is installed across personal devices, developer systems, administrative workstations, and enterprise environments. Its lack of automatic updates makes the exposure harder to close quickly.

  • XZ content can hide inside software packages, backups, and distributed archives
  • Nested and encrypted archives can evade inspection
  • A routine extraction action can trigger code execution
  • The payload inherits the current user’s access
  • Developer and administrative accounts can give the attack greater reach
  • Public patch differences can help attackers accelerate exploit development

When trusted utilities process attacker-controlled content, file handling becomes execution risk.

Where Xcitium Changes the Outcome

Xcitium Vulnerability Assessment helps organizations identify outdated 7-Zip installations and patch gaps before crafted archives reach vulnerable systems.

But patching alone cannot govern what happens when a malicious archive is processed before every endpoint is updated.

Xcitium Advanced EDR, powered by Xcitium’s patented Zero-Dwell platform, applies Execution Governance when exploitation leads to unknown commands, payloads, scripts, or follow-on processes.

Unknown code does not receive unrestricted execution rights.
Code can run without being able to cause damage.
Persistence, credential theft, payload delivery, and follow-on activity are stopped before impact.

With Xcitium in place, the archive cannot turn a parsing flaw into unrestricted endpoint control.

Patch the Utility. Govern What Runs Next.

CVE-2026-14266 proves that familiar file formats and trusted extraction tools can still create dangerous execution paths.

Update 7-Zip to version 26.02 or later.
Remove outdated installations.
Treat untrusted archives as execution risk.
Govern unknown code before extraction becomes compromise.

Like what you see? Share with a friend.

Move Away From Detection With Patented Threat Prevention Built For Today's Challenges.

No one can stop zero-day malware from entering your network, but Xcitium can prevent if from causing any damage. Zero infection. Zero damage.

Book a Demo