Skip to content
Server Security Center
KEVhigh7.5 Used in ransomware campaigns

CVE-2021-41773: Apache HTTP Server Path Traversal

Apache HTTP Server · listed in the CISA catalog of actively exploited vulnerabilities since 2021-11-03.

CVSS v3.1 (CISA ADP)
7.5
high
EPSS (exploit probability, 30 days)
>99.9%
among the highest 0.1% of all CVEs
Added to CISA KEV
2021-11-03
US federal due date 2021-11-17
Automatable (CISA SSVC)
yes
technical impact: total

CVE-2021-41773 explained

CVE-2021-41773 is a path traversal flaw in Apache HTTP Server 2.4.49, caused by a change to path normalization. Remote attackers can reach files outside directories set by Alias-like directives. If CGI is enabled for those paths, they may run code. CISA lists it as known exploited, including in ransomware campaigns.

Impact

An unauthenticated remote attacker can map URLs to files outside the configured directories and read them, if those files are not protected by the default "require all denied" setting. If CGI scripts are enabled for the aliased paths, this could lead to remote code execution. No user interaction is needed. CISA rates it automatable with total technical impact. It is exploited in the wild and has been used in ransomware campaigns.

Who is affected

The CVE record lists Apache Software Foundation Apache HTTP Server, entry "Apache HTTP Server 2.4 2.4.49". The description states that only 2.4.49 is affected, not earlier versions. The CVE record names no fixed version. The description notes that the fix in 2.4.50 was incomplete and refers to CVE-2021-42013. Check the vendor advisory for the version that fully resolves both issues.

Written with AI from the data on this page and checked against it automatically.

Official 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.

CISA required action: Apply updates per vendor instructions.

CISA notes

Affected and fixed versions

From the CVE record published by the vendor or CVE numbering authority.

  • Apache Software Foundation Apache HTTP Server
    Affected
    • Apache HTTP Server 2.4 2.4.49
    Fixed in
    not stated

How to fix it

  • The CVE record names no fixed version – check the vendor advisory and CISA's required action for updates and mitigations.
  • Vendor advisory: httpd.apache.org/security/vulnerabilities_24.html
  • CISA's deadline for US federal agencies: 2021-11-17 (passed) – a useful benchmark for everyone else, too.

What to do

  1. Identify all servers running Apache HTTP Server 2.4.49.
  2. Apply updates per vendor instructions, using a release the Apache advisory confirms also fixes CVE-2021-42013.
  3. Make sure directories outside your document and alias paths are protected by "require all denied".
  4. Disable CGI for aliased paths where it is not required.
  5. Check exposed servers for signs of compromise, such as unexpected file access or unknown processes.

The CVE record names no fixed version. Follow CISA's required action: apply updates per vendor instructions, and check the Apache advisory for a release that also addresses CVE-2021-42013, since the 2.4.50 fix was incomplete. Until then, keep "require all denied" protection on files outside served directories, disable unneeded CGI, and limit network exposure of affected servers.

Written with AI from the data on this page and checked against it automatically.

CISA's assessment (SSVC)

Exploitation
Exploited in the wild
Automatable
Yes – attackers can automate it at scale
Technical impact
Total – full control of the component or total information disclosure

Weakness: CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Questions about CVE-2021-41773

Are versions before 2.4.49 affected?
No. The description states the issue only affects Apache 2.4.49 and not earlier versions.
Is upgrading to 2.4.50 enough?
The description says the fix in 2.4.50 was incomplete and refers to CVE-2021-42013. Follow the vendor advisory to pick a version that addresses both CVEs.
Is this vulnerability being exploited?
Yes. CISA added it to its Known Exploited Vulnerabilities catalog on 2021-11-03 and notes known ransomware use. The description also states it is exploited in the wild.

Written with AI from the data on this page and checked against it automatically.

References

Data: CISA Known Exploited Vulnerabilities (public domain) · CVE Program records incl. CISA ADP enrichment · OSV.dev (CC BY 4.0) incl. Ubuntu and Debian security data · FIRST EPSS · endoflife.date. Updated automatically – facts last changed 2026-11-22. Always confirm with the vendor's or distribution's advisory before patching.