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-2020-11979

CVE-2020-11979: Apache Ant Temporary File Vulnerability

CVE-2020-11979 is a temporary file handling flaw in Apache Ant that allows attackers to inject modified source files into the build process. This article covers the technical details, affected versions, and mitigations.

Published: March 4, 2026

CVE-2020-11979 Overview

CVE-2020-11979 is a temporary file creation vulnerability in Apache Ant 1.10.8 that undermines the security fix implemented for CVE-2020-1945. When using the fixcrlf task, Ant deletes a securely created temporary file and recreates it without the proper permission restrictions, allowing local attackers to potentially inject modified source files into the build process.

Critical Impact

This vulnerability allows attackers to inject malicious code into software builds by exploiting insecure temporary file handling, potentially compromising the integrity of compiled applications and their supply chain.

Affected Products

  • Apache Ant 1.10.8
  • Gradle (all versions prior to patch)
  • Fedora 31, 32, 33
  • Oracle Agile Engineering Data Management 6.2.1.0
  • Oracle API Gateway 11.1.2.4.0
  • Oracle Banking Platform (versions 2.4.0, 2.4.1, 2.6.2, 2.7.0, 2.7.1, 2.8.0)
  • Oracle Data Integrator 12.2.1.3.0 and 12.2.1.4.0
  • Oracle Primavera Gateway and Primavera Unifier (multiple versions)
  • Multiple Oracle Retail products

Discovery Timeline

  • October 1, 2020 - CVE-2020-11979 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-11979

Vulnerability Analysis

This vulnerability represents an incomplete fix for a previous security issue (CVE-2020-1945). Apache Ant 1.10.8 was released with a mitigation that changed the permissions of temporary files to restrict access to the current user only. However, this protection was inadvertently bypassed by the fixcrlf task.

The fixcrlf task is designed to convert line endings in text files between different operating system formats (CRLF for Windows, LF for Unix). During its operation, the task deletes the original temporary file that was created with secure permissions and creates a new temporary file without applying those same permission restrictions. This creates a window of opportunity where an attacker with local access can exploit the race condition to read or modify the temporary file contents.

Root Cause

The root cause is an implementation oversight in the fixcrlf task's temporary file handling mechanism. While the main Apache Ant codebase was updated to create temporary files with restrictive permissions (readable only by the current user), the fixcrlf task's file recreation logic did not inherit or apply these security measures. This creates insecure temporary files with default permissions that may allow other local users to access or modify the file contents.

Attack Vector

An attacker with local access to the build system can exploit this vulnerability through a Time-of-Check Time-of-Use (TOCTOU) race condition. The attack flow involves:

  1. Monitoring the system's temporary directory for files created by Apache Ant build processes
  2. Detecting when the fixcrlf task deletes the original secure temporary file
  3. Racing to create a symbolic link or replacement file at the same path before Ant recreates the file
  4. Injecting malicious content that gets processed as legitimate source code during the build

This attack enables modification of source files during the build process, potentially introducing backdoors or malicious code into compiled applications. The network attack vector classification indicates this can be triggered remotely through build systems that process external inputs.

The vulnerability mechanism involves the fixcrlf task's file handling sequence. When processing files, the task first creates a temporary file with secure permissions, then deletes it, and finally creates a new temporary file without the same permission restrictions. This gap in security allows unauthorized access to potentially sensitive build artifacts.

Detection Methods for CVE-2020-11979

Indicators of Compromise

  • Unexpected modifications to temporary files in Ant build directories
  • Unusual file permission changes in /tmp or system temp directories during builds
  • Symbolic links appearing in temporary directories pointing to build-related files
  • Unexplained changes to compiled artifacts compared to source code

Detection Strategies

  • Monitor file system activity during Apache Ant build processes for unexpected permission changes on temporary files
  • Implement file integrity monitoring on build servers to detect unauthorized modifications to temporary files
  • Review build logs for fixcrlf task execution and correlate with file system events
  • Deploy SentinelOne endpoint protection to detect suspicious file manipulation patterns during build processes

Monitoring Recommendations

  • Enable detailed logging for Apache Ant build processes, particularly around temporary file operations
  • Configure alerts for unexpected file permission changes in build environment temp directories
  • Implement build artifact signing and verification to detect tampering
  • Use isolated build environments with restricted local user access to minimize attack surface

How to Mitigate CVE-2020-11979

Immediate Actions Required

  • Upgrade Apache Ant to version 1.10.9 or later which contains the complete fix for this vulnerability
  • Review and restrict user access to build servers and systems running Apache Ant
  • Implement isolated build environments using containers or dedicated build agents
  • Audit existing build configurations for use of the fixcrlf task and assess exposure

Patch Information

Apache has released a fix for this vulnerability in subsequent versions of Ant. Organizations should upgrade to Apache Ant 1.10.9 or later. For Oracle products, consult the relevant Oracle Critical Patch Updates from January 2021, April 2021, July 2021, October 2021, January 2022, and April 2022. Gradle users should review the GitHub Security Advisory GHSA-j45w-qrgf-25vm for specific guidance.

Workarounds

  • Set restrictive umask values before running Ant builds to limit default file permissions
  • Use dedicated service accounts with minimal privileges for build processes
  • Configure temporary directories on mounted filesystems with restricted access
  • Avoid using the fixcrlf task until the system can be upgraded to a patched version
bash
# Set restrictive umask before running Ant builds
umask 077

# Run Ant build with restricted permissions
ant -Djava.io.tmpdir=/secure/tmp build

# Alternatively, configure private temp directory
export ANT_OPTS="-Djava.io.tmpdir=$HOME/.ant-tmp"
mkdir -p $HOME/.ant-tmp
chmod 700 $HOME/.ant-tmp

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechApache Ant

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.12%

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

  • NVD-CWE-Other
  • Technical References
  • GitHub Security Advisory

  • Apache Dev Mailing List Thread

  • Apache Dev Mailing List Thread

  • Apache Dev Mailing List Thread

  • Apache Dev Mailing List Thread

  • Apache Dev Mailing List Thread

  • Apache Dev Mailing List Thread

  • Apache Dev Mailing List Thread

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202011-18
  • Vendor Resources
  • Apache Ant Dev Mailing List Thread

  • Oracle CPU July 2021 Alert

  • Oracle CPU April 2021 Alert

  • Oracle CPU April 2022 Alert

  • Oracle CPU January 2021 Alert

  • Oracle CPU January 2022 Alert

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

  • CVE-2021-36373: Apache Ant DOS Vulnerability

  • CVE-2020-1945: Apache Ant Information Disclosure Flaw
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