CVEfocus › CVE database › CVE-2021-42013

CVE-2021-42013Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50…

Known exploited (CISA KEV) · ransomwareCVSS 9.8 CriticalEPSS 99.9% (in the top 1% of all CVEs)Published 2021-10-07Updated 2025-10-21Assigner: apache

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.

CWE-22

What to do

This CVE is being exploited in the wild (CISA Known Exploited Vulnerabilities, added 2021-11-03). If you run an affected version, patch or mitigate now.

Fixed builds are available from Alpine, Debian: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
1Fix pending
36Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04apache2Not affected
vulnerable_code_not_present
Ubuntu 16.04apache2Fix pending
Debian 14apache2Fixed2.4.51-1DEBIAN-CVE-2021-42013
Debian 13apache2Fixed2.4.51-1DEBIAN-CVE-2021-42013
Debian 12apache2Fixed2.4.51-1DEBIAN-CVE-2021-42013
Red Hat Enterprise Linux 9httpdNot affected
Red Hat Enterprise Linux 9httpd-coreNot affected
Red Hat Enterprise Linux 9httpd-develNot affected
Red Hat Enterprise Linux 9httpd-filesystemNot affected
Red Hat Enterprise Linux 9httpd-manualNot affected
Red Hat Enterprise Linux 9httpd-toolsNot affected
Red Hat Enterprise Linux 9mod_ldapNot affected
Red Hat Enterprise Linux 9mod_luaNot affected
Red Hat Enterprise Linux 9mod_proxy_htmlNot affected
Red Hat Enterprise Linux 9mod_sessionNot affected
Red Hat Enterprise Linux 9mod_sslNot affected
Red Hat Enterprise Linux 8httpdNot affected
Red Hat Enterprise Linux 8httpd-develNot affected
Red Hat Enterprise Linux 8httpd-filesystemNot affected
Red Hat Enterprise Linux 8httpd-manualNot affected
Red Hat Enterprise Linux 8httpd-toolsNot affected
Red Hat Enterprise Linux 8mod_http2Not affected
Red Hat Enterprise Linux 8mod_ldapNot affected
Red Hat Enterprise Linux 8mod_mdNot affected
Red Hat Enterprise Linux 8mod_proxy_htmlNot affected
Red Hat Enterprise Linux 8mod_sessionNot affected
Red Hat Enterprise Linux 8mod_sslNot affected
Red Hat Enterprise Linux 7httpdNot affected
Red Hat Enterprise Linux 7httpd-develNot affected
Red Hat Enterprise Linux 7httpd-manualNot affected
Red Hat Enterprise Linux 7httpd-toolsNot affected
Red Hat Enterprise Linux 7mod_ldapNot affected
Red Hat Enterprise Linux 7mod_proxy_htmlNot affected
Red Hat Enterprise Linux 7mod_sessionNot affected
Red Hat Enterprise Linux 7mod_sslNot affected
Red Hat Enterprise Linux 6httpdNot affected
Red Hat Enterprise Linux 6httpd-develNot affected
Red Hat Enterprise Linux 6httpd-manualNot affected
Red Hat Enterprise Linux 6httpd-toolsNot affected
Red Hat Enterprise Linux 6mod_sslNot affected
Alpine Linux 3.24apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.23apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.22apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.21apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.20apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.19apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.18apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.17apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.16apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.15apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.14apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.13apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.12apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013
Alpine Linux 3.11apache2Fixed2.4.51-r0ALPINE-CVE-2021-42013

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.