CVE-2021-42013 — httpd
CRITICALCVE-2021-42013 is a critical-severity (CVSS 9.8) Path Traversal vulnerability. It is in CISA's Known Exploited Vulnerabilities catalog (added 2021-11-03) and has been used in ransomware campaigns — treat it as actively exploited and patch now. No vendor fix is recorded yet; mitigation options are listed below.
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2021-11-03 — including use in ransomware campaigns. Federal agencies were required to remediate by 2021-11-17.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2021-42013.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2021-42013 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 395,249 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
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
http serverapachefedorafedoraprojectcloud backupnetappinstantis enterprisetrackoraclejd edwards enterpriseone toolsoraclesecure backuporacleResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (2)
by ThelastVvV · Oct 25, 2021
Apache HTTP Server 2.4.50 - Path Traversal & Remote Code Execution (RCE)
by Lucas Souza · Oct 13, 2021
Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (3)
by Valentin Lobstein · Nov 11, 2021
Detection & mitigation playbook
VulnerabilityDetect
Identify every host running the affected component and compare the installed build against the fixed version below — for source-built or distro-packaged software the version string, not a lockfile, is the source of truth (`dpkg -l`, `rpm -q`, or the binary's own `--version`).
Remediation status
No fixed release is recorded for CVE-2021-42013 yet. Track the upstream advisory, and apply the exposure-reduction steps below in the meantime.
Mitigate without a patch
Resolve every user-supplied path to its canonical form and reject anything that escapes the intended directory, and run the component under an account that has no read or write access outside the directory it legitimately serves.
How to detect CVE-2021-42013
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2021-42013 -u https://target- Template
- Apache 2.4.49/2.4.50 - Path Traversal and Remote Code Execution
- Severity
- critical
- Impact
- Successful exploitation of this vulnerability could allow an attacker to execute arbitrary code and gain unauthorized access to sensitive information.
- Remediation
- Upgrade to Apache HTTP Server 2.4.51 or later.
Template by ProjectDiscovery nuclei-templates (nvn1729, 0xd0ff9, 666asd), MIT licensed. View the full template. Scan only systems you are authorised to test.
Frequently Asked Questions
Is CVE-2021-42013 in your dependencies?
Find it across , including transitive dependencies.