CVE-2021-42013
CONFIRMED EXPLOITEDKNOWN RANSOMWARE CAMPAIGN USEApache HTTP Server Path Traversal Vulnerability
Is Apache HTTP Server affected by CVE-2021-42013?
Apache HTTP Server is listed in the CISA Known Exploited Vulnerabilities catalog for CVE-2021-42013, added on 2021-11-03. CISA only adds a CVE once it has evidence of exploitation in the wild, so the patching question is not whether it can be attacked but how soon your instances must be updated.
Affected products published by NIST NVD (10 vulnerable CPE entries): apache http_server, fedoraproject fedora, netapp cloud_backup, oracle instantis_enterprisetrack, oracle jd_edwards_enterpriseone_tools and oracle secure_backup.
Published CPE version bounds mark releases below 18.1.0.1.0 as vulnerable. Those bounds describe what is affected, not what patches it: upgrade to the fixed release named in the vendor advisory below, then confirm the installed version with your package manager or scanner.
The CISA remediation deadline for this entry is 2021-11-17, and CISA records known ransomware campaign use against it.
RELATED VULNERABILITY DOSSIERS
Other catalog entries that share this product, vendor, or weakness, or that sit next to this advisory in the CISA KEV timeline.
- CVE-2024-38475Same productApache HTTP Server
Apache HTTP Server Improper Escaping of Output Vulnerability
- CVE-2021-41773Same productApache HTTP Server
Apache HTTP Server Path Traversal Vulnerability
- CVE-2019-0211Same productApache HTTP Server
Apache HTTP Server Privilege Escalation Vulnerability
- CVE-2026-129448Same vendorApache Roller
Apache Roller Deserialization of Untrusted Data Vulnerability
- CVE-2021-42258Neighboring entryBQE BillQuick Web Suite
BQE BillQuick Web Suite SQL Injection Vulnerability
1. VULNERABILITY OVERVIEW & TECHNICAL MECHANISM
Apache HTTP Server contains a path traversal vulnerability that allows an attacker to perform remote code execution if files outside directories configured by Alias-like directives are not under default require all denied or if CGI scripts are enabled. This CVE ID resolves an incomplete patch for CVE-2021-41773.
Get Stack Watch email when a KEV hits your stack ($99/year or $12/month)
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.
2. AFFECTED VERSIONS, PRODUCTS & VERIFIED CPE CONFIGURATIONS
3. EXPLOITATION EVIDENCE, IMPACT & HOW TO DETECT IT
This vulnerability was added to the CISA Known Exploited Vulnerabilities (KEV) catalog on 2021-11-03. Inclusion in KEV requires verified evidence of active exploitation in the wild. Known ransomware campaign use is recorded by CISA as: "Known".
Note: KEV inclusion confirms that threat actors have exploited this flaw in real-world incidents; it does not imply every deployment of HTTP Server has been compromised.
- CVSS vector indicates high impact to Confidentiality (C:H), Integrity (I:H), and Availability (A:H) of the affected component.
- HTTP / web application surface (Apache HTTP Server): inspect reverse-proxy, WAF, and application access/error logs alongside `Zeek http.log` and `Suricata eve.json` for anomalous requests targeting exposed endpoints.
- Path Traversal (CWE-22): inspect service access logs and filesystem audit trails (`auditd`, Wazuh FIM) for directory traversal sequences (`../`, `%2e%2e%2f`) or unexpected file writes.
- Inventory all hosts running Apache HTTP Server and compare installed package/build versions against the NVD CPE configurations and vendor advisory below.
4. FIXED VERSION, MITIGATIONS & OFFICIAL ADVISORY CITATIONS
Apply updates per vendor instructions.
- http://jvn.jp/en/jp/JVN51106450/index.htmlThird Party Advisory
- http://packetstormsecurity.com/files/164501/Apache-HTTP-Server-2.4.50-Path-Traversal-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/164609/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/164629/Apache-2.4.49-2.4.50-Traversal-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/164941/Apache-HTTP-Server-2.4.50-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/165089/Apache-HTTP-Server-2.4.50-CVE-2021-42013-Exploitation.htmlThird Party AdvisoryVDB Entry
- http://packetstormsecurity.com/files/167397/Apache-2.4.50-Remote-Code-Execution.htmlExploitThird Party AdvisoryVDB Entry
- http://www.openwall.com/lists/oss-security/2021/10/07/6Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/08/1Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/08/2Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/08/3Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/08/4Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/08/5Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/08/6Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/09/1Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/11/4Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/15/3Mailing ListThird Party Advisory
- http://www.openwall.com/lists/oss-security/2021/10/16/1Mailing ListThird Party Advisory
- https://httpd.apache.org/security/vulnerabilities_24.htmlRelease NotesVendor Advisory
- https://lists.apache.org/thread.html/r17a4c6ce9aff662efd9459e9d1850ab4a611cb23392fc68264c72cb3%40%3Ccvs.httpd.apache.org%3EMailing ListPatch
- https://lists.apache.org/thread.html/r7c795cd45a3384d4d27e57618a215b0ed19cb6ca8eb070061ad5d837%40%3Cannounce.apache.org%3EMailing List
- https://lists.apache.org/thread.html/rb5b0e46f179f60b0c70204656bc52fcb558e961cb4d06a971e9e3efb%40%3Cusers.httpd.apache.org%3EMailing List
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/RMIIEFINL6FUIOPD2A3M5XC6DH45Y3CC/Release Notes
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WS5RVHOIIRECG65ZBTZY7IEJVWQSQPG3/Release Notes
- https://security.gentoo.org/glsa/202208-20Third Party Advisory
SCORING & VECTOR TELEMETRY
Primary assessment authored by NIST NVD (nvd@nist.gov).
EPSS estimates the statistical probability of exploitation activity in the next 30 days—it is not proof of confirmed exploitation.
RELEVANT DEFENSIVE TOOLS
Curated open-source defensive and verification utilities from The Loot applicable to this asset class:
Fast, template-driven vulnerability scanner by ProjectDiscovery
Intercepting web proxy and automated web application security testing tool
Multi-threaded IDS, IPS, and network security monitoring engine
Behavior-based open-source intrusion prevention system (IPS) and log analysis engine