Skip to content
Vulnerability Intelligence

CVE-2024-38475

CriticalExploitedPublic exploit

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…

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

CatalogAddedRemediation dueRansomware use
CISA KEVMay 1, 2025May 22, 2025Not reported
Industry KEV feedApr 29, 2025May 22, 2025Not reported
CIRCL KEVMay 1, 2025May 22, 2025Not reported
ENISA EUVDMay 1, 2025n/aNot 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
ProductAffected versionsFixed in
HTTP ServerApache>= 2.4.02.4.60
Ontap 9NetappSee advisoryn/a
Sma 200 FirmwareSonicwallSee advisory10.2.1.14-75sv
Sma 210 FirmwareSonicwallSee advisory10.2.1.14-75sv
Sma 400 FirmwareSonicwallSee advisory10.2.1.14-75sv
20 more affected products in the full CVE brief

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

  1. Publicly disclosed

    Jul 2, 2024

  2. Added to Industry KEV feed

    Apr 29, 2025

  3. Added to CISA KEV

    May 1, 2025

  4. Added to CIRCL KEV

    May 1, 2025

  5. Added to ENISA EUVD

    May 1, 2025

  6. Last updated

    Sep 23, 2026

Weakness Type

  • CWE-116 Improper Encoding or Escaping of Output

References

15 more references in the full CVE brief

FAQ

Common Questions.

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