← Vulnerability feed

Vulnerability record · CVE-2021-42013 · published 7 October 2021

CVE-2021-42013: Apache HTTP Server path traversal and RCE via incomplete fix

Apache · Http Server

The fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside directories configured by Alias-like directives. When those files are not protected by the default "require all denied" configuration, requests succeed, and if CGI scripts are enabled on the aliased paths, this escalates to remote code execution. Only Apache 2.4.49 and 2.4.50 are affected.

9.8 CVSS 3.1 Critical CISA KEV since 3 Nov 2021 Known ransomware use EPSS 100% · top 0.1% CWE-22 · Path traversal
9.8CVSS 3.1 base score, v2 7.5
100%EPSS exploitation probability, 30 days
YesIn CISA KEV, fix deadline passed
6Affected product versions listed by NVD
61References, 12 tagged exploit
17 Jun 2026Last modified by NVD

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 16 September 2026. Confidence: high.

critical priorityCVSS 9.8, active exploitation in CISA KEV with ransomware use, near-maximum EPSS, and public exploit code make this an urgent patch-first issue.

What it is

The fix for CVE-2021-41773 in Apache HTTP Server 2.4.50 was insufficient, leaving a path traversal flaw that lets attackers map URLs to files outside directories configured by Alias-like directives. When those files are not protected by the default "require all denied" configuration, requests succeed, and if CGI scripts are enabled on the aliased paths, this escalates to remote code execution. Only Apache 2.4.49 and 2.4.50 are affected.

Impact

An unauthenticated attacker can read files outside the intended web root and, where CGI is enabled on aliased paths, execute arbitrary code on the server. This yields full compromise of confidentiality, integrity and availability.

Attack surface

Reachable over the network via crafted HTTP requests to the web server; no authentication and no user interaction are required per the CVSS vector (AV:N/AC:L/PR:N/UI:N). Exploitation depends on server configuration: aliased paths lacking "require all denied" and, for RCE, CGI enabled on those paths.

Exploitation

CISA KEV lists it as actively exploited with known ransomware campaign use, and EPSS is near maximum (0.99964, 99.976th percentile). Multiple public exploit references are tagged Exploit, confirming weaponized code is available.

What to do

  • Upgrade Apache HTTP Server to 2.4.51 or later, which contains the complete fix.
  • If immediate upgrade is not possible, ensure all Alias-like directories are protected with "require all denied" and disable CGI execution on aliased paths.
  • Apply vendor patches for downstream products (Fedora, Oracle, NetApp) that bundle the affected httpd versions.
  • Audit httpd configuration for aliased paths and CGI handlers that could expose files outside the web root.
  • Restrict network exposure of affected Apache instances until patched.

Detection

  • Inspect web server access logs for path traversal patterns such as encoded dot-dot sequences (e.g. %2e%2e, .%2e/, %%32%65) in request URIs.
  • Alert on requests to aliased paths that resolve outside the document root or that target /cgi-bin/ with traversal sequences.
  • Monitor for unexpected outbound connections or child processes spawned by the httpd user, which may indicate RCE.
  • Correlate httpd logs with file access to sensitive paths such as /etc/passwd or configuration files.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Exploitation in the wild

CISA added CVE-2021-42013 to the Known Exploited Vulnerabilities catalog on 3 November 2021 as "Apache HTTP Server Path Traversal Vulnerability". CISA reports known use in ransomware campaigns. Required action: Apply updates per vendor instructions. Federal deadline 17 November 2021.

Affected products

6 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://jvn.jp/en/jp/JVN51106450/index.html Third Party Advisory
http://packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html Third Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2021/10/07/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/2 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/3 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/4 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/5 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/09/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/11/4 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/15/3 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/16/1 Mailing ListThird Party Advisory
https://httpd.apache.org/security/vulnerabilities_24.html Release NotesVendor Advisory
https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org Mailing ListPatch
https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org% Mailing List
https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.o Mailing List
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMIIEFINL6FUIOPD2A3M5XC Release Notes
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WS5RVHOIIRECG65ZBTZY7IE Release Notes
https://security.gentoo.org/glsa/202208-20 Third Party Advisory
https://security.netapp.com/advisory/ntap-20211029-0009/ Third Party Advisory
https://tools.cisco.com/security/center/content/CiscoSecurityAdvisory/cisco-sa-apache-httpd-pathtrv-LAzg68cZ Third Party Advisory
https://www.oracle.com/security-alerts/cpuapr2022.html PatchThird Party Advisory
https://www.oracle.com/security-alerts/cpujan2022.html PatchThird Party Advisory
https://www.povilaika.com/apache-2-4-50-exploit/ ExploitThird Party Advisory
http://jvn.jp/en/jp/JVN51106450/index.html Third Party Advisory
http://packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.html Third Party AdvisoryVDB Entry
http://packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.html ExploitThird Party AdvisoryVDB Entry
http://www.openwall.com/lists/oss-security/2021/10/07/6 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/1 Mailing ListThird Party Advisory
http://www.openwall.com/lists/oss-security/2021/10/08/2 Mailing ListThird Party Advisory

Track CVE-2021-42013 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2024-4577PHP-CGI on Windows argument injection leads to remote code executionPHP-CGI on Windows can misinterpret characters in the command line passed to Win32 API functions when certain code pages are configured, due to Windo…KEVEPSS 100%analysed9.8CVE-2021-44026Roundcube Webmail SQL injection via search parametersRoundcube Webmail before 1.3.17 and 1.4.x before 1.4.12 is prone to SQL injection through the search or search_params input. The flaw is remotely rea…KEVEPSS 70%analysed9.8CVE-2021-41773Apache HTTP Server 2.4.49 path traversal and RCEA path normalization flaw introduced in Apache HTTP Server 2.4.49 lets attackers map URLs to files outside directories configured by Alias-like direc…KEVEPSS 100%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed9.8CVE-2021-1871Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions. It affects macOS Big Sur, Catalina, Mojave, iOS and iPadOS, and a remote at…KEVEPSS 7.0%analysed9.8CVE-2020-16846SaltStack Salt API shell injection via crafted web requestsSaltStack Salt through 3002 is vulnerable to OS command injection when the SSH client is enabled and crafted web requests are sent to the Salt API. T…KEVEPSS 100%analysed9.8CVE-2020-1938Apache Tomcat AJP connector file read and JSP execution flawApache Tomcat shipped an AJP Connector enabled by default that listened on all configured IP addresses, and Tomcat treats AJP connections as more tru…KEVEPSS 99%analysed

Source: NIST National Vulnerability Database (record CVE-2021-42013), CISA KEV, FIRST EPSS (scores of 2026-09-16). This page is refreshed as NVD updates the record.