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

CVE-2021-35517: Apache Commons Compress DoS Vulnerability

CVE-2021-35517 is a denial of service flaw in Apache Commons Compress that causes memory exhaustion when processing malicious TAR archives. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-35517 Overview

CVE-2021-35517 is a denial of service vulnerability in Apache Commons Compress that allows attackers to cause excessive memory allocation when processing specially crafted TAR archive files. The vulnerability exists in the TAR parsing functionality, where malicious archive metadata can trigger the allocation of large amounts of memory, ultimately leading to an out-of-memory error even when processing very small input files.

This vulnerability is particularly concerning for services that accept and process TAR archives from untrusted sources, as it can be exploited remotely without authentication to disrupt service availability.

Critical Impact

Remote attackers can exhaust server memory and cause denial of service by submitting maliciously crafted TAR archives, impacting availability of applications using Apache Commons Compress for archive processing.

Affected Products

  • Apache Commons Compress (vulnerable versions prior to patch)
  • NetApp Active IQ Unified Manager (Linux, VMware vSphere, Windows)
  • NetApp OnCommand Insight
  • Oracle Banking APIs (versions 19.1, 19.2, 20.1, 21.1)
  • Oracle Banking Digital Experience (versions 19.1, 19.2, 20.1, 21.1)
  • Oracle Banking Enterprise Default Management 2.7.0
  • Oracle Banking Party Management 2.7.0
  • Oracle Banking Payments 14.5
  • Oracle Banking Trade Finance 14.5
  • Oracle Banking Treasury Management 14.5
  • Oracle Business Process Management Suite (12.2.1.3.0, 12.2.1.4.0)
  • Oracle Commerce Guided Search 11.3.2
  • Oracle Communications Billing and Revenue Management 12.0.0.4
  • Oracle Communications Cloud Native Core Service Communication Proxy 1.14.0
  • Oracle Communications Cloud Native Core Unified Data Repository 1.14.0
  • Oracle Communications Diameter Intelligence Hub
  • Oracle Communications Session Route Manager
  • Oracle Communications Messaging Server 8.1
  • Oracle Financial Services Crime and Compliance Management Studio
  • Oracle Financial Services Enterprise Case Management
  • Oracle FLEXCUBE Universal Banking (12.4, 14.5)
  • Oracle Healthcare Data Repository 8.1.0
  • Oracle Insurance Policy Administration (11.0.2, 11.1.0, 11.2.8, 11.3.0, 11.3.1)
  • Oracle PeopleSoft Enterprise PeopleTools (8.57, 8.58, 8.59)
  • Oracle Primavera Unifier (18.8, 19.12, 20.12)
  • Oracle Utilities Testing Accelerator
  • Oracle WebCenter Portal (12.2.1.3.0, 12.2.1.4.0)

Discovery Timeline

  • July 13, 2021 - CVE-2021-35517 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-35517

Vulnerability Analysis

The vulnerability (CWE-770: Allocation of Resources Without Limits or Throttling, CWE-130: Improper Handling of Length Parameter Inconsistency) resides in Apache Commons Compress's TAR archive processing functionality. When parsing TAR file headers, the library reads size fields from the archive metadata without properly validating them against reasonable bounds. An attacker can craft a TAR archive with manipulated header fields that specify extremely large file sizes or entry counts.

When the library processes such an archive, it attempts to allocate memory buffers based on these untrusted size values. Since there is no upper limit validation, even a small malicious TAR file (potentially just a few kilobytes) can instruct the application to allocate gigabytes of memory, rapidly exhausting available heap space and causing an OutOfMemoryError.

This vulnerability is exploitable over the network without any authentication or user interaction, making it particularly dangerous for web services, file upload endpoints, or any application that processes TAR archives from external sources.

Root Cause

The root cause is improper validation of length parameters in TAR archive headers. The Commons Compress library trusts the size values embedded in TAR file headers without implementing reasonable upper bounds or resource limits. This allows attackers to specify arbitrarily large allocation sizes in the archive metadata, which the library then attempts to honor, leading to resource exhaustion.

Attack Vector

The attack is network-based and requires no privileges or user interaction. An attacker crafts a malicious TAR archive with manipulated header fields containing exaggerated size values. When this archive is processed by an application using the vulnerable Apache Commons Compress library, the following occurs:

  1. The application receives the malicious TAR archive (via file upload, API endpoint, or other input mechanism)
  2. Commons Compress parses the TAR headers and reads the manipulated size fields
  3. The library allocates memory buffers based on the untrusted size values
  4. Memory allocation spirals out of control, exhausting available heap space
  5. The JVM throws an OutOfMemoryError, causing service disruption or crash

