CVE-2024-38475 in Apache Http Server and 11 more products
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.
Affects 12 products from 3 vendors. Description from NVD and MITRE.
Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, full confidentiality impact, full integrity impact, no availability impact.
Affected products and versions
| Vendor | Product | Affected versions |
|---|---|---|
| Apache | Http Server | ≥ 2.4.0, < 2.4.60 |
| Netapp | Ontap 9 | No version listed by the source |
| Sonicwall | Sma 200 (device and firmware) | < 10.2.1.14-75sv |
| Sonicwall | Sma 210 (device and firmware) | < 10.2.1.14-75sv |
| Sonicwall | Sma 400 (device and firmware) | < 10.2.1.14-75sv |
| Sonicwall | Sma 410 (device and firmware) | < 10.2.1.14-75sv |
| Sonicwall | Sma 500V (device and firmware) | < 10.2.1.14-75sv |
Fix and vendor advisory
Vendor PSIRT: [email protected]
Exploitation
| CISA known-exploited | Yes added 2025-05-01 |
|---|---|
| Public exploit | Not confirmed |
Record details
| CVE ID | CVE-2024-38475 |
|---|---|
| BreachSpider ID | BS-2024-GLOBAL-198270-C |
| CVSS vector | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| Published | 2024-07-01 |
| Last modified | 2026-06-17 |
| Weakness (CWE) | |
| Source | NVD |
Compensating controls AI-drafted, review before use
Implement strict URL validation and access control policies to prevent unauthorized access to sensitive files and directories. Ensure that all RewriteRules are reviewed and constrained to avoid unsafe substitutions.
NERC CIP: CIP-007 CIP-007-R2
IEC 62443: SR 7.6
Not validated for your network. A compensating control does not replace the vendor fix.
Check devices from your own code or AI agent: free 14-day trial
Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.