Exploit database

Vulnerability

CVE-2021-42013

Vulnerability details

Score
9.8
Severity
critical

CVSS 3.1 · NVD

Vector string

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

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.

NVD

Exploit source choices

49 sources
Apache 2.4.49/2.4.50 Traversal RCE
MSF-multi--http--apache_normalize_path_rceMetasploitLinux,Unix / remote

This module exploit an unauthenticated RCE vulnerability which exists in Apache version 2.4.49 (CVE-2021-41773). If files outside of the document root are not protected by 'require all denied' and CGI has been explicitly enabled, it can be used to execute arbitrary commands (Remote Command Execution). This vulnerability has been reintroduced in Apache 2.4.50 fix (CVE-2021-42013).

2021-05-10apache_normalize_path_rce.rb
0xsyr0/oscp
GH-1e9613ea0d155c33d16520580dbed873GitHubUnofficial GitHub source

OSCP Cheat Sheet

2021-10-2262 files · 3,887 stars
clincat/vulcat
GH-a6bec4ad14291e9330f3f036dc243bf2GitHubUnofficial GitHub source

vulcat可用于扫描Web端常见的CVE、CNVD等编号的漏洞,发现漏洞时会返回Payload信息。部分漏洞还支持命令行交互模式,可以持续利用漏洞

2022-04-10228 files · 133 stars
arpsyndicate/kenzer-templates
GH-e5a0867366963da7a3617cf6f32fda4bGitHubUnofficial GitHub source

essential templates for kenzer [DEPRECATED]

2020-09-185,308 files · 118 stars
mrcl0wnlab/simplesapachepathtraversal
GH-007395a4db825154cd5fa7753c407e3dGitHubUnofficial GitHub source

Tool check: CVE-2021-41773, CVE-2021-42013, CVE-2020-17519

2021-10-1319 files · 61 stars
walnutsecurity/cve-2021-42013
GH-4652e9203fc48bd121dcc8662515b942GitHubUnofficial GitHub source

cve-2021-42013.py is a python script that will help in finding Path Traversal or Remote Code Execution vulnerability in Apache 2.4.50

2021-10-274 files · 30 stars
im-hanzou/apachrot
GH-d6a95b23f2f7ace38bc7da4f7d061327GitHubUnofficial GitHub source

Apache (Linux) CVE-2021-41773/2021-42013 Mass Vulnerability Checker

2021-10-094 files · 23 stars
ls4ss/cve-2021-41773_cve-2021-42013
GH-27baa299a479a69be227a6dccf02a6b9GitHubUnofficial GitHub source

Apache HTTP Server 2.4.49, 2.4.50 - Path Traversal & RCE

2021-10-063 files · 20 stars
ahur4/unsafe
GH-c84029b286afdbde6bf4211ce6a2c7deGitHubUnofficial GitHub source

Pentesting Module for python

2022-11-2691 files · 14 stars
zeop-cybersec/apache_normalize_path
GH-028e99ac6532137775fa0d8a6a5ba11cGitHubUnofficial GitHub source

Metasploit-Framework modules (scanner and exploit) for the CVE-2021-41773 and CVE-2021-42013 (Path Traversal in Apache 2.4.49/2.4.50)

2021-10-065 files · 11 stars
asaotomo/cve-2021-42013-apache-rce-poc-exp
GH-550e94d83d3771fce5b2ce7a79904d19GitHubUnofficial GitHub source

Apache 远程代码执行 (CVE-2021-42013)批量检测工具:Apache HTTP Server是美国阿帕奇(Apache)基金会的一款开源网页服务器。该服务器具有快速、可靠且可通过简单的API进行扩充的特点,发现 Apache HTTP Server 2.4.50 中针对 CVE-2021-41773 的修复不够充分。攻击者可以使用路径遍历攻击将 URL 映射到由类似别名的指令配置的目录之外的文件。如果这些目录之外的文件不受通常的默认配置“要求全部拒绝”的保护,则这些请求可能会成功。如果还为这些别名路径启用了 CGI 脚本,则这可能允许远程代码执行。此问题仅影响 Apache 2.4.49 和 Apache 2.4.50,而不影响更早版本。

2021-12-233 files · 10 stars
cvedb/awesome-cve-repo
GH-5d2d5bc79e38467342aae25328e8c9d0GitHubUnofficial GitHub source

cvedb/awesome-cve-repo source repository

2023-03-237 files · 9 stars
k3ystr0k3r/cve-2021-42013-exploit
GH-65e99cbcee8f84f4e3e8e72b6d4db046GitHubUnofficial GitHub source

A PoC exploit for CVE-2021-42013 - Apache 2.4.49 & 2.4.50 Remote Code Execution

2023-08-253 files · 7 stars
wvverez/cve-2021-42013
GH-9334d36b79cd58a0f4336a277f0b8813GitHubUnofficial GitHub source

PoC (Proof of concept) for CVE Apache v2.4.49, leveraging a Path Traversal vulnerability to achieve Remote Code Execution (RCE) via CGI and Reverse Shell function coded for python3

2026-11-212 files · 4 stars
bassonicolas/cve-2021-42013
GH-3e502eda24985034b7a8dbb0618599cfGitHubUnofficial GitHub source

CVE-2021-42013 Vulnerability Scanner This Python script checks for the Remote Code Execution (RCE) vulnerability (CVE-2021-42013) in Apache 2.4.50.

2024-04-072 files · 3 stars
davincico/chatgpt-2-hacker
GH-d616de35e3c653065349f090ab903968GitHubUnofficial GitHub source

All in one vulnerability scanning and pentest tool empowered with ChatGPT and autonomous LLM Agents

