ZeroHour

CVE-2021-41773

KEV ransomware PoC ×6mass1

Path Traversal to RCE in Apache HTTP Server 2.4.49

CISA: Apache HTTP Server Path Traversal Vulnerability

CVSS 3.1
9.8 critical
EPSS
100%p100
Published
()
KEV added
AI analysis

Apache HTTP Server contains a path traversal flaw (CWE-22) that lets crafted HTTP requests reach files outside directories configured via Alias-like directives. When files outside those aliased directories are not protected by the default 'require all denied' policy, attackers can read arbitrary files outside the intended root, and if CGI scripts are enabled the traversal can be escalated to remote code execution under the web server account. Anyone running an affected Apache HTTP Server release with such a configuration is exposed; the initial 2.4.50 patch was incomplete, so the flaw's full remediation is tracked under CVE-2021-42013. Exploitation is confirmed in the wild: CISA added the vulnerability to the KEV catalog on 2021-11-03 with known ransomware use, and EPSS assigns a ~100% probability of exploitation within 30 days (100th percentile).

What to do: Upgrade to Apache HTTP Server 2.4.51 or later; do not stop at 2.4.50, since its fix was incomplete (see CVE-2021-42013). As an interim mitigation, ensure directories referenced by Alias-like directives are covered by 'require all denied' and disable or restrict CGI (mod_cgi/mod_cgid) on traversable paths. Review access logs for traversal patterns such as /icons/../ and unexpected CGI invocations, and hunt for webshells or ransomware staging given the known ransomware use.

Affected
Apache HTTP Server2.4.49 per public advisories (the 2.4.50 fix was incomplete; fully fixed in 2.4.51 via CVE-2021-42013)
Estimated exposure
masson the order of 100,000+ internet-exposed Apache servers — Apache HTTP Server runs roughly a third of web-facing servers in Netcraft/W3Techs surveys, and public internet scans after disclosure identified hosts numbering in the hundreds of thousands still reporting the short-lived, vulnerable…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

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.

CISA Known Exploited Vulnerability
Affected
Apache HTTP Server
Required action
Apply updates per vendor instructions.
Due date
Ransomware use
Known
Vendors
apachefedoraprojectoraclenetapp
Products
http server, fedora, instantis enterprisetrack, cloud backup
Weakness
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

In the news