Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-2023-46228

CVE-2023-46228: Zchunk Buffer Overflow Vulnerability

CVE-2023-46228 is a buffer overflow vulnerability in Zchunk affecting versions before 1.3.2 through integer overflows in malformed files. This post explains its technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-46228 Overview

CVE-2023-46228 is an integer overflow vulnerability affecting zchunk, a library designed for creating and handling zchunk compressed files. The vulnerability exists in multiple components of the library, specifically in lib/comp/comp.c, lib/comp/zstd/zstd.c, lib/dl/multipart.c, and lib/header.c. When processing malformed zchunk files, the library fails to properly validate size calculations, leading to integer overflows that can result in memory corruption.

Critical Impact

Successful exploitation of this vulnerability through a maliciously crafted zchunk file can lead to arbitrary code execution, data corruption, or denial of service on systems using vulnerable versions of the zchunk library.

Affected Products

  • zchunk versions prior to 1.3.2
  • Linux distributions and applications that bundle or depend on the zchunk library
  • Package managers and update mechanisms that utilize zchunk for delta compression

Discovery Timeline

  • 2023-10-19 - CVE-2023-46228 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-46228

Vulnerability Analysis

The vulnerability arises from insufficient validation of size parameters when processing zchunk file data. Multiple functions within the zchunk library perform arithmetic operations on size values without checking for integer overflow conditions. When a malformed zchunk file contains specially crafted size values, these operations can wrap around, resulting in undersized memory allocations. Subsequent data operations then write beyond the allocated buffer boundaries, causing heap corruption.

The vulnerability requires local access and user interaction to exploit—an attacker must convince a user to open or process a malicious zchunk file. Once exploited, the impact is significant as it can lead to complete compromise of confidentiality, integrity, and availability of the affected system.

Root Cause

The root cause is classified as CWE-190 (Integer Overflow or Wraparound). The zchunk library performs addition operations on data size values (comp->data_size + src_size and comp->dc_data_size + src_size) without first validating that the result will not exceed the maximum representable value. When the sum exceeds the integer boundary, it wraps around to a small value, causing zrealloc() to allocate insufficient memory.

Attack Vector

The attack requires local access and user interaction. An attacker crafts a malicious zchunk file with specifically chosen size values in the file headers or chunk metadata. When a vulnerable application processes this file:

  1. The library reads the malicious size values from the file
  2. Size calculations overflow, resulting in a small allocation size
  3. The library allocates an undersized buffer via zrealloc()
  4. Subsequent write operations overflow the buffer
  5. The attacker achieves memory corruption, potentially leading to code execution
c
// Vulnerable code pattern in src/lib/comp/comp.c (before patch)
// The addition could overflow, causing undersized allocation
comp->data = zrealloc(comp->data, comp->data_size + src_size);

// Security patch adds overflow detection:
if((comp->data_size > comp->data_size + src_size) ||
   (src_size > comp->data_size + src_size)) {
    zck_log(ZCK_LOG_ERROR, "Integer overflow when reading data");
    return false;
}

comp->data = zrealloc(comp->data, comp->data_size + src_size);

Source: GitHub Commit for zchunk

Detection Methods for CVE-2023-46228

Indicators of Compromise

  • Unexpected crashes or segmentation faults in applications processing zchunk files
  • Abnormal memory allocation patterns or out-of-memory errors when handling small zchunk files
  • Core dumps from zchunk-dependent applications showing heap corruption

Detection Strategies

  • Monitor for abnormal behavior in applications using zchunk library during file processing operations
  • Implement file integrity monitoring for zchunk files entering the system through downloads or file transfers
  • Use memory sanitizers (AddressSanitizer, Valgrind) in development and testing environments to detect heap overflows
  • Deploy endpoint protection that can detect heap corruption exploitation attempts

Monitoring Recommendations

  • Enable application crash reporting and analyze core dumps for signs of memory corruption in zchunk-related processes
  • Monitor system logs for applications that process zchunk files exhibiting unusual behavior
  • Track file operations involving .zck file extensions from untrusted sources

How to Mitigate CVE-2023-46228

Immediate Actions Required

  • Upgrade zchunk to version 1.3.2 or later immediately
  • Audit systems to identify all instances of the vulnerable zchunk library
  • Restrict processing of zchunk files from untrusted sources until patches are applied
  • Update Linux distribution packages that depend on zchunk

Patch Information

The vulnerability has been fixed in zchunk version 1.3.2. The patch adds explicit integer overflow checks before performing memory allocations in the affected functions. The security fix is available in commit 08aec2b4dfd7f709b6e3d511411ffcc83ed4efbe.

For detailed information, refer to:

  • SUSE Bug Report #1216268
  • GitHub Commit for zchunk
  • GitHub zchunk Version Comparison

Workarounds

  • If immediate patching is not possible, restrict access to zchunk file processing functionality
  • Implement input validation at the application level to reject suspiciously large size values in zchunk files
  • Use sandboxing or containerization for applications that must process untrusted zchunk files
bash
# Check installed zchunk version on Linux systems
rpm -qa | grep zchunk
# or
dpkg -l | grep zchunk

# Update zchunk package (Fedora/RHEL/CentOS)
sudo dnf update zchunk

# Update zchunk package (Debian/Ubuntu)
sudo apt update && sudo apt upgrade libzck*

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

  • Vulnerability Details
  • TypeBuffer Overflow

  • Vendor/TechZchunk

  • SeverityHIGH

  • CVSS Score7.8

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Vendor Resources
  • SUSE Bug Report #1216268

  • GitHub Commit for zchunk

  • GitHub zchunk Version Comparison
  • Latest CVEs
  • CVE-2025-49454: TinySalt Path Traversal Vulnerability

  • CVE-2025-48261: MultiVendorX Information Disclosure Flaw

  • CVE-2025-32119: CardGate WooCommerce SQL Injection Flaw

  • CVE-2025-26879: s2Member Plugin Reflected XSS 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