← Vulnerability feed

Vulnerability record · CVE-2021-41773 · published 5 October 2021

CVE-2021-41773: Apache HTTP Server 2.4.49 path traversal and RCE

Apache · Http Server

A path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like directives. If those paths lack the default 'require all denied' protection, file reads succeed, and with CGI enabled on aliased paths this escalates to remote code execution. Only 2.4.49 is affected; the 2.4.50 fix was incomplete (see CVE-2021-42013).

9.8 CVSS 3.1 Critical CISA KEV since 3 Nov 2021 Known ransomware use EPSS 100% · top 0.1% CWE-22 · Path traversal
9.8CVSS 3.1 base score, v2 4.3
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
4Affected product versions listed by NVD
59References, 12 tagged exploit
17 Jun 2026Last modified by NVD

Description

A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. An attacker could use a path traversal attack to map URLs to files outside the directories configured by Alias-like directives. If files outside of these directories are not protected by the usual default configuration "require all denied", these requests can succeed. If CGI scripts are also enabled for these aliased pathes, this could allow for remote code execution. This issue is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityCVSS 9.8, confirmed in-the-wild exploitation, CISA KEV listing with ransomware association, and near-maximum EPSS make this an urgent patch-first issue.

What it is

A path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like directives. If those paths lack the default 'require all denied' protection, file reads succeed, and with CGI enabled on aliased paths this escalates to remote code execution. Only 2.4.49 is affected; the 2.4.50 fix was incomplete (see CVE-2021-42013).

Impact

An unauthenticated attacker can read files outside the web root and, where CGI is enabled on aliased paths, execute arbitrary code on the server. This yields full compromise of confidentiality, integrity and availability.

Attack surface

Reached over the network via crafted HTTP requests to a vulnerable server; no authentication and no user interaction are required per the CVSS vector (AV:N/AC:L/PR:N/UI:N). Exploitation depends on server configuration: aliased paths not protected by 'require all denied', and CGI enabled for code execution.

Exploitation

Exploited in the wild: CISA KEV lists it with a 2021-11-17 remediation due date and flags known ransomware campaign use, and EPSS is near maximum (0.99992). Multiple references are tagged Exploit, including public remote code execution proof-of-concepts.

What to do

  • Upgrade Apache HTTP Server to 2.4.51 or later, which addresses both CVE-2021-41773 and the incomplete 2.4.50 fix (CVE-2021-42013).
  • If immediate upgrade is not possible, ensure all Alias-like directories are covered by 'require all denied' so traversal requests fail.
  • Disable CGI execution on aliased paths unless strictly required.
  • Apply vendor updates for downstream packages (Fedora, Oracle, NetApp) that bundle the affected server.
  • Audit exposed Apache 2.4.49 instances and treat any as compromised pending log review.

Detection

  • Search web access logs for encoded traversal sequences such as %2e%2e%2f, .%2e/, or /cgi-bin/ requests targeting paths outside the web root.
  • Alert on requests returning 200 for paths containing dot-dot segments or unusual absolute paths.
  • Monitor for unexpected outbound connections or child processes spawned by the httpd user, indicating CGI-based code execution.
  • Inventory servers still running Apache 2.4.49 and flag them for immediate remediation.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-41773 to the Known Exploited Vulnerabilities catalog on 3 November 2021 as "Apache HTTP Server Path Traversal Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 17 November 2021.

Affected products

4 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://packetstormsecurity.com/files/164418/Apache-HTTP-Server-2.4.49-Path-Traversal-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164418/Apache-HTTP-Server-2.4.49-Path-Traversal.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2021/10/05/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/1 ExploitMailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/3 ExploitMailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/4 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/5 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/09/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/11/4 Mailing ListPatchThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/15/3 Mailing ListPatchThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/16/1 Mailing ListThird Party Advisory
https://httpd.apache.org/security/vulnerabilities_24.html Release NotesVendor Advisory
https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/r6abf5f2ba6f1aa8b1030f95367aaf17660c4e4c78cb2338aee18982f%40%3Cusers.httpd.apache.o Mailing List
https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org% Mailing List
https://lists.apache.org/thread.html/r98d704ed4377ed889d40479db79ed1ee2f43b2ebdd79ce84b042df45%40%3Cannounce.apache.org% Mailing List
https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.o Mailing List
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMIIEFINL6FUIOPD2A3M5XC Release Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WS5RVHOIIRECG65ZBTZY7IE Release Notes
https://security.gentoo.org/glsa/202208-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211029-0009/ Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZ Third Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
http://packetstormsecurity.com/files/164418/Apache-HTTP-Server-2.4.49-Path-Traversal-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164418/Apache-HTTP-Server-2.4.49-Path-Traversal.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2021/10/05/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/07/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/1 ExploitMailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/3 ExploitMailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/4 Mailing ListThird Party Advisory

Track CVE-2021-41773 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-42013Apache HTTP Server path traversal and RCE via incomplete fixThe fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2020-16846SaltStack Salt API shell injection via crafted web requestsSaltStack Salt through 3002 is vulnerable to OS command injection when the SSH client is enabled and crafted web requests are sent to the Salt API. T…KEVEPSS 100%analysed9.8CVE-2020-1938Apache Tomcat AJP connector file read and JSP execution flawApache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more tru…KEVEPSS 99%analysed

Source: NIST National Vulnerability Database (record CVE-2021-41773), CISA KEV, FIRST EPSS (scores of 2026-09-24). This page is refreshed as NVD updates the record.