Skip to content

CVE-2024-38475 Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

CriticalCVSS 9.1 EPSS 100.0% CISA KEV added 2025-05-01 · due 2025-05-22 Exploited in the wild Scanner template PoC
Published
Updated
Exploit status
Exploited in the wild (confirmed)
CISA SSVC
Actively exploited · automatable: yes · technical impact: total
Technology
Apache HTTP ServerUbuntuDebianNetwork Appliances

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.

CISA Known Exploited Vulnerability

Date added
2025-05-01
Due date (FCEB)
2025-05-22
Ransomware use
Unknown

Required action

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

Upgrade path

20 packages: 19 fixed, 1 with no fix yet.

PackageAffectedFixed inStatus
netapp ONTAP 9 All versions No fix listed No fix yet
alpine/apache2(Alpine v3.17) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.18) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.19) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.20) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.21) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.22) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.23) < 2.4.60-r0 2.4.60-r0 Fixed
alpine/apache2(Alpine v3.24) < 2.4.60-r0 2.4.60-r0 Fixed
Apache HTTP Server >= 2.4.0, < 2.4.60; >= 2.4.0, <= 2.4.59 2.4.60 Fixed
debian/apache2(Debian 12) < 2.4.61-1~deb12u1; = 2.4.57-2; = 2.4.57-3; = 2.4.58-1 +7 more 2.4.61-1~deb12u1 Fixed
debian/apache2(Debian 13) < 2.4.60-1 2.4.60-1 Fixed
debian/apache2(Debian 14) < 2.4.60-1 2.4.60-1 Fixed
SonicWall sma 200 firmware < 10.2.1.14-75sv 10.2.1.14-75sv Fixed
SonicWall sma 210 firmware < 10.2.1.14-75sv 10.2.1.14-75sv Fixed
SonicWall sma 400 firmware < 10.2.1.14-75sv 10.2.1.14-75sv Fixed
SonicWall sma 410 firmware < 10.2.1.14-75sv 10.2.1.14-75sv Fixed
SonicWall sma 500v firmware < 10.2.1.14-75sv 10.2.1.14-75sv Fixed
ubuntu/apache2(Ubuntu 22.04) < 2.4.52-1ubuntu4.10 2.4.52-1ubuntu4.10 Fixed
ubuntu/apache2(Ubuntu 24.04) < 2.4.58-1ubuntu8.2 2.4.58-1ubuntu8.2 Fixed

Affected products

ProductAffected versionsFixed in
debian/apache2(Debian:12) < 2.4.61-1~deb12u1 2.4.61-1~deb12u1
debian/apache2(Debian:12) = 2.4.57-2 No fix listed
debian/apache2(Debian:12) = 2.4.57-3 No fix listed
debian/apache2(Debian:12) = 2.4.58-1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1~deb10u1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1~deb11u1 No fix listed
debian/apache2(Debian:12) = 2.4.59-1~deb12u1 No fix listed
debian/apache2(Debian:12) = 2.4.59-2 No fix listed
debian/apache2(Debian:12) = 2.4.60-1 No fix listed
debian/apache2(Debian:12) = 2.4.61-1~deb11u1 No fix listed
debian/apache2(Debian:13) < 2.4.60-1 2.4.60-1
debian/apache2(Debian:14) < 2.4.60-1 2.4.60-1
ubuntu/apache2(Ubuntu:22.04) < 2.4.52-1ubuntu4.10 2.4.52-1ubuntu4.10
Apache HTTP Server >= 2.4.0, <= 2.4.59 No fix listed
netapp ONTAP 9 All versions No fix listed
alpine/apache2(Alpine:v3.17) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.18) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.19) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.20) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.21) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.22) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.23) < 2.4.60-r0 2.4.60-r0
alpine/apache2(Alpine:v3.24) < 2.4.60-r0 2.4.60-r0
ubuntu/apache2(Ubuntu:24.04) < 2.4.58-1ubuntu8.2 2.4.58-1ubuntu8.2
Show 6 more
ProductAffected versionsFixed in
Apache HTTP Server >= 2.4.0, < 2.4.60 2.4.60
SonicWall sma 200 firmware < 10.2.1.14-75sv 10.2.1.14-75sv
SonicWall sma 210 firmware < 10.2.1.14-75sv 10.2.1.14-75sv
SonicWall sma 400 firmware < 10.2.1.14-75sv 10.2.1.14-75sv
SonicWall sma 410 firmware < 10.2.1.14-75sv 10.2.1.14-75sv
SonicWall sma 500v firmware < 10.2.1.14-75sv 10.2.1.14-75sv

References