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

CVE-2024-38475 affects 288 listed versions of Lenovo ONTAP, NetApp ONTAP, SonicWall SMA 200 firmware and 5 more products in the Dawnsentry catalogue. It is known to be exploited in the wild.

9.1CVSS critical
In CISA's KEV catalogue since 2025-05-01exploitation
100%EPSS (next 30 days)
1 July 2024published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

Lenovo ONTAP

98 of 136 listed versions are affected. Fixed in 9.15.1 P3, 9.14.1 P8, 9.13.1 P13, 9.12.1 P16, 9.11.1 P19. The newest release, 9.19.1, is not affected.

9.15.1 9.14.1 9.13.1-p5 9.13.1-p4 9.13.1 9.13.0 9.12.1-p8 9.12.1 9.12.0 9.11.1-p2 9.11.1 9.11.1-rc1 9.10.1 9.10.0 9.9.1-p3 9.9.1 9.8-p7 9.8-p5 9.8-p3 9.8 9.7-p14 9.7-p13 9.7-p12 9.7-p9 9.7-p7 9.7-p6 9.7-p3 9.7-p2 9.7-p1 9.7 9.7-rc1 9.6-p15 9.6-p12 9.6-p9 9.6-p8d1 9.6-p8 9.6-p7d1 9.6-p7 9.6-p6d7 9.6-p6d6 9.6-p6d3 9.6-p6d2 9.6-p6d1 9.6-p6 9.6-p5d8 9.6-p5d6 9.5-p17 9.5-p16 9.5-p15 9.5-p14 9.5-p13d1 9.5-p13 9.5-p12d4 9.5-p12d1 9.5-p12 9.5-p11d4 9.5-p11d3 9.5-p11d2 9.5-p11 9.5-p10d2 and 38 more

NetApp ONTAP

98 of 136 listed versions are affected. Fixed in 9.15.1 P3, 9.14.1 P8, 9.13.1 P13, 9.12.1 P16, 9.11.1 P19. The newest release, 9.19.1, is not affected.

9.15.1 9.14.1 9.13.1-p5 9.13.1-p4 9.13.1 9.13.0 9.12.1-p8 9.12.1 9.12.0 9.11.1-p2 9.11.1 9.11.1-rc1 9.10.1 9.10.0 9.9.1-p3 9.9.1 9.8-p7 9.8-p5 9.8-p3 9.8 9.7-p14 9.7-p13 9.7-p12 9.7-p9 9.7-p7 9.7-p6 9.7-p3 9.7-p2 9.7-p1 9.7 9.7-rc1 9.6-p15 9.6-p12 9.6-p9 9.6-p8d1 9.6-p8 9.6-p7d1 9.6-p7 9.6-p6d7 9.6-p6d6 9.6-p6d3 9.6-p6d2 9.6-p6d1 9.6-p6 9.6-p5d8 9.6-p5d6 9.5-p17 9.5-p16 9.5-p15 9.5-p14 9.5-p13d1 9.5-p13 9.5-p12d4 9.5-p12d1 9.5-p12 9.5-p11d4 9.5-p11d3 9.5-p11d2 9.5-p11 9.5-p10d2 and 38 more

SonicWall SMA 200 firmware

19 of 22 listed versions are affected. Fixed in 10.2.1.14-75sv. The newest release, 10.2.2.2-92sv, is not affected.

10.2.1.13-72sv 10.2.1.11-65sv 10.2.1.10-62sv 10.2.1.9-57sv 10.2.1.7-50sv 10.2.1.6-37sv 10.2.1.5-34sv 10.2.1.4-31sv 10.2.1.2-24sv 10.2.1.1-19sv 10.2.1.0-17sv 10.2.0.9-41sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3

SonicWall SMA 400 firmware

19 of 22 listed versions are affected. Fixed in 10.2.1.14-75sv. The newest release, 10.2.2.2-92sv, is not affected.

10.2.1.13-72sv 10.2.1.11-65sv 10.2.1.10-62sv 10.2.1.9-57sv 10.2.1.7-50sv 10.2.1.6-37sv 10.2.1.5-34sv 10.2.1.4-31sv 10.2.1.2-24sv 10.2.1.1-19sv 10.2.1.0-17sv 10.2.0.9-41sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3

SonicWall SMA 210 firmware

17 of 22 listed versions are affected. Fixed in 10.2.1.14-75sv. The newest release, 10.2.2.3, is not affected.

10.2.1.13-72sv 10.2.1.11-65sv 10.2.1.10-62sv 10.2.1.9-57sv 10.2.1.7-50sv 10.2.1.6-37sv 10.2.1.5-34sv 10.2.1.4-31sv 10.2.1.2-24sv 10.2.1.1-19sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3

SonicWall SMA 410 firmware

17 of 22 listed versions are affected. Fixed in 10.2.1.14-75sv. The newest release, 10.2.2.3, is not affected.

10.2.1.13-72sv 10.2.1.11-65sv 10.2.1.10-62sv 10.2.1.9-57sv 10.2.1.7-50sv 10.2.1.6-37sv 10.2.1.5-34sv 10.2.1.4-31sv 10.2.1.2-24sv 10.2.1.1-19sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3

SonicWall SMA 500v firmware

17 of 22 listed versions are affected. Fixed in 10.2.1.14-75sv. The newest release, 10.2.2.3, is not affected.

10.2.1.13-72sv 10.2.1.11-65sv 10.2.1.10-62sv 10.2.1.9-57sv 10.2.1.7-50sv 10.2.1.6-37sv 10.2.1.5-34sv 10.2.1.4-31sv 10.2.1.2-24sv 10.2.1.1-19sv 10.0.0.0 9.0.0.11-31sv 9.0.0.10-28sv 9.0.0.9-26sv 9.0.0.5-19sv 9.0.0.4 9.0.0.3

Apache HTTP Server

3 of 89 listed versions are affected. Fixed in 2.4.60. The newest release, 2.4.71, is not affected.

2.4.59 2.4.58 2.4.57

What it is

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (NVD)

Published by Apache Software Foundation on 1 July 2024. Last changed 17 June 2026. Exploit code is public (Metasploit or Nuclei).

Sources

Check one version you run: look CVE-2024-38475 up, or pick a product and version in the quick lookup.

Updated 2 December 2026.