Findings

CVE-2024-38475

Apache HTTP Server Improper Escaping of Output Vulnerability

Published Jul 1, 2024 · updated Jun 17, 2026 · apache http server

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

Detection, updates, and resolution for this record.

  1. Jul 1, 2024 · Catalog

    Detected

    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 subs

  2. May 1, 2025 · CISA KEV

    Known exploited

    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

  3. May 22, 2025 · CISA KEV

    Remediation due

    Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

  4. Jun 17, 2026 · Catalog

    Updated

    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 subs

Required action

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

CISA due date May 22, 2025

Affected

  • cpe apache/http serverversion unspecified
  • cpe netapp/ontap 9version unspecified
  • cpe sonicwall/sma 200 firmwareversion unspecified
  • cpe sonicwall/sma 210 firmwareversion unspecified
  • cpe sonicwall/sma 400 firmwareversion unspecified
  • cpe sonicwall/sma 410 firmwareversion unspecified
  • cpe sonicwall/sma 500v firmwareversion unspecified
  • vendor Apache HTTP Serverversion unspecified

Sources

  • CISA KEVCVE-2024-38475

    Apache HTTP Server contains an improper escaping of output vulnerability in mod_rewrite that 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.

    cisa.gov
  • CVE.orgCVE-2024-38475

    Official CVE identifier

    cve.org
  • FIRST EPSSCVE-2024-38475

    30-day exploitation probability 100.0%

    first.org
  • NIST NVDCVE-2024-38475

    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

    nvd.nist.gov

References