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.
Published 2021-10-07 16:15:09
Updated 2023-08-31 16:13:27
View at NVD,   CVE.org
Vulnerability category: Directory traversalExecute code

Threat overview for CVE-2021-42013

Top countries where our scanners detected CVE-2021-42013
Top open port discovered on systems with this issue 80
IPs affected by CVE-2021-42013 7,126
Threat actors abusing to this issue? Yes
Find out if you* are affected by CVE-2021-42013!
*Directly or indirectly through your vendors, service providers and 3rd parties. Powered by attack surface intelligence from SecurityScorecard.

CVE-2021-42013 is in the CISA Known Exploited Vulnerabilities Catalog

This issue is known to have been leveraged as part of a ransomware campaign.
CISA vulnerability name:
Apache HTTP Server Path Traversal Vulnerability
CISA required action:
Apply updates per vendor instructions.
CISA 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
Added on 2021-11-03 Action due date 2021-11-17

Exploit prediction scoring system (EPSS) score for CVE-2021-42013

Probability of exploitation activity in the next 30 days: 97.40%

Percentile, the proportion of vulnerabilities that are scored at or less: ~ 100 % EPSS Score History EPSS FAQ

Metasploit modules for CVE-2021-42013

  • Apache 2.4.49/2.4.50 Traversal RCE scanner
    Disclosure Date: 2021-05-10
    First seen: 2022-12-23
    auxiliary/scanner/http/apache_normalize_path
  • Apache 2.4.49/2.4.50 Traversal RCE
    Disclosure Date: 2021-05-10
    First seen: 2022-12-23
    exploit/multi/http/apache_normalize_path_rce

CVSS scores for CVE-2021-42013

Base Score Base Severity CVSS Vector Exploitability Score Impact Score Score Source
7.5
HIGH AV:N/AC:L/Au:N/C:P/I:P/A:P
10.0
6.4
NIST
9.8
CRITICAL CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
3.9
5.9
NIST

CWE ids for CVE-2021-42013

  • The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
    Assigned by:
    • nvd@nist.gov (Primary)
    • security@apache.org (Secondary)

References for CVE-2021-42013

Products affected by CVE-2021-42013

This web site uses cookies for managing your session, storing preferences, website analytics and additional purposes described in our privacy policy.
By using this web site you are agreeing to CVEdetails.com terms of use!