CVE-2026-14266
7-Zip vulnerability analysis and mitigation

Overview

CVE-2026-14266 is a heap-based buffer overflow vulnerability in 7-Zip's XZ decompression engine that allows remote attackers to execute arbitrary code on affected systems. Discovered by Landon Peng of Lunbun LLC and reported to the vendor on June 5, 2026, the advisory was publicly released on July 15, 2026 (ZDI-26-444 / ZDI-CAN-30169). All versions of 7-Zip prior to 26.02 are affected, with version 26.01 specifically confirmed vulnerable. The vulnerability carries a CVSS v3.1 base score of 7.8 (High) per NVD, and 7.0 (High) per the Zero Day Initiative (ZDI Advisory, Red Hat Bugzilla, GitHub Advisory).

Technical details

The root cause is an incorrect calculation of buffer size (CWE-131) leading to a heap-based buffer overflow (CWE-122) during the processing of XZ chunked data within 7-Zip's decompression logic. Crafted XZ-compressed data can trigger an overflow of a heap-allocated buffer when the decompressor fails to properly validate chunk sizes before writing, allowing an attacker to corrupt adjacent heap memory. Exploitation requires user interaction — the target must open a malicious XZ archive or visit a page that triggers automatic extraction. A public Python-based PoC generator (poc-cve-2026-14266-rce.py) has been released that crafts malicious XZ files with options for crash confirmation, cyclic patterns, and shellcode payloads (ZDI Advisory, PoC GitHub).

Impact

Successful exploitation allows an unauthenticated attacker to execute arbitrary code in the context of the user running 7-Zip, resulting in full confidentiality, integrity, and availability impact on the affected system. Since 7-Zip is widely deployed across Windows, Linux, and other platforms — often used in automated pipelines and file processing workflows — exploitation could affect both end-user workstations and server environments. If 7-Zip is invoked with elevated privileges or integrated into automated extraction workflows, the impact could extend to privilege escalation or lateral movement within an organization (ZDI Advisory, Red Hat Bugzilla).

Exploitability

A functional Python PoC (poc-cve-2026-14266-rce.py) capable of generating malicious XZ archives with shellcode payloads is publicly available on GitHub (PoC GitHub). A second repository exists but contains only a DoS-capable XZ file with no actionable exploit code. As of the time of reporting, there is no confirmed evidence of in-the-wild exploitation, and the vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.92%, reflecting a currently low but non-negligible probability of exploitation. The NVD SSVC assessment classifies the vulnerability as non-automatable with total technical impact, and no threat actor attribution has been made (ZDI Advisory, GitHub Advisory).

Exploitation steps

  1. Reconnaissance: Identify targets using 7-Zip versions prior to 26.02, particularly systems where users routinely open XZ archives or where 7-Zip is integrated into automated file processing pipelines.
  2. Craft malicious XZ archive: Use the public PoC tool (poc-cve-2026-14266-rce.py) to generate a specially crafted XZ file with malformed chunked data that triggers the heap buffer overflow. Options include cyclic patterns for crash confirmation or custom shellcode payloads (--payload-shellcode).
    python poc/poc-cve-2026-14266-rce.py -o malicious.xz --payload-shellcode <shellcode>
  3. Deliver the malicious file: Distribute the crafted .xz archive via phishing email, malicious download link, compromised file-sharing platform, or a web page that triggers automatic extraction.
  4. Trigger extraction: Induce the target user to open the malicious XZ archive with 7-Zip (e.g., double-clicking the file or via a browser plugin that auto-extracts archives).
  5. Achieve code execution: The heap overflow corrupts memory during XZ decompression, redirecting execution flow to the attacker's shellcode, which runs in the context of the current user process — enabling reverse shell, data exfiltration, or persistence (ZDI Advisory, PoC GitHub).

Indicators of compromise

  • File System: Presence of unexpected .xz files in download directories, temp folders, or email attachment staging areas; appearance of web shells, scripts, or new executables created shortly after a 7-Zip extraction event; PoC file poc-cve-2026-14266-mini.xz or similarly named malicious archives.
  • Process: Unusual child processes spawned by the 7-Zip process (7z.exe, 7zG.exe, 7zFM.exe on Windows; 7z on Linux), such as cmd.exe, powershell.exe, bash, curl, wget, or network-connecting processes with no user-initiated context.
  • Network: Unexpected outbound connections from the 7-Zip process or its parent application to external IPs, particularly shortly after opening an XZ archive; DNS lookups for attacker-controlled domains initiated by the 7-Zip process.
  • Logs: Windows Event Logs or Linux audit logs showing process creation events with 7-Zip as the parent and unusual child processes; crash reports or application error logs referencing heap corruption in 7-Zip's XZ decompression module (ZDI Advisory, PoC GitHub).

Mitigation and workarounds

The primary remediation is to update 7-Zip to version 26.02 or later, which contains the fix for this vulnerability. No vendor-provided configuration-based workaround has been published; until patching is possible, users should avoid opening XZ-compressed files from untrusted sources. Organizations using 7-Zip in automated pipelines should prioritize patching, as those environments may process untrusted archives without user awareness. Linux distributions including Debian and openSUSE have released updated packages for p7zip; users on those platforms should apply distribution-level updates as well (ZDI Advisory, Debian LTS, openSUSE).

Community reactions

The vulnerability received broad coverage across security media outlets including The Hacker News, GBHackers, Heise, TechSpot, and CyberSecurityNews, with many articles emphasizing the risk to the large installed base of 7-Zip users who lack automatic update mechanisms. Community discussion on Reddit (r/InfoSecNews, r/SecOpsDaily, r/CVEWatch) highlighted concern about 7-Zip's lack of auto-update functionality, which means many users may remain on vulnerable versions indefinitely. Security researchers noted the availability of public PoC code as a significant escalating factor. The SANS Internet Storm Center covered the vulnerability in a podcast episode, and SOCRadar published a dedicated analysis (The Hacker News, Heise, SOCRadar).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

p7zip: 16.02+really26.02+dfsg-0+deb12u1

Fixed

sid

7zip: 26.02+dfsg-1

Fixed

trixie

p7zip: 16.02+transitional.1

Fixed

Ubuntu

Unknown

bionic (esm-apps)

p7zip

Unknown

devel

7zip

Unknown

focal (esm-apps)

p7zip

Unknown

jammy

7zip

Unknown

jammy (esm-apps)

7zip

Unknown

noble

7zip

Unknown

noble (esm-apps)

7zip

Unknown

resolute

7zip

Unknown

SourceThis report was generated using AI

Related 7-Zip vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-14266HIGH7.8
  • 7-Zip logo7-Zip
  • 7zip
NoYesJul 29, 2026
CVE-2026-48111HIGH7.1
  • 7-Zip logo7-Zip
  • 7zip-debuginfo
NoYesJun 05, 2026
CVE-2026-48112MEDIUM6.5
  • 7-Zip logo7-Zip
  • 7zip-standalone-all
NoYesJun 05, 2026
CVE-2026-58052MEDIUM4.8
  • 7-Zip logo7-Zip
  • cpe:2.3:a:7-zip:7-zip
NoYesJun 28, 2026
CVE-2026-48104MEDIUM4.2
  • 7-Zip logo7-Zip
  • 7zip-debugsource
NoYesJun 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management