CVE-2024-38475: Apache Software Foundation Apache HTTP Server Vulnerability

CVE-2024-38475

NVD

Vulnerability Summary

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.
Severity Level
UNKNOWN
Published Date
Jul 1, 2024
Last Modified
Nov 3, 2025
PoC
Available(Nuclei)
Exploitation Status
ACTIVE
Root Weakness (CWE)
The product prepares a structured message for communication with another component, but encoding or escaping of the data is missing or incorrect.

Affected & Patched Versions

Affected Versions
  • Apache Software Foundation Apache HTTP Server >= 2.4.0 and <= 2.4.59
Patched Versions
  • Apache Software Foundation Apache HTTP Server 2.4.59

What to do

Patch now. CISA lists this flaw as exploited in the wild and set a federal remediation deadline of May 22, 2025.

  1. Check whether you run Apache Software Foundation Apache HTTP Server and which version.
  2. Update to a patched version listed above, then confirm the new version.
  3. Review logs and exposed services for signs of earlier compromise.

CISA 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 KEV Status

Listed in Known Exploited Vulnerabilities
Added: May 1, 2025
Remediation due: May 22, 2025 (deadline passed)

Timeline

  • Jul 1, 2024Published
  • May 1, 2025Added to CISA KEV catalog
  • May 22, 2025KEV remediation due date
  • Nov 3, 2025Record last modified

Score, severity and exploitation changes are tracked from the day Watchtower started logging them.

Get notified about new Apache Software Foundation Apache HTTP Server CVEsYou are reading CVE-2024-38475. Get an email when KEV listings, exploits or new CVEs match your stack.
Set up CVE alerts

Data last checked: Nov 30, 2026 17:15 UTC