CVE-2021-42013
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)
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.
Published Updated Sources: NVD, Apache Software Foundation (CNA), CISA, FIRST EPSS, GitHub, GitHub Security Advisory, Exploit-DB, Red Hat (VEX), SOCRadar CTI
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Confirmed
CISA KEV, listed Nov 3, 2021
EPSS
100%
top of FIRST's scoreset
CVSS base
9.8
critical · 3 sources
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
Active
none · proof-of-concept · active
Automatable
Yes
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Remediation
The vendor's own words where we have them.
Upgrade Apache HTTP Server to a fixed release. Apply vendor patches per advisory and restrict external exposure of the affected component until patched.
CISA required action
Apply updates per vendor instructions.
Federal deadline Nov 17, 2021 — passed 1,843 days ago
Red Hat VEX · CVE-2021-42013
First 24 hours
Ordered from the record's own fields — exposure first, because you cannot patch what you have not found.
- Identify exposed assets running affected vendor/product/version combinations.
- Treat as emergency remediation because CISA KEV status is present.
- Search available logs for exploit probes, errors, authentication anomalies, or suspicious child processes matching the vulnerability class.
Affected scope
Vendor, product and version as the advisories word them.
| Vendor | Product | Versions | Status |
|---|---|---|---|
| Apache | Apache HTTP Server | Apache HTTP Server 2.4.49 | Vulnerable |
| Apache | Apache HTTP Server | Apache HTTP Server 2.4.50 | Vulnerable |
Attack characteristics
The CVSS vector, decoded. It describes the attack, not your exposure to it.
Availability
High
Confidentiality
High
Integrity
High
Scope
Unchanged
Attack Complexity
Low
Attack Vector
Network
Privileges Req
None
User Interaction
None
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 9.8 | CVSS 3.1 | critical | 3.9 | 5.9 | NVD, CNA, GHSA |
| 7.5 | CVSS 2.0 | high | 10 | 6.4 | NVD |
| 8.1 | CVSS 3.1 | high | n/a | n/a | Red Hat (VEX) |
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What this weakness leads to
MITRE's own consequences and mitigations for the weakness class — the authority's wording, not guidance derived from the CVSS vector.
CWE-22 · Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
- Execute Unauthorized Code or Commands
- Modify Files or Directories
- Read Files or Directories
- DoS: Crash, Exit, or Restart
Mitigation: Assume all input is malicious. Use an accept known good input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, boat may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as red or blue. Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright. When validating filenames, use stringent allowlists that limit the character set to be used. If feasible, only allow a single . character in the filename to avoid weaknesses such as CWE-23, and exclude directory separators such as / to avoid CWE-36. Use a list of allowable file extensions, which will help to avoid CWE-434. Do not rely exclusively on a filtering mechanism that removes potentially dangerous characters. This is equivalent to a denylist, which may be incomplete (CWE-184). For example, filtering / is insufficient protection if the filesystem also supports the use of as a directory separator. Another possible error could occur when the filtering is applied in a way that still produces dangerous data (CWE-182). For example, if ../ sequences are removed from the .../...// string in a sequential fashion, two instances of ../ would be removed from the original string, but the remaining characters would still form the ../ string.
Weakness & attack patterns
- CWE-22Path Traversal
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
CISA KEV details
CISA lists a CVE here once it has evidence of exploitation against real targets.
Listed
Nov 3, 2021
Federal deadline
Nov 17, 2021
passed 1,843 days ago
Ransomware use
Known
CISA records ransomware use only for campaigns it has confirmed, so “Unknown” means unrecorded, not ruled out. The deadline binds US federal agencies; for everyone else it is a date to argue against.
Public exploit
Capability, not use: code existing is a different claim from anyone running it.
PoC repos
516
2 of the 5 sampled are weaponized
Exploit entries
49
Exploit-DB and CTI exploit indexes
Social mentions
Posts naming this CVE. Attention, not evidence of exploitation — it spikes on disclosure and decays whether or not anything is exploited.
├ CVE-2018-7600 · Drupalgeddon2 · PoC live (9.8) └ CVE-2021-42013 · Apache HTTP Server · PoC live (9.8)
@exploitgrid· Oct 8, 2026
Their job against us isn't map scraping. It's commodity mass-exploitation: • PHPUnit CVE-2017-9841 (64) • F5 BIG-IP CVE-2023-46747 • Apache CVE-2021-42013 • NetScaler SAML, PHP-CGI UAs: spoofed iPhone + Mac Chrome, libredtail-http. Nothing announces itself honestly.
@Huntbackio· Oct 5, 2026
I got something better than wpscan and CVE-2021-42013 related anyways - from here an enumeration or attack will result in server responding in extensive defensive measures 😄
@kimocoder· Sep 6, 2026
🚨 CVE-2021-42013: Critical 9.8 CVSS Apache HTTP Server Path Traversal & RCE https://t.co/PT7TU2Q6do #Cybersecurity #Infosec #AppSec #RCE #PathTraversal #Apache #Httpd #CVE202142013 #PoC #EthicalHacking #BugBounty #PatchNow https://t.co/vA7zQqj27y
@r0otk3r· Jul 12, 2026
CVE-2021-42013: How "Path Traversal" leads to Unauth RCE in Apache HTTP Server.🚨 #CVE202142013 #CyberSecurity #CISA #Infosec #BugBounty #RCE #Pentesting #Apache https://t.co/vXpCwmQEbS
@r0otk3r· Mar 10, 2026
Detection
Read off the CVSS vector and the weakness class. Starting points, not rules we have tested.
- Prioritize edge telemetry for network-reachable Apache HTTP Server.
- Monitor for scanner or exploit-pattern traffic after 565 public PoC repositories were reported.
Groups associated with this CVE
Groups reported in connection with this vulnerability. A reported association, not a confirmed observation of that group using it — and not scoped to any sector or campaign.
- ip103.106.112.1666
Public Proxy Feed · Oct 21, 2024
- ip162.142.125.4654
SANS Wide Scanners Feeds · Jan 21, 2021
- ip45.148.10.9056
DShield-Firehol · Aug 26, 2020
- ip45.148.10.24265
DShield-Firehol · Mar 6, 2022
- ip138.68.90.15126
AbuseIPDB Hourly Update · Nov 2, 2026
5 more indicators on this CVEShowing 5 of 10 · Hashes, addresses and domains from a live threat exchangeUnlock freeTimeline
What happened to this CVE, newest first — with the readings a source repeats on a schedule counted underneath rather than listed.
- 2026
Cve is exploited lmcewen9/cve-2021-42013
Oct 10, 2026 · SOCRadar CTI
Added · CVSS 3.1 9.8 (AV:N)
Jun 17, 2026 · NVD
- 2022
Added · GHSA-m24x-wx9p-jqmh published (critical)
May 24, 2022 · GitHub Security Advisory
- 2021
Added · Verified webapps entry: Apache HTTP Server 2.4.50 - Directory Traversal / Remote Code Execution (RCE) (3)
Nov 11, 2021 · Exploit-DB
Added to CISA KEV catalog
Nov 3, 2021 · CISA
Added · webapps entry: Apache HTTP Server 2.4.50 - Directory Traversal / Remote Code Execution (RCE) (2)
Oct 25, 2021 · Exploit-DB
Added · Verified webapps entry: Apache HTTP Server 2.4.50 - Path Traversal / Remote Code Execution (RCE)
Oct 13, 2021 · Exploit-DB
Initial · CVE published
Oct 7, 2021 · NVD
reported
Oct 6, 2021 · Apache Software Foundation
Source activity
Readings a source repeats on a schedule, counted rather than listed.
- 13×SVRS was changedDec 17, 2025 – Oct 10, 2026 · SOCRadar CTI
- 9×Github ReposJan 24, 2026 – Nov 4, 2026 · SOCRadar CTI
- 6×Tweets · 1 time tweeted.Mar 11, 2026 – Oct 9, 2026 · SOCRadar CTI
- 1×CVE appeared in the Cve Trends.Jun 25, 2026 · SOCRadar CTI
References
44 on the record
- jvn.jp/en/jp/JVN51106450/index.html
Third Party Advisory, NIST
- packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, GITHUB, NIST
- packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, GITHUB
- packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry, NIST
- packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html
Third Party Advisory, VDB Entry
- packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.html
Exploit, Third Party Advisory, VDB Entry
- www.openwall.com/lists/oss-security/2021/10/07/6
Mailing List, Third Party Advisory, NIST
Coverage
5 stories from the feeds we poll
CVE-2021–42013 Apache HTTP Server 2.4.49 2.4.50 Remote Code Execution
medium.com · May 4, 2026
HONG KONG CYBERSECURITY THREAT INTELLIGENCE REPORT - cyfirma
cyfirma.com · Apr 3, 2026
SINGAPORE THREAT LANDSCAPE - cyfirma
cyfirma.com · Mar 23, 2026
Finding Signal in the Noise: Lessons Learned Running a Honeypot with AI Assistance [Guest Diary], (Tue, Feb 24th)
isc.sans.edu · Feb 26, 2026
Apache HTTP Server 2.4.49/2.4.50 Remote Code Execution (CVE-2021–42013)
0x3rr0rhunt3r.medium.com · Feb 14, 2026
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2021-41773 Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49CVSS 9.8 · CISA KEV
- CVE-2024-38475 Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.CVSS 9.1 · CISA KEV
- CVE-2021-40438 mod_proxy SSRFCVSS 9.0 · CISA KEV
- CVE-2021-44790 Possible buffer overflow when parsing multipart content in mod_lua of Apache HTTP Server 2.4.51 and earlierCVSS 9.8
- CVE-2026-119618 Apache HTTP Server: mod_http2: heap corruption and RCE in assign_headersCVSS 8.1
- CVE-2026-49975 Apache HTTP Server: mod_http2 denial of serviceCVSS 7.5
Elsewhere on this site
- Apacheevery CVE for this vendor
- Apache HTTP Serverevery page on this product
- November 2021what else CISA listed
- Path Traversalsame class
- CWE-22other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- Only the 5 indicator(s) reported for this CVE are available; no packet-level or host-forensic artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.
Answered from this record1
What should defenders know first?
CVE-2021-42013 is Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773), a critical vulnerability affecting Apache HTTP Server from Apache Software Foundation. The current evidence lists it in CISA KEV, and the exploit status is: Yes: CISA KEV signal present. Public exploit evidence is: 565 public PoC repositories reported; 2 marked weaponized in current dataset. The affected-version evidence is listed in the key facts and affected products tables. Defenders should first verify whether exposed or business-critical assets run those versions, then apply vendor patches or mitigations, restrict reachable attack surface, and preserve logs for detection review. CVSS 9.8 describes technical severity, while EPSS 100% helps estimate near-term exploit likelihood; neither replaces asset context. Unknown fields should remain explicit in tickets, and threat actor, IOC, victimology, or payload claims should not be added unless a cited source supports them. Monitor CISA KEV, vendor advisories, NVD changes, public PoC repositories, and internal telemetry for update triggers.