Staging Environment: Content and features may be unstable or change without notice.
Advisory details: vulnrichment / CVE-2021-42013
Advisory ID vulnrichment/CVE-2021-42013
Aliases
Summary 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.
Status Published
Exploitability 0.5
Weighted Severity 0.0
Risk
Affected and Fixed Packages Package Details
Introduced and Fixed Package Commit Patches Package Commit Patches Details
Weaknesses (1)
System Score Found at
cvssv3.1 9.8
ssvc Act
Reference id Reference type URL
https://httpd.apache.org/security/vulnerabilities_24.html
https://www.oracle.com/security-alerts/cpuapr2022.html
https://www.oracle.com/security-alerts/cpujan2022.html
1 Mailing List http://www.openwall.com/lists/oss-security/2021/10/08/1
1 Mailing List http://www.openwall.com/lists/oss-security/2021/10/09/1
1 Mailing List http://www.openwall.com/lists/oss-security/2021/10/16/1
2 Mailing List http://www.openwall.com/lists/oss-security/2021/10/08/2
3 Mailing List http://www.openwall.com/lists/oss-security/2021/10/08/3
3 Mailing List http://www.openwall.com/lists/oss-security/2021/10/15/3
4 Mailing List http://www.openwall.com/lists/oss-security/2021/10/08/4
4 Mailing List http://www.openwall.com/lists/oss-security/2021/10/11/4
5 Mailing List http://www.openwall.com/lists/oss-security/2021/10/08/5
6 Mailing List http://www.openwall.com/lists/oss-security/2021/10/07/6
6 Mailing List http://www.openwall.com/lists/oss-security/2021/10/08/6
Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html
apache-2-4-50-exploit Other https://www.povilaika.com/apache-2-4-50-exploit/
Apache-2.4.50-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.html
Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html Other http://packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html
Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html Other http://packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html
Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html Other http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
cisco-sa-apache-httpd-pathtrv-LAzg68cZ Advisory https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZ
GLSA-202208-20 https://security.gentoo.org/glsa/202208-20
index.html Advisory http://jvn.jp/en/jp/JVN51106450/index.html
ntap-20211029-0009 Other https://security.netapp.com/advisory/ntap-20211029-0009/
r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3E Mailing List https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3E
r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3E Mailing List https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3E
rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3E Mailing List https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3E
RMIIEFINL6FUIOPD2A3M5XC6DH45Y3CC Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMIIEFINL6FUIOPD2A3M5XC6DH45Y3CC/
WS5RVHOIIRECG65ZBTZY7IEJVWQSQPG3 Advisory https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WS5RVHOIIRECG65ZBTZY7IEJVWQSQPG3/
Data source Exploit-DB
Date added Oct. 13, 2021
Description Apache HTTP Server 2.4.50 - Path Traversal & Remote Code Execution (RCE)
Ransomware campaign use Known
Source publication date Oct. 13, 2021
Exploit type webapps
Platform multiple
Source update date Oct. 13, 2021
Data source Metasploit
Description This module scans for 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).
Note
Stability:
  - crash-safe
Reliability:
  - repeatable-session
SideEffects:
  - ioc-in-logs
  - artifacts-on-disk
Ransomware campaign use Unknown
Source publication date May 10, 2021
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/auxiliary/scanner/http/apache_normalize_path.rb
Data source Metasploit
Description 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).
Note
Stability:
  - crash-safe
Reliability:
  - repeatable-session
SideEffects:
  - ioc-in-logs
  - artifacts-on-disk
Ransomware campaign use Unknown
Source publication date May 10, 2021
Platform Linux,Unix
Source URL https://github.com/rapid7/metasploit-framework/tree/master/modules/exploits/multi/http/apache_normalize_path_rce.rb
Data source KEV
Date added Nov. 3, 2021
Description 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.
Required action Apply updates per vendor instructions.
Due date Nov. 17, 2021
Note
https://nvd.nist.gov/vuln/detail/CVE-2021-42013
Ransomware campaign use Known

No EPSS data available for this advisory.

Patch URL
There are no known patches.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H Found at None
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none


Vector: SSVCv2/E:A/A:Y/T:T/P:M/B:A/M:M/D:C/2025-02-04T14:28:39Z/ Found at None

Vector: SSVCv2/E:A/A:Y/T:T/P:M/B:A/M:M/D:C/2025-02-04T14:28:39Z/

Decision: Act

Source URL: https://github.com/cisagov/vulnrichment/blob/develop/2021/42xxx/CVE-2021-42013.json

Source Advisory: vulnrichment/CVE-2021-42013

View SSVC decision tree
[{'Exploitation': 'active'},
 {'Automatable': 'yes'},
 {'Technical Impact': 'total'},
 {'Mission Prevalence': 'minimal'},
 {'Public Well-being Impact': 'material'},
 {'Mission & Well-being': 'medium'}]