CVE-2024-38475

CVE-2024-38475 is a critical-severity vulnerability in Apache Http Server with a CVSS 3.x base score of 9.1. It is listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, confirming it has been exploited in the wild (added 2025-05-01). The underlying weakness is classified as CWE-116.

Key facts

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.

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.
How severe is CVE-2024-38475?
CVE-2024-38475 has a CVSS 3.x base score of 9.1, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability none.
Is CVE-2024-38475 being actively exploited?
Yes. CVE-2024-38475 is on CISA's Known Exploited Vulnerabilities (KEV) catalog, added on 2025-05-01, which means active exploitation has been confirmed. It should be prioritised for remediation.
What products are affected by CVE-2024-38475?
CVE-2024-38475 primarily affects Apache Http Server. In total, 7 product configurations (CPEs) are listed as vulnerable; see the affected-products list for the exact versions.
How do I fix CVE-2024-38475?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Because this CVE is known to be actively exploited, treat remediation as urgent — CISA KEV typically sets a short remediation deadline.
Does CVE-2024-38475 have an EU (EUVD) identifier?
Yes. CVE-2024-38475 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-37356. It is also flagged as exploited in the EUVD (since 2025-05-01).
When was CVE-2024-38475 published?
CVE-2024-38475 was published on 2024-07-01 and last updated on 2026-06-17.

References

Affected products (7)

More vulnerabilities in Apache Http Server

All CVEs affecting Apache Http Server →

Other CWE-116 vulnerabilities

Browse all CWE-116 vulnerabilities →

Threat intelligence

Threat-intel indicators referencing this CVE: