Actively exploited · Published Oct 7, 2021 · Assigned by apache

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

Critical 9.8 Exploited Ransomware

In plain English

A critical-severity path traversal in Apache HTTP Server from Apache Software Foundation. Attackers are actively exploiting it in the wild (listed by CISA on November 3, 2021). It has been used in ransomware campaigns. The chance it is exploited in the next 30 days is estimated at 100.0% (higher than 99.9% of all known vulnerabilities). Ready-made attack tooling exists: Metasploit, Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)100.0%top 0.0% of all CVEs
Exploited in the wildYesCISA KEV since Nov 3, 2021
Attack tooling3Metasploit, Nuclei, Public PoC

CISA guidance

Apply updates per vendor instructions.

Federal agencies must remediate by Nov 17, 2021.

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.20apache22.4.51-r0ALPINE-CVE-2021-42013
Alpine:v3.21apache22.4.51-r0ALPINE-CVE-2021-42013
Alpine:v3.22apache22.4.51-r0ALPINE-CVE-2021-42013
Alpine:v3.23apache22.4.51-r0ALPINE-CVE-2021-42013
Alpine:v3.24apache22.4.51-r0ALPINE-CVE-2021-42013
Debian:12apache22.4.51-1DEBIAN-CVE-2021-42013
Debian:13apache22.4.51-1DEBIAN-CVE-2021-42013
Debian:14apache22.4.51-1DEBIAN-CVE-2021-42013

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache HTTP Server Apache HTTP Server 2.4.49Apache HTTP Server 2.4.50

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References