Skip to main content
← All vulnerabilities
CVE-2024-38475

Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

Published
Last modified
published
Listed in CISA KEV
None on Exploit-DB, Metasploit or GitHub

Summary

Apache HTTP Server (the mod_rewrite module, in releases up to and including the 2.4.59 line) is affected. An attacker could use crafted URLs to reach files on the server that are not meant to be accessed directly, potentially leading to source code disclosure or code execution.

Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.

Read the original description

Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL, resulting in code execution or source code disclosure. Substitutions in server context that use a backreferences or variables as the first segment of the substitution are affected.  Some unsafe RewiteRules will be broken by this change and the rewrite flag "UnsafePrefixStat" can be used to opt back in once ensuring the substitution is appropriately constrained.

Timeline

  1. CVE published
  2. Added to CISA KEV

    CISA has evidence of exploitation in the wild

  3. CISA remediation deadline

    Due date for US federal agencies to patch

  4. Record last updated
  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Software Foundation Apache HTTP Server

    From 2.4.0 · through 2.4.59

References 2

httpd.apache.org

security.netapp.com