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)
Basic Information
- CVE State
- PUBLISHED
- Reserved Date
- October 06, 2021
- Published Date
- October 07, 2021
- Last Updated
- February 04, 2025
- Vendor
- Apache Software Foundation
- Product
- Apache HTTP Server
- Description
- It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. 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 only affects Apache 2.4.49 and Apache 2.4.50 and not earlier versions.
CVSS Scores
SSVC Information
- Exploitation
- active
- Automatable
- Yes
- Technical Impact
- total
References
Known Exploited Vulnerability Information
Source | Added Date |
---|---|
CISA | 2021-11-03 00:00:00 UTC |
Scanner Integrations
Scanner | URL | Date Detected |
---|---|---|
Metasploit | https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/apache_normalize_path_rce.rb | 2025-04-29 11:01:20 UTC |
Nuclei | https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-42013.yaml | 2025-04-26 00:00:00 UTC |
Potential Proof of Concepts
Warning: These PoCs have not been tested and could contain malware. Use at your own risk.
apache_normalize_path_rce
Type: metasploit • Created: Unknown
BassoNicolas/CVE-2021-42013
Type: github • Created: 2024-04-07 16:04:06 UTC • Stars: 3
K3ysTr0K3R/CVE-2021-42013-EXPLOIT
Type: github • Created: 2023-08-25 19:51:01 UTC • Stars: 2
asaotomo/CVE-2021-42013-Apache-RCE-Poc-Exp
Type: github • Created: 2021-12-23 14:46:41 UTC • Stars: 10
robotsense1337/CVE-2021-42013
Type: github • Created: 2021-11-03 17:33:52 UTC • Stars: 1
TheLastVvV/CVE-2021-42013_Reverse-Shell
Type: github • Created: 2021-10-24 12:57:55 UTC • Stars: 7
TheLastVvV/CVE-2021-42013
Type: github • Created: 2021-10-23 21:58:44 UTC • Stars: 2
andrea-mattioli/apache-exploit-CVE-2021-42013
Type: github • Created: 2021-10-07 18:31:29 UTC • Stars: 9