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-35515

CVE-2021-35515: Apache Commons Compress DOS Vulnerability

CVE-2021-35515 is a denial of service flaw in Apache Commons Compress that triggers an infinite loop when processing malicious 7Z archives. This article covers the technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-35515 Overview

CVE-2021-35515 is a denial of service vulnerability affecting Apache Commons Compress, a widely-used Java library for working with archive and compression formats. When reading a specially crafted 7Z archive, the construction of the list of codecs that decompress an entry can result in an infinite loop. This vulnerability could be exploited to mount a denial of service attack against services that use the Compress' sevenz package.

Critical Impact

This vulnerability enables attackers to cause complete service unavailability by submitting malicious 7Z archive files, potentially disrupting critical enterprise applications across banking, communications, and business process management systems.

Affected Products

  • Apache Commons Compress (primary affected component)
  • NetApp Active IQ Unified Manager (Linux, VMware vSphere, Windows)
  • NetApp OnCommand Insight
  • Oracle Banking Digital Experience (versions 19.1, 20.1, 21.1)
  • Oracle Banking Enterprise Default Management (version 2.7.0)
  • Oracle Banking Party Management (version 2.7.0)
  • Oracle Banking Payments (version 14.5)
  • Oracle Banking Trade Finance (version 14.5)
  • Oracle Banking Treasury Management (version 14.5)
  • Oracle Business Process Management Suite (versions 12.2.1.3.0, 12.2.1.4.0)
  • Oracle Commerce Guided Search (version 11.3.2)
  • Oracle Communications Billing and Revenue Management (version 12.0.0.4)
  • Oracle Communications Cloud Native Core products
  • Oracle Financial Services Crime and Compliance Management Studio
  • Oracle FLEXCUBE Universal Banking
  • Oracle PeopleSoft Enterprise PeopleTools (versions 8.57, 8.58, 8.59)
  • Oracle Primavera Unifier
  • Oracle Communications Messaging Server (version 8.1)

Discovery Timeline

  • July 13, 2021 - CVE-2021-35515 published to NVD
  • October 2021 - Oracle releases security patches in CPU October 2021
  • January 2022 - Additional patches released in Oracle CPU January 2022
  • April 2022 - Further patches in Oracle CPU April 2022
  • July 2022 - Oracle CPU July 2022 addresses remaining affected products
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2021-35515

Vulnerability Analysis

This vulnerability is classified under CWE-834 (Excessive Iteration) and CWE-835 (Loop with Unreachable Exit Condition). The flaw exists in the way Apache Commons Compress handles the codec list construction when processing 7Z archive entries. When parsing certain malformed 7Z archives, the decompression routine enters an infinite loop, consuming CPU resources indefinitely.

The vulnerability can be triggered remotely over a network connection without requiring authentication or user interaction. An attacker simply needs to deliver a malicious 7Z archive to any service that processes such files using the vulnerable Commons Compress library. The impact is limited to availability—there is no direct path to confidentiality or integrity compromise through this vulnerability alone.

Root Cause

The root cause lies in improper loop termination logic within the sevenz package's codec list construction code. When processing a specially crafted 7Z archive, the code enters a loop that lacks proper exit conditions for certain malformed input scenarios. The loop continues indefinitely, consuming CPU cycles and preventing the application from processing legitimate requests.

This represents a failure in input validation where the archive parsing code does not adequately verify that the codec chain construction will terminate in a finite number of steps. The absence of iteration limits or timeout mechanisms allows the infinite loop condition to persist.

Attack Vector

The attack can be executed over the network by any unauthenticated attacker who can submit a 7Z archive to a vulnerable service. Common attack scenarios include:

File upload endpoints that accept 7Z archives for processing create a direct attack surface. Web applications, document management systems, and data ingestion pipelines that use Apache Commons Compress to handle archive files are all potentially vulnerable.

The malicious archive exploits the codec list parsing by including specially crafted header structures that cause the decompression initialization code to loop infinitely. When a service attempts to read or extract entries from such an archive, the thread becomes blocked in the infinite loop.

