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)
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.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
NVD Score used
9.8
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.
- Record
CVE-2021-42013- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List
9.8
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
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.
- Record
CVE-2021-42013- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
EUVDEUVD-2021-29001
9.8
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.
- Record
EUVD-2021-29001- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-m24x-wx9p-jqmh
9.8
It was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient. An...
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.
- Record
GHSA-m24x-wx9p-jqmh- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Weakness
- CWE-22
- Updated
- 2026-11-02
CISA KEV No score
Apache HTTP Server Path Traversal Vulnerability
Apache HTTP Server contains a path traversal vulnerability that allows an attacker to perform remote code execution if files outside directories configured by Alias-like directives are not under default require all denied or if CGI scripts are enabled. This CVE ID resolves an incomplete patch for CVE-2021-41773.
- Record
CVE-2021-42013- Weakness
- CWE-22
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-42013
9.8
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.
- Record
ALPINE-CVE-2021-42013- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 6 moreShow less
OSVBELL-CVE-2021-42013
9.8
CVE-2021-42013 does not affect BellSoft software
- Record
BELL-CVE-2021-42013- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
9.8
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.
- Record
CVE-2021-42013- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVDEBIAN-CVE-2021-42013
9.8
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.
- Record
DEBIAN-CVE-2021-42013- CVSS 3.1
- 9.8 Critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVBIT-apache-2021-42013 No score
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
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.
- Record
BIT-apache-2021-42013- Updated
- 2026-11-02
OSVMGASA-2021-0470 No score
Updated apache packages fix security vulnerability
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 (CVE-2021-42013).
- Record
MGASA-2021-0470- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:11560-1 No score
apache2-2.4.51-1.1 on GA media
These are all security issues fixed in the apache2-2.4.51-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:11560-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
apache2Alpine:v3.11 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.12 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.13 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.14 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.15 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.16 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.17 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.18 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.19 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.20 |
before 2.4.51-r0 | 2.4.51-r0 |
Show 10 moreShow less
| Package | Affected | Fixed |
|---|---|---|
apache2Alpine:v3.21 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.22 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.23 |
before 2.4.51-r0 | 2.4.51-r0 |
apache2Alpine:v3.24 |
before 2.4.51-r0 | 2.4.51-r0 |
apacheBitnami |
2.4.49 up to 2.4.50, 2.4.50 up to 2.4.51 | 2.4.502.4.51 |
apache2Debian:12 |
before 2.4.51-1 | 2.4.51-1 |
apache2Debian:13 |
before 2.4.51-1 | 2.4.51-1 |
apache2Debian:14 |
before 2.4.51-1 | 2.4.51-1 |
apacheMageia:8 |
before 2.4.51-1.mga8 | 2.4.51-1.mga8 |
apache2openSUSE:Tumbleweed From an advisory covering 2 CVEs |
before 2.4.51-1.1 | 2.4.51-1.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| Metasploit | Apache 2.4.49/2.4.50 Traversal RCE | 2021-05-10 |
| PoC in GitHub | andrea-mattioli/apache-exploit-CVE-2021-42013 | 2021-10-07 |
| PoC in GitHub | Vulnmachines/cve-2021-42013 | 2021-10-08 |
| Exploit-DB | Apache HTTP Server 2.4.50 - Path Traversal & Remote Code Execution (RCE) | 2021-10-13 |
| PoC in GitHub | twseptian/cve-2021-42013-docker-lab | 2021-10-14 |
| PoC in GitHub | LayarKacaSiber/CVE-2021-42013 | 2021-10-20 |
| PoC in GitHub | TheLastVvV/CVE-2021-42013 | 2021-10-23 |
| PoC in GitHub | TheLastVvV/CVE-2021-42013_Reverse-Shell | 2021-10-24 |
| Exploit-DB | Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (2) | 2021-10-25 |
| PoC in GitHub | walnutsecurity/cve-2021-42013 | 2021-10-27 |
Show 21 moreShow less
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| exploits_more | PoC in GitHub | |
| exploitation | ||
| exploits, exploits_more | ||
| exploits | ||
| first indexed | CVE List, EUVD, Exploit-DB, GitHub Advisories, CISA KEV, Metasploit, Nuclei, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-42013 is a critical vulnerability (CVSS 9.8) in Apache Http Server, published October 7, 2021. CISA lists it as known to be exploited, since November 3, 2021. EUVD reports exploitation since November 3, 2021. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 100.0%, the 99th percentile. Fixed in apache2 2.4.51-r0.
References
httpd.apache.org/security/vulnerabilities_24.html
lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3E
lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3E
openwall.com/lists/oss-security/2021/10/07/6
tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZ
jvn.jp/en/jp/JVN51106450/index.html
Show 41 moreShow less
openwall.com/lists/oss-security/2021/10/08/1
lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3E
openwall.com/lists/oss-security/2021/10/08/2
openwall.com/lists/oss-security/2021/10/08/3
openwall.com/lists/oss-security/2021/10/08/4
openwall.com/lists/oss-security/2021/10/08/6
openwall.com/lists/oss-security/2021/10/08/5
openwall.com/lists/oss-security/2021/10/09/1
openwall.com/lists/oss-security/2021/10/11/4
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMIIEFINL6FUIOPD2A3M5XC6DH45Y3CC
lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WS5RVHOIIRECG65ZBTZY7IEJVWQSQPG3
openwall.com/lists/oss-security/2021/10/15/3
openwall.com/lists/oss-security/2021/10/16/1
oracle.com/security-alerts/cpujan2022.html
security.netapp.com/advisory/ntap-20211029-0009
packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html
packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html
packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html
oracle.com/security-alerts/cpuapr2022.html
packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.html
povilaika.com/apache-2-4-50-exploit
security.gentoo.org/glsa/202208-20
cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-42013
nvd.nist.gov/vuln/detail/CVE-2021-42013
lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3@%3Ccvs.httpd.apache.org%3E
lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837@%3Cannounce.apache.org%3E
lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb@%3Cusers.httpd.apache.org%3E
lists.fedoraproject.org/archives/list/[email protected]/message/WS5RVHOIIRECG65ZBTZY7IEJVWQSQPG3
lists.fedoraproject.org/archives/list/[email protected]/message/RMIIEFINL6FUIOPD2A3M5XC6DH45Y3CC
github.com/advisories/GHSA-m24x-wx9p-jqmh
security.alpinelinux.org/vuln/CVE-2021-42013
docs.bell-sw.com/security/cves/CVE-2021-42013
security-tracker.debian.org/tracker/CVE-2021-42013
advisories.mageia.org/MGASA-2021-0470.html
bugs.mageia.org/show_bug.cgi?id=29536
downloads.apache.org/httpd/Announcement2.4.html
downloads.apache.org/httpd/CHANGES_2.4.51
suse.com/security/cve/CVE-2021-41773
suse.com/security/cve/CVE-2021-42013
The full exploit list has 13 more links.