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

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

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

Published: March 4, 2026

CVE-2021-41773 Overview

CVE-2021-41773 is a path traversal vulnerability in Apache HTTP Server 2.4.49 that allows attackers to map URLs to files outside directories configured by Alias-like directives. This flaw stems from a change made to path normalization in Apache HTTP Server 2.4.49. When files outside of configured directories are not protected by the default "require all denied" configuration, attackers can successfully access sensitive files. More critically, if CGI scripts are enabled for these aliased paths, the vulnerability escalates to remote code execution (RCE).

This vulnerability is actively exploited in the wild and has been added to the CISA Known Exploited Vulnerabilities (KEV) catalog, indicating confirmed malicious exploitation. It is important to note that the initial fix in Apache HTTP Server 2.4.50 was found to be incomplete, leading to the identification of a related vulnerability, CVE-2021-42013.

Critical Impact

This vulnerability enables unauthenticated remote attackers to read arbitrary files and potentially achieve remote code execution on vulnerable Apache HTTP Server 2.4.49 instances when CGI is enabled.

Affected Products

  • Apache HTTP Server 2.4.49
  • Fedora 34 and 35 (via httpd package)
  • Oracle Instantis EnterpriseTrack 17.1, 17.2, and 17.3
  • NetApp Cloud Backup

Discovery Timeline

  • 2021-10-05 - CVE-2021-41773 published to NVD
  • 2026-02-17 - Last updated in NVD database

Technical Details for CVE-2021-41773

Vulnerability Analysis

The vulnerability resides in the path normalization code introduced in Apache HTTP Server version 2.4.49. The flawed normalization logic fails to properly sanitize URL-encoded path traversal sequences, specifically the dot-dot-slash (../) pattern when URL-encoded as .%2e/ or %2e%2e/. This improper validation allows attackers to escape the document root and access files anywhere on the filesystem that the Apache process has read permissions for.

The attack surface significantly expands when the server has CGI scripts enabled (mod_cgi or mod_cgid). In such configurations, attackers can not only read arbitrary files but also execute arbitrary commands on the server by invoking executables like /bin/sh through the path traversal technique.

Root Cause

The root cause is classified as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory), commonly known as path traversal. The vulnerability was introduced during changes to the ap_normalize_path() function in Apache 2.4.49. The updated normalization logic incorrectly handles certain URL-encoded representations of the path traversal sequence, allowing encoded dots to bypass directory restrictions.

Specifically, the code failed to properly decode and validate sequences where the dot characters were URL-encoded before the normalization check occurred. This created a window where malicious paths could pass validation but still resolve to locations outside the intended directory structure when the server processed the request.

Attack Vector

The attack is executed remotely over the network without requiring any authentication or user interaction. Attackers craft HTTP requests containing specially encoded path traversal sequences to access files outside the web root directory.

For file disclosure, an attacker sends a GET request with a path like /cgi-bin/.%2e/.%2e/.%2e/.%2e/etc/passwd to read the system password file. The double-dot sequences, when URL-encoded with .%2e, bypass the path normalization checks.

For remote code execution, when CGI is enabled, attackers can execute commands by targeting scripts like /bin/sh. A request to /cgi-bin/.%2e/.%2e/.%2e/.%2e/bin/sh with a POST body containing the command to execute allows arbitrary command execution on the server. Technical details and proof-of-concept examples are available in the Packet Storm Apache RCE Exploit publication.

Detection Methods for CVE-2021-41773

Indicators of Compromise

  • HTTP request logs containing URL-encoded path traversal sequences such as .%2e/, %2e%2e/, or %2e./ in the URI path
  • Access attempts to sensitive system files like /etc/passwd, /etc/shadow, or application configuration files
  • Requests targeting /cgi-bin/ paths with traversal sequences attempting to reach /bin/sh, /bin/bash, or other executables
  • Unusual POST requests to paths containing traversal sequences with command-like data in the request body

Detection Strategies

  • Deploy web application firewall (WAF) rules to detect and block URL-encoded path traversal patterns including .%2e, %2e%2e, and %2e. sequences
  • Implement intrusion detection system (IDS) signatures for Apache path traversal exploitation attempts targeting version 2.4.49
  • Monitor Apache access logs for 200 status codes on requests containing double-dot sequences accessing non-web directories
  • Correlate web server logs with process execution monitoring to detect CGI-based command execution following traversal attempts

Monitoring Recommendations

  • Enable detailed access logging in Apache with full URI request logging to capture encoded characters
  • Monitor for anomalous file access patterns on the web server, particularly reads of system configuration files
  • Implement real-time alerting for any successful (HTTP 200) responses to requests containing path traversal patterns
  • Review process creation logs for unexpected child processes spawned by the Apache httpd worker processes

How to Mitigate CVE-2021-41773

Immediate Actions Required

  • Upgrade Apache HTTP Server to version 2.4.51 or later immediately, as the 2.4.50 patch was found to be incomplete
  • If immediate patching is not possible, disable CGI functionality by removing or commenting out LoadModule cgi_module and LoadModule cgid_module directives
  • Ensure all directories outside the web root are protected with Require all denied directives in the Apache configuration
  • Review firewall and WAF configurations to block requests containing URL-encoded traversal sequences

Patch Information

Apache has released version 2.4.51 which fully addresses this vulnerability. The fix in version 2.4.50 was found to be incomplete and was subsequently addressed by CVE-2021-42013. Organizations should upgrade directly to version 2.4.51 or later to ensure complete remediation.

Patch information is available from the Apache HTTP Server Security Vulnerabilities page. Additional security guidance has been published by Oracle, Cisco, and NetApp for their respective affected products.

Workarounds

  • Configure explicit Require all denied directives for all directory locations outside the intended web root to block unauthorized access
  • Disable CGI script execution by removing mod_cgi and mod_cgid modules if not required for application functionality
  • Implement network segmentation to limit exposure of Apache servers and restrict access to trusted networks only
  • Deploy reverse proxy or WAF in front of Apache servers with rules blocking encoded path traversal patterns
bash
# Apache configuration hardening example
# Add to httpd.conf or apache2.conf to restrict directory access

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

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

# Disable CGI if not needed
# Comment out these lines in httpd.conf:
# 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.39%

  • Known ExploitedYes
  • 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
  • Packet Storm Apache RCE Exploit

  • Packet Storm Apache Path Traversal

  • Packet Storm Apache RCE for 2.4.50

  • Packet Storm Apache 2.4.50 RCE

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Openwall OSS-Security List Update

  • Apache Mailing List Update

  • Apache Mailing List Announcement

  • Apache Mailing List Update

  • Fedora Package Announcement

  • Fedora Package Announcement

  • Gentoo GLSA 202208-20

  • NetApp Security Advisory

  • Cisco Security Advisory for Apache

  • Oracle Security Alert January 2022

  • CISA Known Exploited Vulnerabilities Catalog

  • Cisa
  • Vendor Resources
  • Openwall OSS-Security List Update

  • Apache HTTP Vulnerabilities List

  • Apache Mailing List Update

  • Apache Mailing List Announcement

  • Oracle
  • Related CVEs
  • CVE-2021-42013: 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