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

CVE-2021-42013: Apache HTTP Server Path Traversal Flaw

CVE-2021-42013 is a path traversal vulnerability in Apache HTTP Server 2.4.49 and 2.4.50 that allows attackers to access files outside configured directories and potentially execute remote code. This article covers technical details, affected versions, impact analysis, and mitigation strategies.

Published: March 4, 2026

CVE-2021-42013 Overview

CVE-2021-42013 is a critical path traversal vulnerability in Apache HTTP Server that was introduced as an incomplete fix for the earlier CVE-2021-41773 vulnerability. The flaw allows attackers to craft malicious URLs that bypass the intended directory restrictions, enabling access to files outside of directories configured by Alias-like directives. When combined with enabled CGI scripts on the affected paths, this vulnerability escalates to remote code execution, giving attackers complete control over the vulnerable server.

This vulnerability is particularly dangerous because it affects servers that were patched for CVE-2021-41773 with version 2.4.50, meaning administrators who believed they were protected remained vulnerable. The attack requires no authentication and can be executed remotely over the network, making it highly attractive to threat actors.

Critical Impact

This vulnerability is actively exploited in the wild and is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. It allows unauthenticated remote code execution on vulnerable Apache HTTP Server instances versions 2.4.49 and 2.4.50.

Affected Products

  • Apache HTTP Server 2.4.49
  • Apache HTTP Server 2.4.50
  • Fedora 34 and 35 (with vulnerable Apache packages)
  • Oracle Instantis EnterpriseTrack 17.1, 17.2, 17.3
  • Oracle JD Edwards EnterpriseOne Tools
  • Oracle Secure Backup
  • NetApp Cloud Backup

Discovery Timeline

  • 2021-10-07 - CVE-2021-42013 published to NVD
  • 2025-10-27 - Last updated in NVD database

Technical Details for CVE-2021-42013

Vulnerability Analysis

The vulnerability stems from an insufficient fix for CVE-2021-41773, where the path normalization routine in Apache HTTP Server failed to properly handle double-URL-encoded path traversal sequences. While the original fix addressed single-encoded traversal attempts (e.g., %2e%2e), it did not account for double-encoded variants that bypass the initial decoding pass.

The path traversal mechanism allows attackers to escape the web root directory and access arbitrary files on the system. When the server has mod_cgi enabled and the traversed path allows CGI execution, attackers can leverage this to execute arbitrary commands on the underlying operating system. This vulnerability requires no privileges and can be exploited by any network-accessible client.

The impact of successful exploitation includes unauthorized file access, data exfiltration, and in the worst case, full system compromise through remote code execution. Organizations running vulnerable versions should consider this an emergency patching priority.

Root Cause

The root cause is inadequate input validation in the URL path normalization routine. The fix for CVE-2021-41773 only decoded and validated paths at a single level, failing to recursively decode or detect double-encoded traversal sequences. Attackers discovered that encoding the path separator and dot characters twice (e.g., .%%32%65/ instead of ../) would bypass the first decoding pass and be decoded to a traversal sequence on the second pass, after validation had already occurred.

The server's Alias directive processing trusted the normalized path without verifying that subsequent decoding wouldn't produce path traversal sequences. This represents a classic case of insufficient defense-in-depth in path canonicalization.

Attack Vector

The attack is conducted remotely over the network without requiring authentication. An attacker sends an HTTP request with a specially crafted URL containing double-URL-encoded path traversal sequences targeting the /cgi-bin directory or other aliased paths.

The attack flow operates as follows: The attacker identifies a vulnerable Apache server running version 2.4.49 or 2.4.50. They then craft a request with double-encoded traversal sequences such as .%%32%65/ to escape the document root. If directory protections are misconfigured (lacking require all denied), they can read arbitrary files. If CGI is enabled on the traversed path, they can achieve command execution by targeting the cgi-bin handler with shell commands passed via POST data or query parameters.

The exploitation is straightforward and requires minimal skill, with multiple public proof-of-concept exploits available. The Packet Storm Exploit Archive contains several working examples demonstrating both file read and RCE variants.

Detection Methods for CVE-2021-42013

