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-2023-42503

CVE-2023-42503: Apache Commons Compress DOS Vulnerability

CVE-2023-42503 is a denial of service vulnerability in Apache Commons Compress affecting TAR file parsing. Attackers can cause CPU exhaustion via malformed time headers. This article covers technical details, affected versions, and mitigation.

Published: February 4, 2026

CVE-2023-42503 Overview

CVE-2023-42503 is an Improper Input Validation and Uncontrolled Resource Consumption vulnerability affecting Apache Commons Compress, a widely-used Java library for working with archive formats. The vulnerability exists in the TAR file parsing functionality, specifically in how the library handles file modification time headers in PAX extended headers. A malicious actor can craft a TAR file with manipulated time headers containing extremely large numbers or exponent notation, which when parsed, triggers an algorithmic complexity issue in Java's BigDecimal class, resulting in a denial of service through CPU exhaustion.

Critical Impact

Maliciously crafted TAR files can cause applications using Apache Commons Compress to become unresponsive for hours, leading to complete denial of service via CPU resource exhaustion.

Affected Products

  • Apache Commons Compress versions 1.22 to 1.23.x (prior to 1.24.0)
  • Applications using CompressorStreamFactory class with auto-detection of file types
  • Applications using TarArchiveInputStream and TarFile classes to parse TAR files

Discovery Timeline

  • 2023-09-14 - CVE CVE-2023-42503 published to NVD
  • 2025-02-13 - Last updated in NVD database

Technical Details for CVE-2023-42503

Vulnerability Analysis

The vulnerability was introduced in Apache Commons Compress version 1.22 when support was added for file modification times with higher precision (tracked as COMPRESS-612). The PAX extended header format for these timestamps consists of two numbers separated by a period, representing seconds and subsecond precision (e.g., "1647221103.5998539"). The impacted fields include atime, ctime, mtime, and LIBARCHIVE.creationtime.

The core issue lies in the lack of input validation prior to parsing these header values. When the library encounters a timestamp value, it passes it directly to Java's BigDecimal class for parsing. This class has a well-documented algorithmic complexity vulnerability (tracked as JDK-6560193) that causes severe performance degradation when processing numbers with very long fractional parts or extreme exponent notation.

An attacker can exploit this by placing a number with an extremely long fraction (300,000+ digits) or using exponent notation (such as "9e9999999") within a file modification time header. When an application attempts to parse such a malicious TAR file, the operation that should complete in seconds instead takes hours, effectively causing a denial of service.

This vulnerability is similar to CVE-2012-2098, which also involved algorithmic complexity attacks against Apache Commons components.

Root Cause

The root cause is the absence of input validation on PAX extended header values before they are processed by the BigDecimal parser. The library trusts that incoming timestamp values conform to reasonable specifications and passes them directly to mathematical parsing functions that have known algorithmic complexity issues with specially crafted inputs. The BigDecimal class performs arithmetic operations that scale poorly with the size of the numbers being processed, making it susceptible to resource exhaustion attacks.

Attack Vector

The attack requires local access where a user or application processes a maliciously crafted TAR file. The attacker creates a TAR archive with manipulated PAX extended headers containing timestamp values designed to trigger the algorithmic complexity vulnerability. When the target application attempts to extract or inspect the archive using vulnerable versions of Apache Commons Compress, the parsing operation consumes excessive CPU cycles for extended periods.

The attack is particularly dangerous in scenarios where applications automatically process uploaded archives, scan directories for new files, or handle TAR files from untrusted sources. Since the malicious payload is embedded in metadata headers rather than file content, traditional content inspection may not detect the threat.

Detection Methods for CVE-2023-42503

Indicators of Compromise

  • Unusual CPU utilization spikes when processing TAR archive files
  • Application threads stuck in BigDecimal parsing operations for extended periods
  • TAR files containing PAX extended headers with abnormally long numeric values in timestamp fields
  • Thread dumps showing blocked threads in java.math.BigDecimal operations during archive processing

Detection Strategies

  • Implement monitoring for Java applications that process archive files, alerting on sustained high CPU usage during TAR operations
  • Use software composition analysis (SCA) tools to identify applications using Apache Commons Compress versions 1.22 through 1.23.x
  • Review application logs for parsing errors or timeouts related to TAR file processing
  • Deploy runtime application self-protection (RASP) solutions to detect abnormal resource consumption patterns

Monitoring Recommendations

  • Configure alerting thresholds for CPU utilization when archive processing services are active
  • Monitor thread states in Java applications, flagging threads stuck in arithmetic parsing for extended durations
  • Track file processing times and alert when TAR operations exceed normal baselines
  • Implement queue depth monitoring for file processing pipelines to detect processing slowdowns

How to Mitigate CVE-2023-42503

Immediate Actions Required

  • Upgrade Apache Commons Compress to version 1.24.0 or later immediately across all affected applications
  • Audit all Java applications and dependencies to identify usage of vulnerable Apache Commons Compress versions
  • Implement file validation at ingestion points to reject TAR files from untrusted sources until patching is complete
  • Consider temporarily disabling automatic archive processing features in applications handling files from external sources

Patch Information

Apache has addressed this vulnerability in Apache Commons Compress version 1.24.0. The fix implements proper input validation for PAX extended header values before they are processed, preventing the algorithmic complexity attack from being triggered. Users are strongly recommended to upgrade to version 1.24.0 or later to remediate this vulnerability.

For additional information, refer to the Apache Mailing List Thread and the NetApp Security Advisory NTAP-20231020-0003.

Workarounds

  • Implement pre-processing validation of TAR files to inspect PAX header values for abnormally long numeric strings before passing to Apache Commons Compress
  • Apply resource limits (CPU time quotas, thread timeouts) to archive processing operations to prevent runaway resource consumption
  • Isolate archive processing in sandboxed environments with strict resource constraints
  • Restrict archive processing to files from trusted, verified sources only until the library can be upgraded
bash
# Maven dependency update example
# Update pom.xml to use patched version
mvn versions:use-dep-version -Dincludes=org.apache.commons:commons-compress -DdepVersion=1.24.0
# Verify the update
mvn dependency:tree | grep commons-compress

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

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.01%

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

  • NVD-CWE-noinfo
  • Technical References
  • Apache Mailing List Thread

  • NetApp Security Advisory NTAP-20231020-0003
  • Related CVEs
  • CVE-2024-25710: Apache Commons Compress DoS Vulnerability

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

  • CVE-2021-35517: 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