The vulnerability does not require the malicious archive to contain actual data matching the declared sizes—the mere act of parsing the headers triggers the excessive allocation.

Detection Methods for CVE-2021-35517

Indicators of Compromise

  • Sudden spikes in JVM heap memory usage when processing TAR archives
  • OutOfMemoryError exceptions in application logs related to archive processing
  • Application or service crashes following TAR file upload or processing operations
  • Unusually small TAR files causing disproportionate memory consumption
  • High memory allocation rates in garbage collection logs

Detection Strategies

  • Monitor JVM heap usage patterns and alert on anomalous memory allocation spikes during archive processing
  • Implement application-level logging around TAR parsing operations to track memory consumption
  • Use dependency scanning tools (OWASP Dependency-Check, Snyk, etc.) to identify vulnerable Commons Compress versions in your codebase
  • Review Software Bill of Materials (SBOM) for transitive dependencies on affected Commons Compress versions
  • Deploy web application firewalls (WAF) with rules to inspect uploaded archives for suspicious metadata

Monitoring Recommendations

  • Configure JVM memory monitoring with threshold-based alerting for rapid heap growth
  • Implement request-level timeout and resource limits for archive processing endpoints
  • Enable verbose garbage collection logging to detect memory pressure patterns
  • Monitor application availability and restart frequency as DoS indicators
  • Track archive processing duration metrics to identify abnormally long operations

How to Mitigate CVE-2021-35517

Immediate Actions Required

  • Identify all applications and services using Apache Commons Compress for TAR processing
  • Inventory all instances of the vulnerable library including transitive dependencies
  • Upgrade Apache Commons Compress to the patched version immediately
  • Implement memory limits and timeouts for archive processing operations as a defense-in-depth measure
  • Consider temporarily disabling TAR archive processing functionality if patches cannot be applied immediately

Patch Information

Apache has released security patches to address this vulnerability. Users should upgrade to the fixed version of Apache Commons Compress as documented in the Apache Commons Compress Security Reports. Oracle has also released patches for affected Oracle products through their Critical Patch Updates—refer to the Oracle October 2021 CPU, Oracle January 2022 CPU, Oracle April 2022 CPU, and Oracle July 2022 CPU for product-specific guidance. NetApp users should consult their security advisory for Active IQ Unified Manager and OnCommand Insight.

Workarounds

  • Implement input validation to restrict the maximum acceptable size of uploaded TAR archives before processing
  • Configure JVM memory limits (-Xmx) to prevent complete system resource exhaustion
  • Deploy request timeouts on endpoints that process archive files to abort long-running operations
  • Use containerization or sandboxing to isolate archive processing and limit resource consumption per request
  • Implement rate limiting on file upload endpoints to reduce the potential impact of DoS attempts
bash
# Example JVM configuration to limit heap and set timeouts
# Add to application startup script or container configuration
java -Xmx512m -Xms256m \
  -XX:+HeapDumpOnOutOfMemoryError \
  -XX:HeapDumpPath=/var/log/heapdumps \
  -jar your-application.jar

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechApache Commons Compress

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-130

  • CWE-770
  • Technical References
  • Openwall OSS Security Announcement

  • Openwall OSS Security Update

  • Apache Flink Security Thread

  • Apache Announcement Thread

  • Apache User Thread

  • Apache POI Dev Thread

  • Apache SkyWalking Notifications Thread

  • Apache Announcement Thread

  • Apache SkyWalking Notifications Thread

  • Apache Pulsar Commits Thread

  • Apache SkyWalking Notifications Thread

  • Apache SkyWalking Notifications Thread

  • Apache SkyWalking Notifications Thread

  • Apache SkyWalking Notifications Thread

  • Apache SkyWalking Notifications Thread

  • Apache SkyWalking Notifications Thread
  • Vendor Resources
  • Apache Commons Compress Security Report

  • Apache Commons User Thread

  • NetApp Security Advisory NTAP-20211022

  • Oracle April 2022 Security Alerts

  • Oracle January 2022 Security Alerts

  • Oracle July 2022 Security Alerts
  • Related CVEs
  • CVE-2024-25710: Apache Commons Compress DoS Vulnerability

  • CVE-2024-26308: Apache Commons Compress DOS Vulnerability

  • CVE-2023-42503: Apache Commons Compress DOS Vulnerability

  • CVE-2021-35515: Apache Commons Compress DOS Vulnerability
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