CVE-2021-41773: Apache HTTP Server · Path traversal
Exploitation: In the wild · CVSS 7.5 High · Unauthenticated · Published 2021-10-05
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.
Enclave's analysis
A path-normalization bug in Apache HTTP Server 2.4.49 lets an attacker send a URL-encoded traversal (like .%2e/) to read files outside the configured web root, and if mod_cgi is also enabled, run arbitrary commands over plain HTTP with no login needed. Public PoCs and a Metasploit module landed within days, and CISA confirms it was exploited in the wild before disclosure, including ransomware and cryptominer campaigns. It only hits the single 2.4.49 release and needs a non-default "Require all denied" gap; patch to 2.4.51 or later (2.4.50 alone isn't enough).
Fix
Apply updates per vendor instructions.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| Apache HTTP Server | Apache HTTP Server 2.4 2.4.49 | Not listed |
| Oracle Instantis EnterpriseTrack (bundles vulnerable Apache httpd) | 17.1, 17.2, 17.3 | Not listed |
| NetApp Cloud Backup (bundles vulnerable Apache httpd) | unspecified bundled version | Not listed |