CVE-2024-38475

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.

Severity
CRITICAL
CVSS v3
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N · source nvd
Exploit chance (EPSS)
99.957%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-05-01
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 1

Weakness

CISA Known Exploited Vulnerabilities entry

Vulnerability nameApache HTTP Server Improper Escaping of Output Vulnerability
Vendor / productApache / HTTP Server
Date added2025-05-01
Federal remediation due date2025-05-22
Required actionApply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
Known ransomware campaign useUnknown

CISA SSVC decision points

Exploitationactive
Automatableyes
Technical impacttotal
Scored2025-05-02

Timeline

  1. 2024-07-01Published by the CNA18:15 UTC
  2. 2025-05-01Added to the CISA KEV catalog304 days after publication
  3. 2025-05-02CISA SSVC decision recorded305 days after publication

The timeline shows what already happened. To be told when this CVE changes next, watch it from the API.

Exploit and advisory records

Nuclei templates:

Affected products

Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.

ProductVulnerable versionsFixed in
apache http_serverfrom 2.4.0 before 2.4.60fixed in 2.4.602.4.60
netapp ontap_9
sonicwall sma_200_firmwarebefore 10.2.1.14-75svfixed in 10.2.1.14-75sv10.2.1.14-75sv
sonicwall sma_210_firmwarebefore 10.2.1.14-75svfixed in 10.2.1.14-75sv10.2.1.14-75sv
sonicwall sma_400_firmwarebefore 10.2.1.14-75svfixed in 10.2.1.14-75sv10.2.1.14-75sv
sonicwall sma_410_firmwarebefore 10.2.1.14-75svfixed in 10.2.1.14-75sv10.2.1.14-75sv
sonicwall sma_500v_firmwarebefore 10.2.1.14-75svfixed in 10.2.1.14-75sv10.2.1.14-75sv

Products and versions as NVD and the vendor that published the CVE list them.

References

Get more CVE data from the API.

Free without a key or signup. Pro adds monitoring and higher limits: pricing.

Sources