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-2021-3520

CVE-2021-3520: Lz4_project Lz4 DOS Vulnerability

CVE-2021-3520 is a denial of service flaw in Lz4_project Lz4 caused by an integer overflow that triggers out-of-bounds writes. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-3520 Overview

CVE-2021-3520 is an integer overflow vulnerability in the LZ4 compression library. An attacker who submits a crafted file to an application linked with lz4 may be able to trigger an integer overflow, leading to calling of memmove() on a negative size argument, causing an out-of-bounds write and/or a crash. The greatest impact of this flaw is to availability, with some potential impact to confidentiality and integrity as well.

Critical Impact

This vulnerability allows remote attackers to potentially execute arbitrary code or cause denial of service by exploiting an integer overflow in the widely-used LZ4 compression library, affecting numerous enterprise products including NetApp, Oracle, and Splunk solutions.

Affected Products

  • lz4_project lz4
  • netapp active_iq_unified_manager
  • netapp cloud_backup
  • netapp ontap_select_deploy_administration_utility
  • oracle communications_cloud_native_core_policy
  • oracle zfs_storage_appliance_kit
  • splunk universal_forwarder

Discovery Timeline

  • June 2, 2021 - CVE CVE-2021-3520 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-3520

Vulnerability Analysis

The vulnerability exists in the LZ4 compression library's handling of specially crafted input data. When processing malicious compressed data, the library fails to properly validate size parameters before passing them to memory operations. This allows an attacker to trigger an integer overflow condition that converts a large positive value into a negative number when interpreted as a signed integer.

The flaw is classified as CWE-190 (Integer Overflow or Wraparound), a vulnerability type that occurs when an arithmetic operation attempts to create a numeric value that is outside of the range that can be represented with a given number of digits. In this case, the overflow results in a negative value being passed to memmove(), which interprets this as an extremely large unsigned value, causing memory corruption.

Root Cause

The root cause of CVE-2021-3520 lies in insufficient integer validation within the LZ4 decompression routines. When processing compressed data, the library performs arithmetic operations on size values without checking for potential overflow conditions. Specifically, when calculating buffer sizes or offsets during decompression, the code fails to validate that the result remains within expected bounds before using these values in memory operations.

This type of vulnerability is common in compression libraries where performance optimizations may inadvertently omit boundary checks that would prevent integer wraparound conditions.

Attack Vector

The attack vector for this vulnerability is network-based, requiring no privileges or user interaction to exploit. An attacker can exploit this vulnerability by:

  1. Crafting a malicious LZ4-compressed file with specially constructed size fields
  2. Delivering this file to any application that uses the vulnerable LZ4 library for decompression
  3. When the application processes the malicious data, the integer overflow triggers
  4. The subsequent memmove() call with a negative size argument causes out-of-bounds memory writes

The attack can be delivered through any input channel that processes LZ4-compressed data, including file uploads, network streams, or data at rest that gets decompressed by vulnerable applications. This makes the vulnerability particularly dangerous in environments using affected enterprise products for backup, storage, or monitoring operations.

Detection Methods for CVE-2021-3520

Indicators of Compromise

  • Unexpected crashes in applications using LZ4 compression library with error logs indicating memory access violations
  • Abnormal memory consumption patterns in processes performing LZ4 decompression operations
  • Core dumps or crash reports showing memmove() operations with unusual size parameters
  • Suspicious compressed files with anomalous header values or size fields

Detection Strategies

  • Implement file integrity monitoring for LZ4 library files to detect unauthorized modifications or outdated vulnerable versions
  • Deploy memory protection mechanisms such as ASLR and stack canaries to detect and prevent exploitation attempts
  • Monitor application logs for segmentation faults or memory corruption errors during decompression operations
  • Utilize SentinelOne's behavioral AI to detect anomalous process behavior indicative of memory corruption exploitation

Monitoring Recommendations

  • Enable comprehensive logging for applications that process LZ4-compressed data
  • Configure alerting for application crashes involving memory-related exceptions in decompression workflows
  • Track LZ4 library versions across your infrastructure using software composition analysis tools
  • Monitor for unusual network traffic patterns delivering potentially malicious compressed data

How to Mitigate CVE-2021-3520

Immediate Actions Required

  • Inventory all systems and applications using the LZ4 compression library to identify vulnerable deployments
  • Prioritize patching of internet-facing systems and applications that process untrusted compressed data
  • Review and update all affected enterprise products including NetApp, Oracle, and Splunk solutions to patched versions
  • Implement input validation for compressed data before processing where possible

Patch Information

Patches are available from the respective vendors for affected products. Consult the following resources for patch information:

  • Red Hat Bug Report #1954559 - Red Hat tracking and patch information
  • NetApp Security Advisory NTAP-20211104-0005 - NetApp product updates
  • Oracle CPU July 2021 Alert - Oracle product patches
  • Oracle CPU October 2021 Alert - Additional Oracle patches
  • Oracle CPU April 2022 Alert - Latest Oracle security updates

Update the LZ4 library to the latest patched version available from your operating system vendor or the upstream LZ4 project.

Workarounds

  • Restrict processing of LZ4-compressed data from untrusted sources until patches can be applied
  • Implement network segmentation to limit exposure of vulnerable applications to untrusted input
  • Deploy application sandboxing to contain potential exploitation attempts
  • Consider disabling LZ4 compression in affected applications temporarily if alternate compression methods are available
bash
# Check for vulnerable LZ4 library versions
rpm -qa | grep lz4
dpkg -l | grep lz4

# Verify LZ4 library version on system
lz4 --version

# Update LZ4 package on RHEL/CentOS
sudo yum update lz4

# Update LZ4 package on Debian/Ubuntu
sudo apt-get update && sudo apt-get upgrade liblz4-1

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechLz4

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.14%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-190
  • Technical References
  • NetApp Security Advisory NTAP-20211104-0005
  • Vendor Resources
  • Red Hat Bug Report #1954559

  • Oracle CPU July 2021 Alert

  • Oracle CPU April 2022 Alert

  • Oracle CPU October 2021 Alert
  • Related CVEs
  • CVE-2025-12183: LZ4 Java Library DoS 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