Live threats

All CVEs / Apache

CVE-2021-42013Apache HTTP Server

Path Traversal and Remote Code Execution in Apache HTTP Server

Critical 9.8 KEVRansomware No auth neededHigh EPSS

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.

Source text, unmodified. NVD.

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.

Source text, unmodified. CISA KEV.

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.

Vendor advisory · httpd.apache.org ↗

  1. Apply the vendor's security update for HTTP Server.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was November 17, 2021.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected products (CPE)

VendorProductVersions
apachehttp_server2.4.49
apachehttp_server2.4.50
fedoraprojectfedora34
fedoraprojectfedora35
oracleinstantis_enterprisetrack17.1
oracleinstantis_enterprisetrack17.2
oracleinstantis_enterprisetrack17.3
oraclejd_edwards_enterpriseone_tools< 9.2.6.0
oraclesecure_backup< 18.1.0.1.0
netappcloud_backupall

Official sources

References

Links published by the sources. Open them with care.