CVE-2024-38475
CriticalExploitedPublic exploitImproper 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…
Published Jul 2, 2024 · Updated Sep 23, 2026 · Also known as ALPINE-CVE-2024-38475, BIT-apache-2024-38475, DEBIAN-CVE-2024-38475, SUSE-SU-2024:2436-1, SUSE-SU-2024:2591-1, SUSE-SU-2024:2624-1, UBUNTU-CVE-2024-38475
Key Facts
Patch immediately- CVE-2024-38475 is a critical-severity vulnerability (CVSS 9.1 v3.1) affecting HTTP Server (Apache), Ontap 9 (Netapp), Sma 200 Firmware (Sonicwall) and 22 more products.
- It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Apr 29, 2025. Public exploit code is available.
- EPSS estimates a 100% probability of exploitation in the next 30 days.
- Fixed versions are available, including apache 2.4.60, HTTP Server 2.4.60, apache2 2.4.18-2ubuntu3.17+esm13.
- Brandefense priority: patch immediately, because it is listed as exploited in the wild.
CVSS v3.1
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
EPSS (30-day exploit likelihood)
100%
Higher than 99.9% of all scored CVEs
Exploited in the wild
Yes
4 catalog listings
Public exploit code
Available
Proof-of-concept or weaponized module
Get the full CVE-2024-38475 brief as a PDF
Every affected product and fixed release, exploitation status and a first 24 hours response checklist, emailed within minutes.
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.
Known-Exploited Catalog Listings
| Catalog | Added | Remediation due | Ransomware use |
|---|---|---|---|
| CISA KEV | May 1, 2025 | May 22, 2025 | Not reported |
| Industry KEV feed | Apr 29, 2025 | May 22, 2025 | Not reported |
| CIRCL KEV | May 1, 2025 | May 22, 2025 | Not reported |
| ENISA EUVD | May 1, 2025 | n/a | Not reported |
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.
Affected Products
345 affected entries in total| Product | Affected versions | Fixed in |
|---|---|---|
| HTTP ServerApache | >= 2.4.0 | 2.4.60 |
| Ontap 9Netapp | See advisory | n/a |
| Sma 200 FirmwareSonicwall | See advisory | 10.2.1.14-75sv |
| Sma 210 FirmwareSonicwall | See advisory | 10.2.1.14-75sv |
| Sma 400 FirmwareSonicwall | See advisory | 10.2.1.14-75sv |
Patched Releases
apache
2.4.60
HTTP Server
2.4.60
apache2
2.4.18-2ubuntu3.17+esm13, 2.4.29-1ubuntu4.27+esm3, 2.4.41-4ubuntu3.19, 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.51-35.51.1, 2.4.52-1ubuntu4.10, 2.4.58-150600.5.18.1, 2.4.58-1ubuntu8.2, 2.4.60-1, 2.4.60-r0, 2.4.61-1.1, 2.4.61-1~deb11u1, 2.4.61-1~deb12u1, 2.4.66-150400.6.57.1, 2.4.7-1ubuntu4.22+esm10
apache2-bin
2.4.7-1ubuntu4.22+esm10
apache2-data
2.4.7-1ubuntu4.22+esm10
apache2-dev
2.4.7-1ubuntu4.22+esm10
apache2-devel
2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.51-35.51.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-doc
2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.51-35.51.1, 2.4.66-150400.6.57.1, 2.4.7-1ubuntu4.22+esm10
apache2-event
2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1
apache2-example-pages
2.4.51-150400.6.29.1, 2.4.51-35.51.1
apache2-manual
2.4.58-150600.5.18.1
apache2-mpm-event
2.4.7-1ubuntu4.22+esm10
apache2-mpm-itk
2.4.7-1ubuntu4.22+esm10
apache2-mpm-prefork
2.4.7-1ubuntu4.22+esm10
apache2-mpm-worker
2.4.7-1ubuntu4.22+esm10
apache2-prefork
2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.51-35.51.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-suexec
2.4.7-1ubuntu4.22+esm10
apache2-suexec-custom
2.4.7-1ubuntu4.22+esm10
apache2-suexec-pristine
2.4.7-1ubuntu4.22+esm10
apache2-tls13
2.4.51-35.51.1
apache2-tls13-devel
2.4.51-35.51.1
apache2-tls13-doc
2.4.51-35.51.1
apache2-tls13-example-pages
2.4.51-35.51.1
apache2-tls13-prefork
2.4.51-35.51.1
apache2-tls13-utils
2.4.51-35.51.1
Timeline
Publicly disclosed
Jul 2, 2024
Added to Industry KEV feed
Apr 29, 2025
Added to CISA KEV
May 1, 2025
Added to CIRCL KEV
May 1, 2025
Added to ENISA EUVD
May 1, 2025
Last updated
Sep 23, 2026
Weakness Type
- CWE-116 Improper Encoding or Escaping of Output
References
- advisoryRHSA-2024:4719
- advisoryRHSA-2024:4720
- advisoryRHSA-2024:4726
- advisoryRHSA-2024:4820
- advisoryRHSA-2024:4827
FAQ
Common Questions.
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.
Affected: HTTP Server (Apache) versions >= 2.4.0; Ontap 9 (Netapp); Sma 200 Firmware (Sonicwall), among others. The full list is in the CVE brief.
It is exploited in the wild, listed in CISA KEV, Industry KEV feed, CIRCL KEV, ENISA EUVD since Apr 29, 2025.
Yes. It was added on May 1, 2025 with a federal remediation due date of May 22, 2025.
Public exploit code is available.
Fixed versions are available, including apache 2.4.60, HTTP Server 2.4.60, apache2 2.4.18-2ubuntu3.17+esm13.
Brandefense priority: patch immediately, because it is listed as exploited in the wild.
Is CVE-2024-38475 Running On Your Attack Surface?
Brandefense maps vulnerabilities like this one to your internet-facing assets and tells you exactly where to patch.
Request A Demo