CVE-2021-42013Apache HTTP Server
Path Traversal and Remote Code Execution in Apache HTTP Server
Critical 9.8 KEVRansomware No auth neededHigh EPSS
Follow: this CVE · Apache · Apache HTTP Server We alert you by email or Slack (account required).
- Priority
- 99
- CVSS 3.1
- 9.8
- EPSS
- 100.0% probability of exploitation in 30 days · percentile 100
- Auth required
- No
- In KEV since
- Nov 3, 2021
- CISA deadline
- Nov 17, 2021
- Ransomware use
- Confirmed
- Published
- Oct 7, 2021
- Updated
- Jun 17, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-22
- SSVC (CISA)
- Exploitation: active · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
Apache HTTP Server 2.4.49 and 2.4.50 contain a path traversal vulnerability that allows an unauthenticated attacker to access files outside configured directories. If CGI scripts are enabled on aliased paths, this can lead to remote code execution. CISA confirmed this vulnerability as actively exploited.
Show the original NVD text
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.
Exploitation confirmed by CISA
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.
Action required by CISA: Apply updates per vendor instructions.
What to do
Patch available
Update Apache HTTP Server to version 2.4.51 or later. Ensure directories outside aliased paths are protected with "require all denied" and disable CGI if not required.
- Apply the vendor's security update for HTTP Server.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was November 17, 2021.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | http_server | 2.4.49 |
| apache | http_server | 2.4.50 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| oracle | instantis_enterprisetrack | 17.1 |
| oracle | instantis_enterprisetrack | 17.2 |
| oracle | instantis_enterprisetrack | 17.3 |
| oracle | jd_edwards_enterpriseone_tools | < 9.2.6.0 |
| oracle | secure_backup | < 18.1.0.1.0 |
| netapp | cloud_backup | all |
Official sources
References
Links published by the sources. Open them with care.
- jvn.jp Third Party Advisory
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- packetstormsecurity.com Third Party Advisory VDB Entry
- packetstormsecurity.com Exploit Third Party Advisory VDB Entry
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- www.openwall.com Mailing List Third Party Advisory
- httpd.apache.org Release Notes Vendor Advisory
- lists.apache.org Mailing List Patch
- lists.apache.org Mailing List
- lists.apache.org Mailing List
- lists.fedoraproject.org Release Notes
- lists.fedoraproject.org Release Notes
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- tools.cisco.com Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.povilaika.com Exploit Third Party Advisory
- www.cisa.gov US Government Resource