CVE-2024-38475

CRITICAL CISA KEV
Published Jul 1, 2024 Modified Nov 17, 2025 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.

CVSS v3.1 Score

9.1
CRITICAL
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

CISA Known Exploited Vulnerability

This vulnerability is actively exploited in the wild.

Added: May 1, 2025 Remediation due: May 22, 2025

Weakness Type (CWE)

CWE-116 CWE-116

Affected Products

Vendor Product
apache http_server
netapp ontap_9
sonicwall sma_200_firmware
sonicwall sma_200
sonicwall sma_210_firmware
sonicwall sma_210
sonicwall sma_400_firmware
sonicwall sma_400
sonicwall sma_410_firmware
sonicwall sma_410
sonicwall sma_500v_firmware
sonicwall sma_500v

References

Frequently Asked Questions

What is CVE-2024-38475? +
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. It has a CVSS v3.1 base score of 9.1 (CRITICAL). This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild.
How severe is CVE-2024-38475? +
CVE-2024-38475 has a CVSS v3.1 score of 9.1 out of 10, rated CRITICAL. This is a critical vulnerability that should be patched immediately.
What products are affected by CVE-2024-38475? +
CVE-2024-38475 affects products from apache, netapp, sonicwall, specifically: http_server, ontap_9, sma_200, sma_200_firmware, sma_210, sma_210_firmware, sma_400, sma_400_firmware, sma_410, sma_410_firmware, sma_500v, sma_500v_firmware. Check the affected products table above for specific version ranges.
How do I check if I'm vulnerable to CVE-2024-38475? +
You can use Secably's free Website Scanner to check your website for known vulnerabilities. For infrastructure scanning, use the Port Scanner to identify exposed services that may be affected. Check the vendor advisories linked above for specific patch and version information.

Related Vulnerabilities

Don't wait for an exploit

Scan your website for vulnerabilities like CVE-2024-38475 — free, no signup required.

Start Free Scan