CVE-2021-42013: 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)
- 9.8
- critical
- 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-42013 explained
CVE-2021-42013 is a path traversal vulnerability in Apache HTTP Server that exists because the fix for CVE-2021-41773 in 2.4.50 was insufficient. Attackers can map URLs to files outside directories set by Alias-like directives. This can lead to remote code execution, and CISA lists it as known exploited, including in ransomware campaigns.
Impact
An unauthenticated remote attacker can read files outside aliased directories when those files are not protected by the default "require all denied" configuration. If CGI scripts are enabled for the aliased paths, the attacker could execute code remotely. No user interaction is needed. CISA rates the issue as automatable with total technical impact, meaning exploitation at scale and full control of the affected server component are possible.
Who is affected
The CVE record lists Apache Software Foundation Apache HTTP Server 2.4.49 and 2.4.50 as affected. The description states that earlier versions are not affected. The CVE record names no fixed version. Check the Apache vendor advisory for the release that contains the fix.
Written with AI from the data on this page and checked against it automatically.
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.
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 ServerAffectedFixed in
- Apache HTTP Server 2.4.49
- Apache HTTP Server 2.4.50
not stated
| Product | Affected | Fixed in |
|---|---|---|
| Apache Software Foundation Apache HTTP Server |
| 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
- Upgrade Apache HTTP Server
2.4.49and2.4.50to the fixed release named in the Apache vendor advisory. - Confirm that directories outside your aliased paths are protected by the default "require all denied" configuration.
- Disable CGI for aliased paths where it is not required.
- Restrict internet exposure of affected servers until they are updated.
- Check affected servers for signs of compromise, such as unexpected file access or unknown processes, given known ransomware use.
The CVE record names no fixed version, but CISA's required action is to apply updates per vendor instructions. Follow the Apache vendor advisory to identify and install the fixed release. Until then, enforce "require all denied" outside aliased directories, disable CGI where it is not needed 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-42013
- Are versions before 2.4.49 affected?
- No. The description states that the issue only affects Apache
2.4.49and2.4.50and not earlier versions. - 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 US federal due date was 2021-11-17.
- How does this relate to CVE-2021-41773?
- CVE-2021-42013 exists because the fix for CVE-2021-41773 in Apache HTTP Server
2.4.50was insufficient, which leaves2.4.50vulnerable to path traversal as well.
Written with AI from the data on this page and checked against it automatically.
References
Vendor
- httpd.apache.org/security/vulnerabilities_24.html
- [announce] 20211007 CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
- [httpd-users] 20211007 [users@httpd] CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)
- [httpd-cvs] 20211008 [httpd-site] branch main updated: * Align with CVE-2021-42013 based on the latest findings
Other advisories
Trackers and catalogs
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.