The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2026-34743

CVE-2026-34743: XZ Utils Buffer Overflow Vulnerability

CVE-2026-34743 is a buffer overflow vulnerability in XZ Utils affecting lzma_index_decoder() function. Attackers can exploit memory allocation flaws to trigger overflows. This article covers technical details, affected versions, and patches.

Published: April 2, 2026

CVE-2026-34743 Overview

A heap-based buffer overflow vulnerability has been identified in XZ Utils, the widely-used general-purpose data-compression library. The vulnerability exists in the lzma_index_decoder() function when decoding an Index that contains no Records. When this condition occurs, the resulting lzma_index structure is left in an invalid state where a subsequent call to lzma_index_append() allocates insufficient memory, leading to a heap buffer overflow.

Critical Impact

Applications using XZ Utils that decode empty Index structures and subsequently append Records may be vulnerable to heap buffer overflow, potentially leading to denial of service or memory corruption.

Affected Products

  • XZ Utils versions prior to 5.8.3
  • liblzma library versions prior to 5.8.3
  • Applications and systems utilizing vulnerable XZ Utils/liblzma versions

Discovery Timeline

  • 2026-04-02 - CVE CVE-2026-34743 published to NVD
  • 2026-04-02 - Last updated in NVD database

Technical Details for CVE-2026-34743

Vulnerability Analysis

This vulnerability is classified as CWE-122: Heap-based Buffer Overflow. The issue occurs due to improper memory allocation when the lzma_index_decoder() function processes an Index with zero Records. Under normal operation, the first call to lzma_index_append() would reset the i->prealloc value to INDEX_GROUP_SIZE. However, when decoding an empty Index, lzma_index_append() is never called during the decoding process, meaning the prealloc value is never reset from zero.

The lzma_index_append() function assumes that i->prealloc is always greater than zero. When an application subsequently calls lzma_index_append() after decoding an empty Index, the function allocates a buffer based on the incorrect prealloc value of zero, resulting in insufficient memory allocation and a subsequent heap buffer overflow when data is written.

While appending Records after decoding an Index is described as a rare operation, it is a valid and supported use case that should function correctly.

Root Cause

The root cause is a missing boundary check in the preallocation logic within src/liblzma/common/index.c. When lzma_index_decoder() is called with records == 0, the code failed to set a safe default value for i->prealloc, leaving it at zero. This violates the assumption in lzma_index_append() that i->prealloc is always positive, leading to undersized buffer allocation.

Attack Vector

The vulnerability is network-accessible with low attack complexity. An attacker could potentially craft a malicious XZ-compressed file containing an empty Index structure. When a vulnerable application processes this file and subsequently calls lzma_index_append(), the heap buffer overflow is triggered. The impact is primarily limited to availability (denial of service), though memory corruption could theoretically lead to more severe consequences depending on the application context.

c
 	if (records > PREALLOC_MAX)
 		records = PREALLOC_MAX;
 
+	// If index_decoder.c calls us with records == 0, it's decoding
+	// an Index that has no Records. In that case the decoder won't call
+	// lzma_index_append() at all, and i->prealloc isn't used during
+	// the Index decoding either.
+	//
+	// Normally the first lzma_index_append() call from the Index decoder
+	// would reset i->prealloc to INDEX_GROUP_SIZE. With no Records,
+	// lzma_index_append() isn't called and the resetting of prealloc
+	// won't occur either. Thus, if records == 0, use the default value
+	// INDEX_GROUP_SIZE instead.
+	//
+	// NOTE: lzma_index_append() assumes i->prealloc > 0. liblzma <= 5.8.2
+	// didn't have this check and could set i->prealloc = 0, which would
+	// result in a buffer overflow if the application called
+	// lzma_index_append() after decoding an empty Index. Appending
+	// Records after decoding an Index is a rare thing to do, but
+	// it is supposed to work.
+	if (records == 0)
+		records = INDEX_GROUP_SIZE;
+
 	i->prealloc = (size_t)(records);
 	return;
}

Source: GitHub Commit Update

Detection Methods for CVE-2026-34743

Indicators of Compromise

  • Unexpected application crashes or segmentation faults when processing XZ-compressed files
  • Memory corruption errors in applications using liblzma for decompression operations
  • Abnormal heap allocation patterns in processes utilizing XZ Utils

Detection Strategies

  • Monitor for crashes in applications using lzma_index_decoder() and lzma_index_append() function calls
  • Implement version checking to identify systems running XZ Utils versions prior to 5.8.3
  • Deploy memory corruption detection tools (AddressSanitizer, Valgrind) in development and staging environments

Monitoring Recommendations

  • Track XZ Utils package versions across all managed systems using software inventory tools
  • Monitor system logs for heap corruption or buffer overflow indicators from applications using liblzma
  • Enable core dump collection for affected applications to support forensic analysis

How to Mitigate CVE-2026-34743

Immediate Actions Required

  • Upgrade XZ Utils to version 5.8.3 or later immediately
  • Review applications that use lzma_index_decoder() followed by lzma_index_append() for potential exposure
  • Consider restricting processing of untrusted XZ-compressed files until patching is complete

Patch Information

The vulnerability has been patched in XZ Utils version 5.8.3. The fix adds a boundary check to ensure that when records == 0 is passed to the preallocation function, the default value INDEX_GROUP_SIZE is used instead of zero. This ensures that i->prealloc is always positive, maintaining the invariant expected by lzma_index_append().

Patch details are available via the GitHub Security Advisory GHSA-x872-m794-cxhv and the GitHub Release v5.8.3.

Workarounds

  • Avoid calling lzma_index_append() after decoding an Index structure if upgrading is not immediately possible
  • Implement input validation to reject XZ files with empty Index structures before processing
  • Use application sandboxing to limit the impact of potential memory corruption
bash
# Check current XZ Utils version
xz --version

# Update XZ Utils on Debian/Ubuntu systems
sudo apt update && sudo apt install xz-utils

# Update XZ Utils on RHEL/CentOS systems
sudo yum update xz

# Verify installed version after update
xz --version | grep -E "^xz \(XZ Utils\)"

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechXz Utils

  • SeverityLOW

  • CVSS Score1.7

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:U/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-122
  • Technical References
  • GitHub Commit Update

  • GitHub Release v5.8.3

  • GitHub Security Advisory GHSA-x872-m794-cxhv

  • Openwall OSS Security Discussion
  • Related CVEs
  • CVE-2025-31115: XZ Utils Use-After-Free Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English