CVE-2021-41773: Path traversal and file disclosure vulnerability in Apache HTTP Server 2.4.49

Published Oct 5, 2021
·
Updated

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. The original patch issued under this CVE ID is insufficient, please review remediation information under CVE-2021-42013.

Other sources

A flaw was found in a change made to path normalization in Apache HTTP Server 2.4.49. 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 is known to be exploited in the wild. This issue only affects Apache 2.4.49 and not earlier versions. The fix in Apache HTTP Server 2.4.50 was found to be incomplete, see CVE-2021-42013.

Affected Software

10 affected components
Apache HTTP Server
PHPUnit unit testing framework
Laravel web application framework
Apache HTTP Server=2.4.49
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Oracle Instantis Enterprisetrack=17.1
Oracle Instantis Enterprisetrack=17.2
Oracle Instantis Enterprisetrack=17.3
NetApp Cloud Backup

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Apache HTTP Server to a version that resolves this vulnerability.

    Fixed in 2.4.50Patch CVE-2021-42013
  2. Configuration

    Ensure that any requests resolving to files outside the directories configured by Alias-like directives are blocked by applying the usual default access control rule "require all denied".

    Apache HTTP Server (Alias-like directives) access control for files outside aliased directories (require directive) = require all denied
  3. Configuration

    If CGI scripts are enabled for the aliased paths, disable CGI execution for those aliased locations to prevent remote code execution from path traversal.

    Apache HTTP Server (CGI for aliased paths) CGI execution enabled for aliased paths = disabled
  4. Compensating control

    Because this issue is known to be exploited in the wild, monitor Apache access logs for attempted path traversal and file disclosure attempts, and consider temporarily restricting access to the affected vhosts/locations via network controls while remediation is applied.

Event History

Oct 5, 2021
CVE Published
via MITRE·08:40 AM
Data Sourced
via MITRE·08:40 AM
DescriptionWeakness
Data Sourced
via NVD·09:15 AM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 3, 2021
Known Exploited
via CISA·12:00 AM
Known Ransomware
via CISA·12:00 AM
Jan 16, 2024
News Published
via BleepingComputer·05:34 PM
Jan 17, 2024
News Published
via The Register·01:29 AM
Jan 20, 2024
News Published
via BleepingComputer·05:35 PM
Jan 21, 2024
News Published
via The Register·01:34 AM

Peer vulnerabilities

Found alongside the following vulnerabilities.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the CVE ID for this vulnerability?

CVE-2021-41773

2

What is the title of this vulnerability?

Apache HTTP Server Path Traversal Vulnerability

3

What is the severity of CVE-2021-41773?

The severity of CVE-2021-41773 is marked as high with a severity value of 7.5.

4

How does CVE-2021-41773 affect Apache HTTP Server?

CVE-2021-41773 affects Apache HTTP Server version 2.4.49.

5

How can I fix the Apache HTTP Server Path Traversal Vulnerability?

To fix the Apache HTTP Server Path Traversal Vulnerability, update Apache HTTP Server to version 2.4.50 or higher.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203