CVE-2024-38475

EUVD-2024-37356
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
9.1 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CISA-ADPADP
9.1 CRITICAL
NETWORK
LOW
NONE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 99%
Affected Products (NVD)
VendorProductVersion
apachehttp_server
2.4.0 ≤
𝑥
< 2.4.60
netappontap_9
-
sonicwallsma_200_firmware
𝑥
< 10.2.1.14-75sv
sonicwallsma_210_firmware
𝑥
< 10.2.1.14-75sv
sonicwallsma_400_firmware
𝑥
< 10.2.1.14-75sv
sonicwallsma_410_firmware
𝑥
< 10.2.1.14-75sv
sonicwallsma_500v_firmware
𝑥
< 10.2.1.14-75sv
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
apache2
bookworm
2.4.65-1~deb12u1
fixed
bookworm (security)
2.4.62-1~deb12u2
fixed
bullseye
2.4.62-1~deb11u1
fixed
bullseye (security)
2.4.65-1~deb11u1
fixed
forky
2.4.65-3
fixed
sid
2.4.66-2
fixed
trixie
2.4.65-2
fixed
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
apache2
bionic
Fixed 2.4.29-1ubuntu4.27+esm3
released
focal
Fixed 2.4.41-4ubuntu3.19
released
jammy
Fixed 2.4.52-1ubuntu4.10
released
mantic
Fixed 2.4.57-2ubuntu2.5
released
noble
Fixed 2.4.58-1ubuntu8.2
released
oracular
Fixed 2.4.62-1ubuntu1
released
plucky
Fixed 2.4.62-1ubuntu1
released
trusty
Fixed 2.4.7-1ubuntu4.22+esm10
released
xenial
Fixed 2.4.18-2ubuntu3.17+esm13
released