Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🛡️
CISA KEV · ACTIVELY EXPLOITED
CRITICAL severity

CVE-2021-42013 — httpd

CRITICAL

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

Also known asBIT-apache-2021-42013
Published
Updated
Affected
6 products
Patched
See advisory
Exploits
32 known
Exploitation data as of Oct 23, 2026 · OSV.dev, NVD, CISA KEV, FIRST.org (EPSS)

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

via FIRST.org ↗
100.0%probability of exploitation in next 30 days
Very High Risk0.00%
Lower risk than most CVEs100th percentile — riskier than 100% of all scored CVEsHighest risk
92.7%95.2%97.6%100.0%94.4%100.0%Apr 26Aug 26Oct 26

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

6 products · 10 configurations
Application
http serverapache
2 versions
2.4.492.4.50
OS
fedorafedoraproject
2 versions
3435
Application
cloud backupnetapp
all
Application
instantis enterprisetrackoracle
3 versions
17.117.217.3
Application
jd edwards enterpriseone toolsoracle
< 9.2.6.0
range
Application
secure backuporacle
< 18.1.0.1.0
range
Exploits & PoCs
32

Research use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.

EDB-50446webappsmultiple

Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (2)

by ThelastVvV · Oct 25, 2021

EDB-50406webappsmultiple✓ Verified

Apache HTTP Server 2.4.50 - Path Traversal & Remote Code Execution (RCE)

by Lucas Souza · Oct 13, 2021

EDB-50512webappsmultiple✓ Verified

Apache HTTP Server 2.4.50 - Remote Code Execution (RCE) (3)

by Valentin Lobstein · Nov 11, 2021

Detection & mitigation playbook

Vulnerability
  1. Detect

    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`).

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

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

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.
O3 Security · Impact-Aware SCA

Is CVE-2021-42013 in your dependencies?

Find it across , including transitive dependencies.

Actively Exploited: CVE-2021-42013: httpd RCE (Critical 9.8)