BLACKOUT MAP

Apache · HTTP Server

CVE-2024-38475

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

Exploited in attacks Critical 9.1 Attack chance: >99.9%
Share

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.

CISA: Apache HTTP Server contains an improper escaping of output vulnerability in mod_rewrite that 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.

What to do

Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.

Deadline for US federal agencies: May 22, 2025

Added to the CISA list
May 1, 2025
Published
July 1, 2024
Severity
Critical 9.1 CVSS 3.1
Chance of attacks in the next 30 days (EPSS)
>99.9% in the top 0.1% of all known vulnerabilities
Weakness
CWE-116
More details
NVD · CVE.org · CISA
All references (2)

More exploited flaws from Apache

AddedVulnerabilityProductSeverityAttack chance
Nov 3, 2021Privilege EscalationCVE-2019-0211HTTP ServerHigh 7.865%
Nov 3, 2021Path TraversalCVE-2021-41773used by ransomwareHTTP ServerHigh 7.5>99.9%
Nov 3, 2021Path TraversalCVE-2021-42013used by ransomwareHTTP ServerCritical 9.8>99.9%
Oct 8, 2026Command InjectionCVE-2016-3081StrutsHigh 8.197%
Aug 4, 2026Missing Encryption of Sensitive DataCVE-2026-34486TomcatHigh 7.599%
Apr 16, 2026Improper Input ValidationCVE-2026-34197ActiveMQHigh 8.898%
Apr 1, 2025Path EquivalenceCVE-2025-24813TomcatCritical 10.099.9%
Feb 4, 2025Forced BrowsingCVE-2024-45195OFBizCritical 9.8>99.9%

All of them →

Sources: Known Exploited Vulnerabilities (CISA, public domain), CVE records (cve.org) and EPSS (FIRST). The chance of attacks is the EPSS estimate that someone will try to exploit the flaw in the next 30 days.