Skip to content
OpenAdvisories
Critical · 9.8 Known exploited · Ransomware Scanner template Public exploit CVE-2021-42013 EUVD-2021-29001GHSA-m24x-wx9p-jqmh

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

Published Oct 7, 2021 · Updated Oct 21, 2025 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache HTTP Server Apache HTTP Server 2.4.49, Apache HTTP Server 2.4.50 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache2 2.4.51-1 —
Debian 13 apache2 2.4.51-1 —
Debian 12 apache2 2.4.51-1 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2 2.4.51-1.1 openSUSE-SU-2024:11560-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache2 2.4.51-r0 —
Alpine v3.23 apache2 2.4.51-r0 —
Alpine v3.22 apache2 2.4.51-r0 —
Alpine v3.21 apache2 2.4.51-r0 —
Alpine v3.20 apache2 2.4.51-r0 —
Show 9 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 apache2 2.4.51-r0 —
Alpine v3.18 apache2 2.4.51-r0 —
Alpine v3.17 apache2 2.4.51-r0 —
Alpine v3.16 apache2 2.4.51-r0 —
Alpine v3.15 apache2 2.4.51-r0 —
Alpine v3.14 apache2 2.4.51-r0 —
Alpine v3.13 apache2 2.4.51-r0 —
Alpine v3.12 apache2 2.4.51-r0 —
Alpine v3.11 apache2 2.4.51-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 httpd +7 2.4.51-1.amzn2 ALAS2-2021-1716
Amazon Linux 2 mod_ssl +1 1:2.4.51-1.amzn2 ALAS2-2021-1716

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 2 modules

Exploit-DB 3

GitHub 38 repositories · most starred shown

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Automated scanner template

A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Advisories 3

References