2024-08-2544 files · 3 stars
alpaykuzu/portscanner-cve-tool
GH-984b0b69a2e7ccb000f884b7fde9f449GitHubUnofficial GitHub source

Port scanning and CVE reporting tool made with .NET

2025-09-2316 files · 2 stars
cvedb/top
GH-2e626f612a2d87f79d1d9385117cfa16GitHubUnofficial GitHub source

cvedb/top source repository

2023-03-1911 files · 2 stars
thelastvvv/cve-2021-42013
GH-1472e5a71dc23fbbc673a26b09e0c893GitHubUnofficial GitHub source

Poc CVE-2021-42013 - Apache 2.4.50 without CGI

2021-10-232 files · 2 stars
twseptian/cve-2021-42013-docker-lab
GH-43a23e7b36360252fc8ce02d2793ae62GitHubUnofficial GitHub source

Docker container lab to play/learn with CVE-2021-42013

2021-10-1411 files · 2 stars
zyx2440/apache-http-server-2.4.50-rce
GH-4f09ef0f6cc6de7f8322db37ce851949GitHubUnofficial GitHub source

Apache-HTTP-Server-2.4.50-RCE This tool is designed to test Apache servers for the CVE-2021-41773 / CVE-2021-42013 vulnerability. It is intended for educational purposes only and should be used responsibly on systems you have explicit permission to test.

2024-08-267 files · 2 stars
amessedad/autoexploitgpt
GH-0b20328467a331502ad68f5d94d615d3GitHubUnofficial GitHub source

New Version of Autoexploit - No MIT License

2024-08-1914 files · 1 stars
bananoname/cve-2021-42013
GH-29a5875fa17ba04fcbec9497bfffcab0GitHubUnofficial GitHub source

bananoname/cve-2021-42013 source repository

2024-07-318 files · 1 stars
chalkingcode/exploitedducks
GH-ff522b402f0eaba45e9c70f86eb64638GitHubUnofficial GitHub source

A super simple Cisa KEV lookup CLI tool leveraging DuckDB

2024-07-024 files · 1 stars
corelight/cve-2021-41773
GH-6aec8d6181c434f0359ff2f92172df31GitHubUnofficial GitHub source

A Zeek package which raises notices for Path Traversal/RCE in Apache HTTP Server 2.4.49 (CVE-2021-41773) and 2.4.50 (CVE-2021-42013)

2021-10-0817 files · 1 stars
drackyjr/cve-2021-42013
GH-dbf1dba274bf514cf21fd9bacc6f919fGitHubUnofficial GitHub source

A comprehensive Python-based vulnerability scanner for detecting CVE-2021-41773 and CVE-2021-42013 path traversal and remote code execution vulnerabilities in Apache HTTP Server versions 2.4.49 and 2.4.50.

2025-11-192 files · 1 stars
jas9reet/cve-2021-42013-lab
GH-f97fbba6e4b630161910119c959a8cfdGitHubUnofficial GitHub source

Apache HTTP Server 2.4.50 - RCE Lab

2022-02-035 files · 1 stars
ksanchezcld/httpd-2.4.49
GH-e1af06f22d252ff5687f0ad6ba5b99a9GitHubUnofficial GitHub source

critical: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773) (CVE-2021-42013)

2021-10-122,641 files · 1 stars
mauricelambert/cve-2021-42013
GH-c5d4bddfae834cd67c5958a803a9ee15GitHubUnofficial GitHub source

These Nmap, Python and Ruby scripts detects and exploits CVE-2021-42013 with RCE and local file disclosure.

2022-03-088 files · 1 stars
robotsense1337/cve-2021-42013
GH-636574c70dcaf2d19aafa94fa7c03d89GitHubUnofficial GitHub source

Exploit Apache 2.4.50(CVE-2021-42013)

2021-11-032 files · 1 stars
0xgabe/apache-cves
GH-4c55e17b65916752ea9e19d889e16a8dGitHubUnofficial GitHub source

Exploit created in python3 to exploit known vulnerabilities in Apache web server (CVE-2021-41773, CVE-2021-42013)

2023-06-034 files · 0 stars
amazkun/vuln-report-normalizer
GH-e987ab3e4bf0b49879abb2441c68955aGitHubUnofficial GitHub source

A universal parser and normalizer for security scanner reports (GVM, Nessus, Nikto, ZAP, Burp, Nmap) into a unified MongoDB schema.

2025-08-2015 files · 0 stars
asepsaepdin/cve-2021-42013
GH-9946eadd2a06a2b712574c5079e64eadGitHubUnofficial GitHub source

asepsaepdin/cve-2021-42013 source repository

2025-01-304 files · 0 stars
berraesen/apache-cve-2021-42013-lab
GH-092ddccff2e245ae52f49a9dbfb3c314GitHubUnofficial GitHub source

Docker ortamında Apache HTTP Server 2.4.49 (CVE-2021-42013) zafiyetinin gösterildiği laboratuvar çalışması.

2026-07-203 files · 0 stars
cyberctf/vulhub-httpd-cve-2021-42013
GH-9be1f5841276b3d4d55bbba93cebeb3dGitHubUnofficial GitHub source

Vulhub httpd/CVE-2021-42013: Apache HTTP Server 2.4.50 Path Traversal and RCE (CVE-2021-42013), run with Isoloom

2026-10-0818 files · 0 stars
d4n-sec/d4n-sec.github.io
GH-a977c770ad0cb70a8725a440ce0aeba7GitHubUnofficial GitHub source

Generated personal blog

2026-11-06385 files · 0 stars
danryafuz/cs564_project
GH-f51db9abc1acc3f3958abcefee2f21b2GitHubUnofficial GitHub source

Project for 564

2025-02-2017 files · 0 stars