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.
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.
Affected & Patched Versions
- Apache Software Foundation Apache HTTP Server >= 2.4.0 and <= 2.4.59
- 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.
- Check whether you run Apache Software Foundation Apache HTTP Server and which version.
- Update to a patched version listed above, then confirm the new version.
- 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)
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 alertsExternal References
- Vendor Advisoryhttps://httpd.apache.org/security/vulnerabilities_24.html
- Vendor Advisoryhttps://security.netapp.com/advisory/ntap-20240712-0001/
Data last checked: Nov 30, 2026 17:15 UTC