Since no proof-of-concept code has been verified for this vulnerability, the technical details of crafting the malicious archive structure are not publicly documented. Administrators should refer to the Apache Commons Compress Security Reports for authoritative technical information.

Detection Methods for CVE-2021-35515

Indicators of Compromise

  • Abnormal CPU utilization spikes coinciding with 7Z archive processing operations
  • Application threads stuck in infinite loops within org.apache.commons.compress.archivers.sevenz package classes
  • Service timeout errors or unresponsiveness when handling 7Z file uploads
  • Thread dumps showing repeated execution in Commons Compress codec-related methods

Detection Strategies

  • Monitor application performance metrics for sustained high CPU usage during archive operations
  • Implement thread monitoring to detect threads blocked for extended periods in compression library code
  • Deploy application-level logging around file upload and archive processing endpoints
  • Use dependency scanning tools to identify vulnerable versions of Apache Commons Compress in your software inventory

Monitoring Recommendations

  • Configure alerting for abnormal CPU consumption patterns in services that process archive files
  • Implement request timeout monitoring for file upload and processing endpoints
  • Enable JVM thread monitoring to detect stuck threads in production environments
  • Audit all applications and dependencies using software composition analysis (SCA) tools to identify Commons Compress usage

How to Mitigate CVE-2021-35515

Immediate Actions Required

  • Upgrade Apache Commons Compress to the latest patched version that addresses this vulnerability
  • Apply relevant vendor patches from Oracle, NetApp, and other affected product vendors
  • Implement request timeouts and resource limits on services that process 7Z archives
  • Consider temporarily disabling 7Z archive processing if patches cannot be immediately applied

Patch Information

Apache has released patches addressing this vulnerability. Organizations should upgrade to a fixed version of Apache Commons Compress as documented in the Apache Commons Compress Security Reports.

For Oracle products, patches are available through multiple Critical Patch Updates:

  • Oracle CPU October 2021
  • Oracle CPU January 2022
  • Oracle CPU April 2022
  • Oracle CPU July 2022

NetApp users should refer to the NetApp Security Advisory NTAP-20211022-0001 for applicable patches.

Workarounds

  • Implement execution timeouts around 7Z archive processing operations to prevent indefinite blocking
  • Restrict 7Z file uploads to trusted users only until patches can be applied
  • Deploy application-layer firewalls or file type filters to block 7Z archives at ingress points
  • Isolate archive processing services in resource-constrained containers to limit DoS impact
bash
# Example: Setting Java thread timeout for archive operations
# Add to JVM startup options to limit thread execution time
-XX:+UseThreadPriorities
-XX:ThreadStackSize=256k

# Example: Container resource limits for archive processing service
# docker-compose.yml excerpt
# deploy:
#   resources:
#     limits:
#       cpus: '1.0'
#       memory: 512M

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 Probability0.60%

  • 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-834

  • CWE-835
  • Technical References
  • OpenWall Security Discussion

  • Apache POI Mailing List Thread

  • Apache SkyWalking Notification Thread

  • Apache Druid Commit Notification

  • Apache SkyWalking Notification Thread

  • Apache Pulsar Commit Notification

  • Apache SkyWalking Notification Thread

  • Apache SkyWalking Notification Thread

  • Apache SkyWalking Notification Thread

  • Apache Announce Mailing List Thread

  • Apache Druid Commit Notification

  • Apache SkyWalking Notification Thread

  • Apache Druid Commit Notification

  • Apache SkyWalking Notification Thread

  • NetApp Security Advisory NTAP-20211022-0001
  • Vendor Resources
  • Apache Commons Compress Security Reports

  • Apache Commons Mailing List Thread

  • Oracle CPU April 2022 Security Alert

  • Oracle CPU January 2022 Security Alert

  • Oracle CPU July 2022 Security Alert

  • Oracle CPU October 2021 Security Alert
  • 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-35517: 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