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

CVE-2021-29425: Apache Commons IO Path Traversal Flaw

CVE-2021-29425 is a path traversal vulnerability in Apache Commons IO affecting versions before 2.7. The flaw allows limited access to parent directories. This article covers technical details, affected versions, and fixes.

Published: March 4, 2026

CVE-2021-29425 Overview

CVE-2021-29425 is a path traversal vulnerability in Apache Commons IO, a widely-used Java library that provides utility classes for file and stream operations. When invoking the FileNameUtils.normalize method with specially crafted input strings such as //../foo or \\..\\foo, the function fails to properly sanitize the path, returning the same malformed value. This behavior can enable limited path traversal attacks, potentially allowing access to files in the parent directory when the calling code uses the unsanitized result to construct file paths.

This vulnerability is particularly concerning due to the widespread adoption of Apache Commons IO across enterprise Java applications and its integration into numerous Oracle products, making it a significant supply chain security concern.

Critical Impact

Improper path normalization in FileNameUtils.normalize allows limited directory traversal to parent directories, potentially exposing sensitive files in applications that rely on this function for path sanitization.

Affected Products

  • Apache Commons IO versions 2.2 through 2.6
  • Debian Linux 9.0
  • Oracle WebLogic Server (12.1.3.0.0, 12.2.1.3.0, 12.2.1.4.0, 14.1.1.0.0)
  • Oracle Access Manager (11.1.2.3.0, 12.2.1.3.0, 12.2.1.4.0)
  • Oracle Banking Platform and Banking APIs (multiple versions)
  • Oracle Communications products (Design Studio, Policy Management, Service Broker, and others)
  • Oracle Retail products (XStore Point of Service, Integration Bus, Service Backbone)
  • NetApp Active IQ Unified Manager (Linux, VMware vSphere, Windows)

Discovery Timeline

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

Technical Details for CVE-2021-29425

Vulnerability Analysis