Indicators of Compromise

  • HTTP access logs containing double-URL-encoded sequences such as .%%32%65, .%%32e, or %%2e%2e in request URIs
  • Requests targeting /cgi-bin/ paths with unusual traversal patterns attempting to access /bin/sh, /bin/bash, or other system binaries
  • POST requests to CGI handlers containing shell metacharacters or command execution patterns
  • Evidence of file access outside the web document root in server error logs
  • Unusual process spawning from the Apache httpd parent process

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect and block double-URL-encoded path traversal sequences in HTTP requests
  • Implement log analysis to identify requests containing suspicious encoded patterns such as %25, %%32, and %%65 combinations
  • Monitor for unexpected child processes spawned by the Apache httpd process, particularly shell interpreters
  • Use SentinelOne Singularity to detect behavioral indicators of post-exploitation activity including reverse shells and lateral movement

Monitoring Recommendations

  • Enable verbose Apache access logging and retain logs for forensic analysis with focus on request URIs and response codes
  • Configure alerts for any 200 OK responses to requests containing encoded traversal sequences
  • Monitor network traffic for outbound connections from the web server to unusual destinations which may indicate reverse shell activity
  • Implement file integrity monitoring on critical system directories that should not be accessible via the web server

How to Mitigate CVE-2021-42013

Immediate Actions Required

  • Upgrade Apache HTTP Server immediately to version 2.4.51 or later which contains the complete fix for both CVE-2021-41773 and CVE-2021-42013
  • Verify that the default require all denied configuration is applied to all directories outside the intended web root
  • Disable CGI execution if not required for business operations to reduce the attack surface
  • Deploy WAF rules to block double-encoded path traversal attempts as an additional defense layer
  • Review Apache access logs for indicators of compromise before assuming the system is clean

Patch Information

Apache released version 2.4.51 to address this vulnerability. The fix properly handles all URL encoding variants during path normalization, preventing both single and double-encoded traversal attempts. Administrators should update immediately using their distribution's package manager or by downloading from the Apache HTTP Server Security Advisories page.

Multiple vendor-specific patches are available including Oracle's Critical Patch Update from January 2022 and Oracle's April 2022 CPU for affected Oracle products. The NetApp Security Advisory provides guidance for NetApp Cloud Backup users.

Workarounds

  • Apply strict require all denied directives to all directories outside the document root in your Apache configuration
  • Disable mod_cgi and mod_cgid modules if CGI functionality is not required for your application
  • Implement network-level access controls to restrict access to the Apache server from untrusted networks
  • Deploy a reverse proxy or WAF in front of Apache to filter malicious requests before they reach the vulnerable server
  • Consider running Apache in a containerized or chroot environment to limit the impact of successful exploitation
bash
# Apache configuration hardening example
# Add to httpd.conf or apache2.conf

# Deny access to the entire filesystem by default
<Directory />
    Require all denied
</Directory>

# Only allow access to the specific document root
<Directory "/var/www/html">
    Require all granted
</Directory>

# Disable CGI if not needed
# Comment out or remove these lines:
# LoadModule cgi_module modules/mod_cgi.so
# LoadModule cgid_module modules/mod_cgid.so

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

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability94.41%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CISA KEV Information
  • In CISA KEVYes
  • CWE References
  • CWE-22
  • Technical References
  • JVN Security Advisory

  • Packet Storm Exploit Code

  • Packet Storm Remote Code Execution

  • Packet Storm RCE Path Traversal

  • Packet Storm Remote Code Execution

  • Packet Storm CVE-2021-42013 Exploit

  • Packet Storm Remote Code Execution

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Openwall OSS-Security Discussion

  • Apache Announce Thread

  • Apache Users Thread

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA Advisory

  • NetApp Security Advisory

  • Cisco Security Advisory

  • Povilaika Apache 2.4.50 Exploit

  • CISA Known Exploited Vulnerabilities
  • Vendor Resources
  • Apache Security Vulnerabilities

  • Apache Announce Thread

  • Oracle CPU April 2022

  • Oracle CPU January 2022
  • Related CVEs
  • CVE-2021-41773: Apache HTTP Server Path Traversal Flaw

  • CVE-2026-3234: mod_proxy_cluster Auth Bypass Vulnerability

  • CVE-2025-40931: Apache::Session::Generate::MD5 Auth Bypass

  • CVE-2025-40932: Apache::SessionX Auth Bypass 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