CVE-2021-42013
published critical CVSS 3.1 · 9.8Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache HTTP ServerApache HTTP Server 2.4.49 · Apache HTTP Server 2.4.50 | Affected | Not stated | apache |
| Amazon Linux | AL2 | Release evaluationALAS2-2021-1716 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2aarch64 | Advisory build | 2.4.51-1.1 | OPENSUSE-SU-2024:11560-1 |
| Amazon Linux | AL2 | httpdaarch64 | Listed in advisory | Not stated | ALAS2-2021-1716 |
| Alpine Linux | v3.11 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.12 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.13 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
Show 18 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.14 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.15 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.16 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.17 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.18 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.19 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.20 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.21 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.22 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.23 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| Alpine Linux | v3.24 | apache2 | Fixed | 2.4.51-r0 | Package fix record |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2ppc64le | Advisory build | 2.4.51-1.1 | OPENSUSE-SU-2024:11560-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2s390x | Advisory build | 2.4.51-1.1 | OPENSUSE-SU-2024:11560-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | apache2x86_64 | Advisory build | 2.4.51-1.1 | OPENSUSE-SU-2024:11560-1 |
| Amazon Linux | AL2 | httpdi686 | Listed in advisory | Not stated | ALAS2-2021-1716 |
| Amazon Linux | AL2 | httpdnoarch | Listed in advisory | Not stated | ALAS2-2021-1716 |
| Amazon Linux | AL2 | httpdsrc | Listed in advisory | Not stated | ALAS2-2021-1716 |
| Amazon Linux | AL2 | httpdx86_64 | Listed in advisory | Not stated | ALAS2-2021-1716 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache HTTP Server | Apache HTTP Server 2.4.49 (affected)Apache HTTP Server 2.4.50 (affected) | apache · cna |
Weaknesses
1- CWE-22 CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
References
31- JVN#51106450 http://jvn.jp/en/jp/JVN51106450/index.html
- http://packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html
- http://packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
- 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
- http://packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html
- http://packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.html
- [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) http://www.openwall.com/lists/oss-security/2021/10/07/6
- [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) http://www.openwall.com/lists/oss-security/2021/10/08/1
- [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) http://www.openwall.com/lists/oss-security/2021/10/08/2
- [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) http://www.openwall.com/lists/oss-security/2021/10/08/3
- [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) http://www.openwall.com/lists/oss-security/2021/10/08/4
- [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) http://www.openwall.com/lists/oss-security/2021/10/08/5
- [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) http://www.openwall.com/lists/oss-security/2021/10/08/6
- [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) http://www.openwall.com/lists/oss-security/2021/10/09/1
- [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) http://www.openwall.com/lists/oss-security/2021/10/11/4
- [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) http://www.openwall.com/lists/oss-security/2021/10/15/3
- [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) http://www.openwall.com/lists/oss-security/2021/10/16/1
- https://httpd.apache.org/security/vulnerabilities_24.html
- [httpd-cvs] 20211008 [httpd-site] branch main updated: * Align with CVE-2021-42013 based on the latest findings https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3E
- [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) https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3E
- [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) https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3E
- FEDORA-2021-2a10bc68a4 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMIIEFINL6FUIOPD2A3M5XC6DH45Y3CC/
- FEDORA-2021-aaf90ef84a https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WS5RVHOIIRECG65ZBTZY7IEJVWQSQPG3/
- GLSA-202208-20 https://security.gentoo.org/glsa/202208-20
- https://security.netapp.com/advisory/ntap-20211029-0009/
- 20211007 Apache HTTP Server Vulnerabilties: October 2021 https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZ
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2021-42013
- https://www.oracle.com/security-alerts/cpuapr2022.html
- https://www.oracle.com/security-alerts/cpujan2022.html
- https://www.povilaika.com/apache-2-4-50-exploit/
Provider assertions
3apache · cna
Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- e01589510e251c4624e64796dd2b88757252a8aca562f3fcea792b119bf72ba8
- Ingested
- 23 Sep 2026, 07:56:21 UTC
- Source record
- Official CVE record