The vulnerability resides in the FileNameUtils.normalize() method within Apache Commons IO. This utility function is designed to normalize file paths by resolving relative path components (such as . and ..) and converting path separators to a consistent format. However, when provided with certain malformed input strings containing double dots at the path root (e.g., //../foo or \\..\\foo), the normalization logic fails to properly handle these edge cases.

Instead of rejecting or correctly resolving these invalid paths, the function returns the input unchanged, preserving the directory traversal sequences. Applications that rely on FileNameUtils.normalize() as a security control to prevent path traversal attacks may be left vulnerable when this bypass is exploited.

The attack is classified as "limited" path traversal because the bypass only allows navigation to the immediate parent directory—not arbitrary traversal up the directory tree. Nevertheless, this can still expose sensitive configuration files, credentials, or other protected resources stored one level above the application's working directory.

Root Cause

The root cause is improper input validation (CWE-20) and inadequate path traversal protection (CWE-22) in the FileNameUtils.normalize() implementation. The function does not properly validate edge cases where traversal sequences appear at or near the root of the path. The normalization algorithm processes path components iteratively but fails to account for scenarios where the resulting path would logically traverse above the root, leading to the input being returned unmodified rather than sanitized or rejected.

Attack Vector

An attacker can exploit this vulnerability by supplying a malicious file path as input to any application feature that uses FileNameUtils.normalize() for path sanitization before file access operations. The attack vector is network-accessible when the vulnerable path handling occurs in web applications, APIs, or network services.

The exploitation flow involves:

  1. Identifying an application endpoint that accepts file paths or filenames as input
  2. Crafting input strings using the bypass patterns (//../filename or \\..\\filename)
  3. Submitting the malicious input, which passes through the faulty normalization
  4. Accessing files in the parent directory of the intended base path

This vulnerability requires the application to use the return value of normalize() directly in file operations without additional validation, which is a common usage pattern given that the function is specifically designed for path sanitization.

Detection Methods for CVE-2021-29425

Indicators of Compromise

  • Application logs showing file access attempts with unusual path patterns containing //../ or \\..\\ sequences
  • Web server access logs with URL-encoded traversal attempts targeting file download or upload endpoints
  • File system audit logs indicating access to files outside expected application directories
  • Error messages revealing parent directory structures or file names

Detection Strategies

  • Implement Software Composition Analysis (SCA) to identify Apache Commons IO versions 2.2 through 2.6 in application dependencies
  • Deploy web application firewall (WAF) rules to detect and block path traversal patterns in HTTP requests
  • Configure application-level logging to capture all inputs processed by file path handling functions
  • Use static application security testing (SAST) tools to identify usage of FileNameUtils.normalize() in security-sensitive contexts

Monitoring Recommendations

  • Enable verbose logging for file access operations and monitor for unexpected parent directory references
  • Set up alerts for file access attempts outside designated application directories
  • Monitor dependency management systems for outdated Apache Commons IO versions across the organization
  • Review application error logs for path-related exceptions that may indicate exploitation attempts

How to Mitigate CVE-2021-29425

Immediate Actions Required

  • Upgrade Apache Commons IO to version 2.7 or later, which contains the fix for this vulnerability
  • Audit all applications using Apache Commons IO to identify vulnerable versions in your environment
  • Implement additional path validation after calling FileNameUtils.normalize() to verify paths remain within expected boundaries
  • Apply vendor patches for affected Oracle, NetApp, and Debian products as they become available

Patch Information

Apache has addressed this vulnerability in Apache Commons IO version 2.7 and later. Organizations should update their Maven, Gradle, or other build configurations to use the patched version. For detailed information about the fix, refer to the Apache JIRA Issue IO-556.

Oracle has released patches addressing this vulnerability in multiple Critical Patch Updates. Refer to the Oracle CPU January 2022, Oracle CPU April 2022, and Oracle CPU July 2022 advisories for specific product updates.

Workarounds

  • Implement additional path validation logic after normalization to verify the resolved path does not traverse outside intended directories
  • Use canonical path comparison by resolving both the base directory and target path to their canonical forms before checking containment
  • Apply input validation to reject paths containing suspicious patterns before they reach the normalization function
  • Consider using Java's Path.normalize() with Path.startsWith() for secure path validation as an alternative approach
bash
# Maven dependency update example
# Update pom.xml to use patched version:
# <dependency>
#     <groupId>commons-io</groupId>
#     <artifactId>commons-io</artifactId>
#     <version>2.7</version>
# </dependency>

# Verify current Commons IO version in your project
mvn dependency:tree | grep commons-io

# Force update to latest version
mvn versions:use-latest-versions -Dincludes=commons-io:commons-io

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechApache Commons Io

  • SeverityMEDIUM

  • CVSS Score4.8

  • EPSS Probability0.29%

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

  • CWE-22
  • Technical References
  • Zookeeper Notification Thread

  • Zookeeper Notification Update

  • Pulsar Commits Thread Update

  • Pulsar Commits Notification

  • Zookeeper Notification Update

  • Zookeeper Notifications Thread

  • Kafka Users Notification

  • MyFaces Dev Discussion

  • Creatur Dev Notification

  • Pluto SCM Update

  • Creatur Dev Update

  • Zookeeper Commits Notification

  • Zookeeper Notifications Update

  • Zookeeper Issue Notification

  • Creatur Dev Notification

  • Zookeeper Issues Notification

  • Creatur Dev Notification

  • Commons User Notification

  • Creatur Dev Discussion

  • Zookeeper Notification Update

  • Pulsar Commits Update

  • Zookeeper Issues Notification

  • Commons Dev Discussion

  • Zookeeper Notifications Update

  • Creatur Dev Update

  • Creatur Dev Update

  • Commons User Notification

  • Creatur Dev Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Creatur Dev Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Zookeeper Notifications Update

  • Creatur Dev Update

  • Zookeeper Dev Update

  • Commons Dev Update

  • Oracle CPU January 2022
  • Vendor Resources
  • Apache JIRA Issue IO-556

  • Creatur Dev Update

  • Debian LTS Announcement

  • NetApp Security Advisory

  • Oracle CPU April 2022
  • Related CVEs
  • CVE-2024-47554: Apache Commons IO CPU Exhaustion Flaw
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