CVE-2021-42013: Path Traversal and Remote Code Execution in Apache HTTP Server 2.4.49 and 2.4.50 (incomplete fix of CVE-2021-41773)

Published Oct 7, 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. This CVE ID resolves an incomplete patch for CVE-2021-41773.

Other sources

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.

Affected Software

11 affected components
Apache HTTP Server
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

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.50
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Patch CVE-2021-41773
  3. Configuration

    Ensure that requests for files outside the directories configured by Alias-like directives are protected by the usual default configuration "require all denied" so those requests cannot succeed.

    Apache HTTP Server require all denied (for files outside Alias-like directives) = enabled
  4. Configuration

    If CGI scripts are enabled for the aliased pathes (Alias-like directives), disable CGI execution for those aliased paths to prevent remote code execution.

    Apache HTTP Server CGI scripts enabled for aliased paths = disabled
  5. Compensating control

    Apply additional hardening for Apache 2.4.49 and 2.4.50 where the CVE-2021-41773 fix was insufficient by ensuring the conditions enabling the attack are not present (i.e., files outside Alias-like directories are denied and CGI is not enabled for those aliased paths).

Event History

Oct 7, 2021
CVE Published
via MITRE·03:50 PM
Data Sourced
via MITRE·03:50 PM
DescriptionWeakness
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
Nov 3, 2021
Known Exploited
via CISA·12:00 AM
Known Ransomware
via CISA·12:00 AM
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 vulnerability ID?

The vulnerability ID is CVE-2021-42013.

2

What is the title of the vulnerability?

The title of the vulnerability is Apache HTTP Server Path Traversal Vulnerability.

3

What is the severity of CVE-2021-42013?

The severity of CVE-2021-42013 is critical with a CVSS score of 9.8.

4

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

CVE-2021-42013 affects Apache HTTP Server versions 2.4.49 and 2.4.50.

5

How can I fix the Apache HTTP Server Path Traversal Vulnerability (CVE-2021-42013)?

To fix the vulnerability, update Apache HTTP Server to version 2.4.51 or apply the necessary patches provided by the vendor.

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