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

CVE-2021-36373: Apache Ant DOS Vulnerability

CVE-2021-36373 is a denial of service flaw in Apache Ant that causes excessive memory allocation when processing crafted TAR archives. This post covers the technical details, affected versions, impact, and mitigation.

Published: February 25, 2026

CVE-2021-36373 Overview

CVE-2021-36373 is a denial of service vulnerability in Apache Ant that occurs when processing specially crafted TAR archive files. When Apache Ant reads a maliciously constructed TAR archive, the build process can be forced to allocate excessive amounts of memory, ultimately resulting in an out-of-memory error. This attack is particularly concerning because even small malicious inputs can trigger significant memory allocation, making it an efficient vector for disrupting automated build processes and CI/CD pipelines.

Critical Impact

Attackers can disrupt build pipelines and development workflows by supplying malicious TAR archives, causing denial of service conditions in Apache Ant build environments.

Affected Products

  • Apache Ant prior to version 1.9.16
  • Apache Ant prior to version 1.10.11
  • Oracle Agile PLM 9.3.6
  • Oracle Banking Trade Finance 14.5
  • Oracle Communications Cloud Native Core Automated Test Suite 1.9.0
  • Oracle Primavera Gateway (multiple versions)
  • Oracle Retail XStore Point of Service (versions 16.0.6 through 20.0.1)
  • Oracle Utilities Framework (multiple versions)

Discovery Timeline

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

Technical Details for CVE-2021-36373

Vulnerability Analysis

This vulnerability is classified under CWE-130 (Improper Handling of Length Parameter Inconsistency), indicating a flaw in how Apache Ant processes length fields within TAR archive headers. The vulnerability allows an attacker to craft a TAR archive with manipulated header values that cause the application to allocate disproportionately large memory buffers relative to the actual archive size.

The attack requires local access to the system and user interaction (such as a developer running a build that processes the malicious archive). The primary impact is availability, as successful exploitation leads to memory exhaustion and application termination without affecting data confidentiality or integrity.

Root Cause

The root cause stems from improper validation of length parameters in TAR archive headers during the archive reading process. Apache Ant's TAR handling code trusts the declared size values in archive entries without adequately verifying them against actual file content or applying reasonable memory allocation limits. This allows a crafted archive to specify extremely large sizes that trigger excessive memory allocation attempts.

Attack Vector

The attack vector requires local access to deliver the malicious TAR archive to the build system. An attacker could introduce the malicious archive through various means:

  • Compromised build dependencies or third-party libraries
  • Supply chain attacks on artifact repositories
  • Malicious commits to source code repositories that include TAR archives
  • Social engineering developers to process untrusted archives

When the Ant build process encounters the malicious archive during operations such as untar tasks, the memory exhaustion occurs, causing the JVM to crash with an OutOfMemoryError and halting the build process.

The vulnerability does not require authentication and primarily targets automated build environments where TAR archives are processed as part of the build workflow.

Detection Methods for CVE-2021-36373

Indicators of Compromise

  • OutOfMemoryError exceptions in Apache Ant build logs during TAR processing operations
  • Abnormally high memory consumption by Java processes running Ant builds
  • Build failures occurring specifically during untar or archive extraction tasks
  • Sudden termination of build processes without explicit configuration errors

Detection Strategies

  • Monitor JVM heap usage for anomalous spikes during Ant build executions
  • Implement alerting on OutOfMemoryError occurrences in build system logs
  • Audit incoming TAR archives for suspicious size declarations that exceed reasonable thresholds
  • Review build dependencies for untrusted or recently modified TAR archives

Monitoring Recommendations

  • Configure memory usage thresholds and alerts for build server processes
  • Enable detailed logging for Ant build operations involving archive handling
  • Implement file integrity monitoring for TAR archives in build artifact repositories
  • Set up automated scanning of build inputs for known malicious archive signatures

How to Mitigate CVE-2021-36373

Immediate Actions Required

  • Upgrade Apache Ant to version 1.9.16 or later (for 1.9.x branch)
  • Upgrade Apache Ant to version 1.10.11 or later (for 1.10.x branch)
  • Review and restrict sources of TAR archives processed in build pipelines
  • Apply memory limits to JVM processes running Ant builds as a defense-in-depth measure

Patch Information

Apache has released patched versions that address this memory exhaustion vulnerability. Organizations should upgrade to Apache Ant 1.9.16 or 1.10.11 (or later) depending on their version branch. For Oracle products that bundle Apache Ant, consult the Oracle Critical Patch Updates from October 2021, January 2022, April 2022, and July 2022 for specific patching guidance.

Additional security advisories are available from:

  • Apache Ant Security Page
  • NetApp Security Advisory NTAP-20210819-0007

Workarounds

  • Implement strict input validation on TAR archives before processing with Ant
  • Configure JVM memory limits (-Xmx) to contain potential memory exhaustion impacts
  • Isolate build processes in containers with resource constraints to limit blast radius
  • Avoid processing TAR archives from untrusted or unverified sources in automated builds
bash
# Configure JVM memory limits for Ant builds as a mitigation measure
export ANT_OPTS="-Xmx512m -Xms256m"

# Run ant build with constrained heap size
ant -Dant.opts="-Xmx512m" build

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechApache Ant

  • SeverityMEDIUM

  • CVSS Score5.5

  • EPSS Probability0.08%

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

  • NVD-CWE-Other
  • Technical References
  • Apache Groovy Mailing List Discussion

  • Apache Groovy Mailing List Discussion

  • Apache Groovy Notification

  • Apache MyFaces Development Thread

  • NetApp Security Advisory NTAP-20210819-0007

  • Oracle July 2022 Security Alert
  • Vendor Resources
  • Apache Security Page

  • Apache Ant User Mailing List

  • Oracle April 2022 Security Alert

  • Oracle January 2022 Security Alert

  • Oracle October 2021 Security Alert
  • Related CVEs
  • CVE-2021-36374: Apache Ant DOS Vulnerability

  • CVE-2020-1945: Apache Ant Information Disclosure Flaw

  • CVE-2020-11979: Apache Ant Temporary File 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