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.
CVE-2021-42013
Score elevated to 9.8 because this CVE is listed on the CISA Known Exploited Vulnerabilities catalog (added 2021-11-03), indicating real-world exploitation has been confirmed by US federal agencies. NVD baseline CVSS 9.8 retained for reference. Confidence: HIGH.
- 1 internet-exposed host is running an affected version right now
- Actively exploited in the wild (CISA-KEV)
- Linked to ransomware campaigns
No vendor fix yet — apply a workaround or compensating control (WAF / firewall / segmentation) and watch for a patch.
1 internet-exposed host is running an affected version of CVE-2021-42013 right now.
EchelonGraph is the only CVE feed that fuses live vulnerability intelligence with its own live internet-exposure radar — so you see not just that a CVE is exploited, but how much of the internet is exposed to it right now.
- CVSS v3
- 9.8
- EG Score
- 9.8(high)
- EG Risk
- 99(Act)EG Risk 99/100SSVC: Act
EG Risk is EchelonGraph's 0–100 priority score: it fuses intrinsic severity with real-world exploitation and automatability so you can rank equal-severity CVEs and fix the most dangerous first. Higher = act sooner. Distinct from the 0–10 EG Score (severity).
How it’s computedSeverity98% × 45%Exploitation100% × 40%Automatability100% × 15%Action: Fix now — active exploitation, automatable, high impact. - EPSS
- 100.0%
- KEV
- ⚠ Exploited
Published
October 7, 2021
Last Modified
October 27, 2025
Advisory Details (4)
Auto-updated Jun 1, 2026oss-security - 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)
http://www.openwall.com/lists/oss-security/2021/10/08/2oss-security - 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)
http://www.openwall.com/lists/oss-security/2021/10/08/1oss-security - 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)
http://www.openwall.com/lists/oss-security/2021/10/07/6JVN#51106450: Apache HTTP Server vulnerable to directory traversal
http://jvn.jp/en/jp/JVN51106450/index.htmlWeakness Classification(1)
MITRE Common Weakness Enumeration — the root-cause categories this CVE belongs to.
Data Freshness Timeline
(refreshed 31× in last 7d / 177× in last 30d)
Each row is a source pipeline that fetched or updated this CVE on that date, with what changed. For example, "NVD update" means NVD published or revised its analysis for this CVE; "MITRE cvelistV5" means we ingested or refreshed it from the CNA feed. Most recent first.
Showing the most recent 100 of 343 total refreshes for this CVE.
- 2026-07-24 14:15 UTCEPSS rescore
- 2026-07-23 02:04 UTCEG score recompute
- 2026-07-22 22:51 UTCEG score recompute
- 2026-07-22 20:29 UTCGHSA enrichment
- 2026-07-22 19:40 UTCCISA KEV update
- 2026-07-22 16:23 UTCGHSA enrichment
- 2026-07-22 12:16 UTCGHSA enrichment
- 2026-07-22 08:10 UTCGHSA enrichment
- 2026-07-22 04:03 UTCGHSA enrichment
- 2026-07-21 23:57 UTCGHSA enrichment
- 2026-07-21 18:45 UTCGHSA enrichment
- 2026-07-21 14:37 UTCGHSA enrichment
- 2026-07-21 14:37 UTCCISA KEV update
- 2026-07-21 10:31 UTCGHSA enrichment
- 2026-07-21 06:24 UTCGHSA enrichment
- 2026-07-21 02:17 UTCGHSA enrichment
- 2026-07-20 22:11 UTCGHSA enrichment
- 2026-07-20 18:04 UTCGHSA enrichment
- 2026-07-20 13:56 UTCGHSA enrichment
- 2026-07-20 09:50 UTCGHSA enrichment
- 2026-07-20 05:44 UTCGHSA enrichment
- 2026-07-20 01:38 UTCGHSA enrichment
- 2026-07-19 21:31 UTCGHSA enrichment
- 2026-07-19 17:25 UTCGHSA enrichment
- 2026-07-19 13:19 UTCGHSA enrichment
Show 75 moreShow fewer
- 2026-07-19 09:13 UTCGHSA enrichment
- 2026-07-19 05:06 UTCGHSA enrichment
- 2026-07-19 01:00 UTCGHSA enrichment
- 2026-07-18 20:54 UTCGHSA enrichment
- 2026-07-18 16:47 UTCGHSA enrichment
- 2026-07-18 12:40 UTCGHSA enrichment
- 2026-07-18 08:32 UTCGHSA enrichment
- 2026-07-18 04:26 UTCGHSA enrichment
- 2026-07-18 00:19 UTCGHSA enrichment
- 2026-07-17 20:11 UTCGHSA enrichment
- 2026-07-17 16:05 UTCGHSA enrichment
- 2026-07-17 11:58 UTCGHSA enrichment
- 2026-07-17 07:51 UTCEG score recompute
- 2026-07-17 07:51 UTCGHSA enrichment
- 2026-07-17 03:45 UTCGHSA enrichment
- 2026-07-16 23:38 UTCGHSA enrichment
- 2026-07-16 19:32 UTCGHSA enrichment
- 2026-07-16 17:04 UTCCISA KEV update
- 2026-07-16 15:25 UTCGHSA enrichment
- 2026-07-16 11:15 UTCGHSA enrichment
- 2026-07-16 07:09 UTCGHSA enrichment
- 2026-07-16 03:03 UTCGHSA enrichment
- 2026-07-15 22:57 UTCGHSA enrichment
- 2026-07-15 18:51 UTCGHSA enrichment
- 2026-07-15 16:49 UTCCISA KEV update
- 2026-07-15 15:04 UTCCISA KEV update
- 2026-07-15 14:45 UTCGHSA enrichment
- 2026-07-15 10:39 UTCGHSA enrichment
- 2026-07-15 06:32 UTCGHSA enrichment
- 2026-07-15 02:26 UTCGHSA enrichment
- 2026-07-14 22:20 UTCGHSA enrichment
- 2026-07-14 18:14 UTCGHSA enrichment
- 2026-07-14 18:05 UTCCISA KEV update
- 2026-07-14 14:08 UTCGHSA enrichment
- 2026-07-14 10:01 UTCGHSA enrichment
- 2026-07-14 05:54 UTCGHSA enrichment
- 2026-07-14 01:47 UTCGHSA enrichment
- 2026-07-13 21:41 UTCGHSA enrichment
- 2026-07-13 17:35 UTCGHSA enrichment
- 2026-07-13 17:07 UTCCISA KEV update
- 2026-07-13 13:29 UTCGHSA enrichment
- 2026-07-13 09:23 UTCGHSA enrichment
- 2026-07-13 05:16 UTCGHSA enrichment
- 2026-07-13 01:10 UTCGHSA enrichment
- 2026-07-12 21:03 UTCGHSA enrichment
- 2026-07-12 16:56 UTCGHSA enrichment
- 2026-07-12 12:50 UTCGHSA enrichment
- 2026-07-12 08:43 UTCGHSA enrichment
- 2026-07-12 04:37 UTCGHSA enrichment
- 2026-07-12 00:30 UTCGHSA enrichment
- 2026-07-11 20:24 UTCGHSA enrichment
- 2026-07-11 16:18 UTCGHSA enrichment
- 2026-07-11 12:12 UTCGHSA enrichment
- 2026-07-11 08:06 UTCGHSA enrichment
- 2026-07-11 04:00 UTCGHSA enrichment
- 2026-07-10 23:54 UTCGHSA enrichment
- 2026-07-10 19:48 UTCGHSA enrichment
- 2026-07-10 17:52 UTCCISA KEV update
- 2026-07-10 15:41 UTCGHSA enrichment
- 2026-07-10 11:34 UTCGHSA enrichment
- 2026-07-10 07:24 UTCGHSA enrichment
- 2026-07-10 03:18 UTCGHSA enrichment
- 2026-07-09 23:11 UTCGHSA enrichment
- 2026-07-09 19:04 UTCGHSA enrichment
- 2026-07-09 14:56 UTCGHSA enrichment
- 2026-07-09 10:49 UTCGHSA enrichment
- 2026-07-09 06:42 UTCGHSA enrichment
- 2026-07-09 02:36 UTCGHSA enrichment
- 2026-07-08 22:28 UTCGHSA enrichment
- 2026-07-08 18:21 UTCGHSA enrichment
- 2026-07-08 14:14 UTCGHSA enrichment
- 2026-07-08 10:06 UTCGHSA enrichment
- 2026-07-08 06:00 UTCGHSA enrichment
- 2026-07-08 01:54 UTCGHSA enrichment
- 2026-07-07 21:48 UTCGHSA enrichment
Publicly available exploits
(10 references)Working exploit code is in the public domain (7 GitHub PoCs) (3 Exploit-DB entries). Defenders should treat patch urgency accordingly — public PoCs typically lead to mass-exploitation within 24-72 hours.
- GitHub PoCBassoNicolas/CVE-2021-42013First seen Apr 7, 2024
CVE-2021-42013 Vulnerability Scanner This Python script checks for the Remote Code Execution (RCE) vulnerability (CVE-2021-42013) in Apache 2.4.50.
Open source ↗ - GitHub PoCK3ysTr0K3R/CVE-2021-42013-EXPLOITFirst seen Aug 25, 2023
A PoC exploit for CVE-2021-42013 - Apache 2.4.49 & 2.4.50 Remote Code Execution
Open source ↗ - GitHub PoCasaotomo/CVE-2021-42013-Apache-RCE-Poc-ExpFirst seen Dec 23, 2021
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,而不影响更早版本。
Open source ↗ - Exploit-DBEDB-50512✓ verifiedFirst seen Nov 11, 2021
Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (3)
Open source ↗ - GitHub PoCwalnutsecurity/cve-2021-42013First seen Oct 27, 2021
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
Open source ↗ - Exploit-DBEDB-50446First seen Oct 25, 2021
Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (2)
Open source ↗ - GitHub PoCTheLastVvV/CVE-2021-42013_Reverse-ShellFirst seen Oct 24, 2021
PoC CVE-2021-42013 reverse shell Apache 2.4.50 with CGI
Open source ↗ - GitHub PoCTheLastVvV/CVE-2021-42013First seen Oct 23, 2021
Poc CVE-2021-42013 - Apache 2.4.50 without CGI
Open source ↗ - GitHub PoCtwseptian/cve-2021-42013-docker-labFirst seen Oct 14, 2021
Docker container lab to play/learn with CVE-2021-42013
Open source ↗ - Exploit-DBEDB-50406✓ verifiedFirst seen Oct 13, 2021
Apache HTTP Server 2.4.50 - Path Traversal & Remote Code Execution (RCE)
Open source ↗
Related CVEs(same CWE)
Frequently asked(6)
What is CVE-2021-42013?
When was CVE-2021-42013 disclosed?
Is CVE-2021-42013 actively exploited?
What is the CVSS score of CVE-2021-42013?
Which products are affected by CVE-2021-42013?
How do I remediate CVE-2021-42013?
Dependency Blast Radius
Explore the affected products and dependency analysis for CVE-2021-42013
Is Your Infrastructure Affected by CVE-2021-42013?
EchelonGraph automatically scans your cloud infrastructure and maps CVE exposure using blast radius analysis.