Patchfirst
CVE-2021-41773 KEVRansomwarePublic exploit Critical · 9.8 EPSS >99.9%

Apache HTTP Server Path Traversal Vulnerability

Apache · HTTP Server

Summary

The flaw is a path traversal weakness in the path normalization logic of Apache HTTP Server, product HTTP Server, introduced by a change in version 2.4.49. An unauthenticated remote attacker can send crafted requests over the network, with no user interaction, to map URLs to files outside the directories configured by Alias-like directives, and if those files are not protected by the default "require all denied" setting, the requests succeed; where CGI scripts are also enabled for the aliased paths, this can lead to remote code execution.

Official description · NVD

A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. 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 is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.

Breakdown
79.9 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
2/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

First seen exploited 6 days before it was disclosed. Public exploit code (Metasploit) was available 5 months before disclosure.

  1. Public exploit codeMetasploit5 mo before
  2. First seen exploitedVulnCheck KEV evidence6 days before
  3. Disclosedday 0
  4. Added to CISA KEVknown ransomware use; EU database agrees+29 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

See the family tree

A fix was bypassed or incomplete once over 2 days.

Same bug familyLinked by evidence that a fix failed or the same code was patched again. Oldest first.

  1. This CVECVE-2021-41773HTTP Server Path Traversal5 Oct 2021KEV
  2. incomplete fixHigh

    Why these are linked:

    • Stated in the CVE textIt was found that the fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient.
    • Similar weakness in the same product (machine-matched)same product + CWE + description similarity
    CVE-2021-42013HTTP Server Path Traversal7 Oct 2021KEV

techniques

2 , grouped by in kill-chain order 2

ExecutionTA0002

MITRE CTID mapping of the KEV entry · primary impact

CVE-2021-41773 is a path traversal vulnerability in Apache HTTP Server 2.4.49 that allows an attacker 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 paths, this could allow for remote code execution.

Lateral MovementTA0008

MITRE CTID mapping of the KEV entry · how it is exploited

Detection

1 rule for this CVE · 110 general rules for its techniques

Rules for this CVE

1 that reference CVE-2021-41773 directly.

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

30 links, grouped by NVD tag (29 duplicates merged)
↑ ↓ chooseEnter openEsc close