# CVE-2024-38475: Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

> CVE-2024-38475: Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.. CVSS 9.1 (CVSS 3.1), in CISA KEV.

Canonical: https://rewindex.com/cve/CVE-2024-38475
Last updated: 2025-11-03T21:55:40Z

- Published: 2024-07-01 18:15 UTC · Updated: 2025-11-03 21:55 UTC · Assigner: apache
- CVSS: 9.1 (CVSS 3.1) · Severity: Critical · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 100.0%, 100th percentile (scored 2026-10-25)
- CISA KEV: yes, added 2025-05-01, federal due date 2025-05-22, ransomware use: Unknown
- CWE: CWE-116

## 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.

## 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.

## Affected vendors and products

- apache: http\_server
- Apache Software Foundation: Apache HTTP Server
- netapp: ontap\_9

## References

- [CVE record on cve.org](https://www.cve.org/CVERecord?id=CVE-2024-38475)
- [NVD entry](https://nvd.nist.gov/vuln/detail/CVE-2024-38475)
- [https://httpd.apache.org/security/vulnerabilities\_24.html](https://httpd.apache.org/security/vulnerabilities_24.html)
- [https://security.netapp.com/advisory/ntap-20240712-0001/](https://security.netapp.com/advisory/ntap-20240712-0001/)

---

_Sources: CVE records from the CVE Program (cve.org). CVE® is a registered trademark of The MITRE Corporation. (https://www.cve.org/) This product uses data from the NVD API but is not endorsed or certified by the NVD. (https://nvd.nist.gov/) Known Exploited Vulnerabilities catalog from CISA. (https://www.cisa.gov/known-exploited-vulnerabilities-catalog) EPSS scores from FIRST (Exploit Prediction Scoring System). (https://www.first.org/epss/)_


---
Canonical: https://rewindex.com/cve/CVE-2024-38475 · Markdown: https://rewindex.com/cve/CVE-2024-38475.md · JSON: https://rewindex.com/api/v1/cves/CVE-2024-38475 · Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) · Generated 2026-10-26T02:50:28.345Z
