CVE-2021-42013

published 7 Oct 2021 · updated 21 Oct 2025

Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)

10.0CriticalCVSS 9.8EPSS 100%CISA KEV · due 17 Nov 20215 public exploits

Exploited in the wild, used by ransomware, in CISA KEV since 3 Nov 2021 (due 17 Nov 2021), with 5 public exploits. No fixed version is recorded.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Apache
Apache Software Foundation=Apache HTTP Server 2.4.49, =Apache HTTP Server 2.4.50

Exploit evidence

5 public sources

kev

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Apache, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2021-42013 severity on Zeptric[![CVE-2021-42013](https://zeptric.io/badge/cve/CVE-2021-42013.svg)](https://zeptric.io/cve/CVE-2021-42013)