CVE-2021-42013
Exploitation confirmed. First attested on 2021-11-03 by CISA-ADP, CISA KEV, GCVE · kevintel, GCVE · shadowserver.
- Published2021-10-07
- WeaknessCWE-22
Am I affected?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « affected ».With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.
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.
Timeline
dates in UTC- 2021-10-0716:15CVE publishedNVD
- 2021-10-13Exploit-DB entryExploit-DB
- 2021-11-03Added to the CISA KEV catalogCISA KEV
- 2021-11-03Listed as exploited by GCVEGCVE
- 2021-11-03Exploitation first reportedCISA KEV
- 2025-02-0414:28SSVC exploitation set to activeCISA-ADP
Observed activity
isMalicious corpus · updated 2026-11-03 21:37 UTCBlock these indicators
- Firewall list (EDL, text): https://api.ismalicious.com/edl/cve/CVE-2021-42013?format=txt
- CSV export: https://api.ismalicious.com/edl/cve/CVE-2021-42013?format=csv
- TAXII collection of exploited CVEs
- The EDL and CSV take an API key on the Pro plan.
Versions per branch
NVD| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 2.4 | = 2.4.49 | no fix published | NVD |
| 2.4 | = 2.4.50 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 17.1 | = 17.1 | no fix published | NVD |
| 17.2 | = 17.2 | no fix published | NVD |
| 17.3 | = 17.3 | no fix published | NVD |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 34.x | = 34 | no fix published | NVD |
| 35.x | = 35 | no fix published | NVD |
4 more products in the sources.
as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.
Products declared by the CNA1 product
As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.
- Apache Software Foundation Apache HTTP ServerAffected
- = Apache HTTP Server 2.4.49no fix stated
- = Apache HTTP Server 2.4.50no fix stated
Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2022-08-14
Distribution builds and vendor advisories
Packages from OSV.dev and products from the vendors' CSAF advisories.
version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.
Packages
- apacheMageia:8all versions · fixed in 2.4.51-1.mga8
- apache2openSUSE:Tumbleweedall versions · fixed in 2.4.51-1.1
- apache2Debian:14all versions · fixed in 2.4.51-1
- apache2Debian:13all versions · fixed in 2.4.51-1
- apache2Debian:12all versions · fixed in 2.4.51-1
- apache2CleanStartall versions · fixed in 2.4.51-r0
- apache2Alpine:v3.24all versions · fixed in 2.4.51-r0
- apache2Alpine:v3.23all versions · fixed in 2.4.51-r0
12 more package ranges on OSV.dev
Vendor advisories
- CVE-2021-42013 Red Hat Product Security
httpd: path traversal and remote code execution (incomplete fix of CVE-2021-41773)
Fix
- CISA’s required action: Apply updates per vendor instructions.due 2021-11-17
Advisories and patches
- httpd.apache.orgRelease Notes · Vendor Advisory
- lists.apache.orgPatch
- lists.fedoraproject.orgRelease Notes
- lists.fedoraproject.orgRelease Notes
- www.oracle.comPatch
- www.oracle.comPatch
Detection
read 2026-11-03 22:42 UTC- Nuclei template
- available ProjectDiscovery
- Proof-of-concept repositories
- 20 repositories, unverifiedandrea-mattioli/apache-exploit-CVE-2021-42013Vulnmachines/cve-2021-42013twseptian/cve-2021-42013-docker-labLayarKacaSiber/CVE-2021-42013TheLastVvV/CVE-2021-42013 PoC-in-GitHub
- Metasploit modules
- 2 modulesexploit/multi/http/apache_normalize_path_rcerank: excellentauxiliary/scanner/http/apache_normalize_pathrank: normalModule metadata: Metasploit Framework, © Rapid7, Inc., BSD-3-Clause. Metasploit Framework
CISA Known Exploited Vulnerability
- Date Added
- 2021-11-03
- Patch Due Date
- 2021-11-17
- Ransomware Use
- Known
- Required Action
- Apply updates per vendor instructions.
Sources
- CISA KEVKEV entry2021-11-03
- ENISA EUVDexploitation2021-11-032021-11-03
- GCVEexploitation2021-11-03
- CISA-ADPSSVC decisionactive2025-02-04
- OpenCVESSVC decisionactive—
- CISA-ADPCVSS 3.19.82025-02-04
- NVDCVSS 3.19.8read 2026-10-23
- NVDCVSS 2.07.5read 2026-10-23
- CNAweakness (CWE)CWE-22known since 2026-10-23
- NVDweakness (CWE)CWE-22read 2026-10-23
- FIRST EPSSEPSS score99.9 %read 2026-11-03
- PoC-in-GitHubproof of concept20read 2026-11-03
- Exploit-DBdetectionread 2026-11-03
- ProjectDiscoverydetectionread 2026-11-03
- Metasploit FrameworkMetasploit modules2known since 2026-11-01
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- BIT-apache-2021-42013same flawBitnami · Apache-2.0
- EUVD-2021-29001same flawENISA EUVD · LicenseRef-ENISA-legal-notice
- GHSA-m24x-wx9p-jqmhsame flawGitHub Advisory Database · CC-BY-4.0
- auxiliary/scanner/http/apache_normalize_pathexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- exploit/multi/http/apache_normalize_path_rceexploit moduleMetasploit Framework © Rapid7 · BSD-3-Clause
- MGASA-2021-0470advisory covering several CVEsMageia · LicenseRef-unstated
- openSUSE-SU-2024:11560-1advisory covering several CVEsopenSUSE · LicenseRef-unstated
Technical details
- CVSS v3 Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Published
- 2021-10-07
- Last Modified
- 2026-06-17
- NVD status
- Analyzed
- GitHub Advisory
- GHSA-m24x-wx9p-jqmh
Frequently asked questions
What is CVE-2021-42013?
Is CVE-2021-42013 actively exploited?
What is the CVSS score for CVE-2021-42013?
Running Apache HTTP Server? Hear about its next vulnerability
Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».
No credit card required · No monthly cap on website lookups · 250 API requests/month
Go further
- For a threat intelligence platform: malware, C2 and ransomware indicators over STIX/TAXII.
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CISA KEV · CC0-1.0 (cisagov/kev-data)
- CVE Program · CVE Program Terms of Use
- ENISA EU Vulnerability Database · ENISA legal notice §1.2 (reproduction authorised, provided the source is acknowledged)
- Exploit-DB · Exploit-DB terms of service · terms restrict redistribution
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GCVE · GCVE dump terms (preserve source attribution)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-m24x-wx9p-jqmh
- Metasploit Framework · BSD-3-Clause
- Nuclei templates · MIT
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- PoC-in-GitHub · CC0-1.0
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0