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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache HTTP Server | Apache HTTP Server 2.4 2.4.49 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | apache2 | 2.4.50-1 | — |
| Debian 13 | apache2 | 2.4.50-1 | — |
| Debian 12 | apache2 | 2.4.50-1 | — |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | apache2 | 2.4.51-1.1 | openSUSE-SU-2024:11560-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | apache2 | 2.4.50-r0 | — |
| Alpine v3.23 | apache2 | 2.4.50-r0 | — |
| Alpine v3.22 | apache2 | 2.4.50-r0 | — |
| Alpine v3.21 | apache2 | 2.4.50-r0 | — |
| Alpine v3.20 | apache2 | 2.4.50-r0 | — |
Show 9 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | apache2 | 2.4.50-r0 | — |
| Alpine v3.18 | apache2 | 2.4.50-r0 | — |
| Alpine v3.17 | apache2 | 2.4.50-r0 | — |
| Alpine v3.16 | apache2 | 2.4.50-r0 | — |
| Alpine v3.15 | apache2 | 2.4.50-r0 | — |
| Alpine v3.14 | apache2 | 2.4.50-r0 | — |
| Alpine v3.13 | apache2 | 2.4.50-r0 | — |
| Alpine v3.12 | apache2 | 2.4.50-r0 | — |
| Alpine v3.11 | apache2 | 2.4.50-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | httpd +7 | 2.4.51-1.amzn2 | ALAS2-2021-1716 |
| Amazon Linux 2 | mod_ssl +1 | 1:2.4.51-1.amzn2 | ALAS2-2021-1716 |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Metasploit 2 modules
-
Apache 2.4.49/2.4.50 Traversal RCE scanner
auxiliary/scanner/http/apache_normalize_path
-
Apache 2.4.49/2.4.50 Traversal RCE
exploit/multi/http/apache_normalize_path_rce
Exploit-DB 2
- Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (3) EDB-50512 · webapps · Nov 11, 2021 · verified
- Apache HTTP Server 2.4.49 - Path Traversal & Remote Code Execution (RCE) EDB-50383 · webapps · Oct 6, 2021 · verified
GitHub 175 repositories · most starred shown
-
blasty/CVE-2021-41773 ★ 211 · Oct 6, 2021
CVE-2021-41773 playground
-
inbug-team/CVE-2021-41773_CVE-2021-42013 ★ 147 · Oct 9, 2021
CVE-2021-41773 CVE-2021-42013漏洞批量检测工具
-
thehackersbrain/CVE-2021-41773 ★ 113 · Mar 12, 2022
Apache2 2.4.49 - LFI & RCE Exploit - CVE-2021-41773
-
HightechSec/scarce-apache2 ★ 62 · Oct 7, 2021
A framework for bug hunting or pentesting targeting websites that have CVE-2021-41773 Vulnerability in public
-
MrCl0wnLab/SimplesApachePathTraversal ★ 61 · Oct 13, 2021
Tool check: CVE-2021-41773, CVE-2021-42013, CVE-2020-17519
-
iilegacyyii/PoC-CVE-2021-41773 ★ 52 · Oct 5, 2021
-
lorddemon/CVE-2021-41773-PoC ★ 39 · Oct 5, 2021
-
Vulnmachines/cve-2021-41773 ★ 38 · Oct 5, 2021
CVE-2021-41773 Path Traversal vulnerability in Apache 2.4.49.
-
justakazh/mass_cve-2021-41773 ★ 29 · Oct 7, 2021
MASS CVE-2021-41773
-
BlueTeamSteve/CVE-2021-41773 ★ 23 · Oct 6, 2021
Vulnerable docker images for CVE-2021-41773
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- Apache 2.4.49 - Path Traversal and Remote Code Execution http/cves/2021/CVE-2021-41773.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Advisories 3
- openSUSE-SU-2024:11560-1 apache2-2.4.51-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2024-1591 Juniper JUNOS: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2024
- ALAS2-2021-1716 Important: httpd security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 15, 2021
References
- https://httpd.apache.org/security/vulnerabilities_24.html
- [httpd-users] 20211005 [users@httpd] CVE-2021-41773: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49 mailing-list
- [announce] 20211005 CVE-2021-41773: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49 mailing-list
- [oss-security] 20211005 CVE-2021-41773: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49 mailing-list
- [oss-security] 20211007 RE: CVE-2021-41773: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49 mailing-list
- [announce] 20211007 CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [httpd-users] 20211007 [users@httpd] CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211007 CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- 20211007 Apache HTTP Server Vulnerabilties: October 2021 vendor-advisory
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [httpd-cvs] 20211008 [httpd-site] branch main updated: * Align with CVE-2021-42013 based on the latest findings mailing-list
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211008 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211009 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- http://packetstormsecurity.com/files/164418/Apache-HTTP-Server-2.4.49-Path-Traversal.html
- http://packetstormsecurity.com/files/164418/Apache-HTTP-Server-2.4.49-Path-Traversal-Remote-Code-Execution.html
- [oss-security] 20211011 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- FEDORA-2021-2a10bc68a4 vendor-advisory
- FEDORA-2021-aaf90ef84a vendor-advisory
- [oss-security] 20211015 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- [oss-security] 20211016 Re: CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) mailing-list
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://security.netapp.com/advisory/ntap-20211029-0009/
- http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html
- http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
- GLSA-202208-20 vendor-advisory