CVE-2024-38475

Known Exploited
Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

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.

Category

9.1
CVSS
Severity: Critical
CVSS 3.1 •
EPSS 92.40% Top 5%
KEV Since 
Vendor Advisory apache.org
Affected: Apache Software Foundation Apache HTTP Server
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2024-38475?
CVE-2024-38475 has been scored as a critical severity vulnerability.
How to fix CVE-2024-38475?
To fix CVE-2024-38475, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2024-38475 being actively exploited in the wild?
It is confirmed that CVE-2024-38475 is actively exploited. Be extra cautious if you are using vulnerable components. According to its EPSS score, there is a ~92% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2024-38475?
CVE-2024-38475 affects Apache Software Foundation Apache HTTP Server.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.