CVE-2024-38475 Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| Product | Affected versions | Fixed 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
| Product | Affected versions | Fixed 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
- Debian Security Tracker CVE-2024-38475 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6885-1 vendor-advisory
- USN-6885-3 vendor-advisory
- USN-6885-5 vendor-advisory
- www.cve.org
- httpd.apache.org vendor-advisory
- security.netapp.com third-party-advisory
- www.cisa.gov government-resource third-party-advisory us-government-resource
- www.blackhat.com third-party-advisory
- github.com patch
- www.openwall.com third-party-advisory
- psirt.global.sonicwall.com third-party-advisory
- security.alpinelinux.org vendor-advisory
- ENISA EUVD EUVD-2024-37356 third-party-advisory