Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
CVE-2024-38475Published 1 Jul 2024, 18:15 UTC
Exploited in the wild
CISA added it to the Known Exploited Vulnerabilities list on 1 May 2025; US federal agencies must fix it by 22 May 2025.
Real-world risk
8.0/ 10High
Act now: it is being exploited.
PreliminaryFrom the CVSS vector only · confidence low
CVSS
9.1
scored by CISA, CVSS 3.1
In plain words
No plain-language summary yet. The original description is below.
Original description (from apache)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| Apache HTTP ServerUbiquitous | >= 2.4.0, <= 2.4.59 | — |
| ONTAP 9Common | < * | — |
What to do
Check the vendor advisory in the references below for fixed versions and workarounds.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | NoneNothing | From the CVSS vector | 1.00 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T5: Exploited in the wild (× 1.00)
On CISA KEV or VulnCheck KEV, flagged exploited by ENISA's EUVD, CISA's SSVC says active, or the vendor's or CNA's own page says it is exploited
- On CISA’s Known Exploited Vulnerabilities list
- Public proof of concept on GitHub
- Public proof of concept on GitHub
- Nuclei scanner template (link)
- CISA SSVC: exploitation active
EPSS 100.0% chance of exploitation in 30 days (percentile 100), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together1.000
- Threat T5: Exploited in the wild1.000
- 10 × impact 0.8 × prerequisites 1 × threat 18.000
- Rounded to one decimal between 0.1 and 108.0
Exploitation and evidence timeline
- 1 Jul 2024 Published
- 1 May 2025 Added to CISA KEV
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Public proof of concept on GitHub first seen
- 3 Dec 2026 Nuclei scanner template first seen
- 3 Dec 2026 CISA SSVC: exploitation active first seen
- 3 Dec 2026 Risk 8.0 (cvss fallback)
Weakness
CWE-116
References
- https://httpd.apache.org/security/vulnerabilities_24.htmlvendor-advisory, x-transferred
- https://security.netapp.com/advisory/ntap-20240712-0001/x-transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475government-resource
- https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227
- https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf
- http://www.openwall.com/lists/oss-security/2024/07/01/8
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018
- CVE-2024-38475 on CVE.org