Skip to main content
ExploitedIn CISA KEVFix available

CVE-2024-38475

Exploitation confirmed. First attested on 2025-05-01 by CISA-ADP, CISA KEV, GCVE · kevintel, GCVE · shadowserver.

  • Published2024-07-01
  • Fixed in2.4.60
  • WeaknessCWE-116

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-07-0119:15CVE publishedNVD
  2. 2025-05-01Added to the CISA KEV catalogCISA KEV
  3. 2025-05-01Listed as exploited by GCVEGCVE
  4. 2025-05-01Exploitation first reportedCISA KEV
  5. 2025-05-0203:55SSVC exploitation set to activeCISA-ADP

Versions per branch

NVD · OSV · CISA-ADP
Apache HTTP Server
BranchAffectedFixed in
2.4≥ 2.4.0, < 2.4.602.4.60
2.4≥ 2.4.0, ≤ 2.4.59no fix published
Netapp ontap 9
BranchAffectedFixed in
—all versionsno fix published
Sonicwall sma 200 firmwareversion to verify
BranchAffectedFixed in
10.2< 10.2.1.14-75sv10.2.1.14-75sv

4 more products in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As apache, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Apache Software Foundation Apache HTTP Serverother versions: not affected
    Affected
    • ≥ 2.4.0, ≤ 2.4.59no fix statedsemver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-07-12

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • apacheMageia:9all versions · fixed in 2.4.61-1.mga9
  • apache2Ubuntu:Pro:18.04:LTSall versions · fixed in 2.4.29-1ubuntu4.27+esm3
  • apache2Ubuntu:Pro:16.04:LTSall versions · fixed in 2.4.18-2ubuntu3.17+esm13
  • apache2Ubuntu:Pro:14.04:LTSall versions · fixed in 2.4.7-1ubuntu4.22+esm10
  • apache2Ubuntu:24.04:LTSall versions · fixed in 2.4.58-1ubuntu8.2
  • apache2Ubuntu:22.04:LTSall versions · fixed in 2.4.52-1ubuntu4.10
  • apache2Ubuntu:20.04:LTSall versions · fixed in 2.4.41-4ubuntu3.19
  • apache2TuxCare:Ubuntu:18.04all versions · fixed in 2.4.29-1ubuntu4.27+tuxcare.els2and 8 other packages

142 more package ranges on OSV.dev

Vendor advisories

  • CVE-2024-38475 Red Hat Product Security749 products fixed

    httpd: Improper escaping of output in mod_rewrite

  • RHSA-2024:5239 Red Hat Product Security57 products fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.57 SP5 security update

  • RHSA-2024:5240 Red Hat Product Security1 product fixed

    Red Hat Security Advisory: Red Hat JBoss Core Services Apache HTTP Server 2.4.57 SP5 security update

  • RHSA-2024:4943 Red Hat Product Security38 products fixed

    Red Hat Security Advisory: httpd security update

  • RHSA-2024:4938 Red Hat Product Security11 products fixed

    Red Hat Security Advisory: httpd security update

  • RHSA-2024:4862 Red Hat Product Security75 products fixed

    Red Hat Security Advisory: httpd security update

7 more advisories

Full record on NVD

Fix

  1. Update Apache HTTP Server to 2.4.60
  2. CISA’s 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.due 2025-05-22
  3. Vendor fix Red Hat Product Security RHSA-2024:5239 · 57 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2024:5240 · 1 productBefore applying the update, back up your existing installation, including all applications, configuration files, databases and database settings, and so on. The References section of this erratum contains a download link. You must be logged in to download the update.
  5. Vendor fix Red Hat Product Security RHSA-2024:4943 · 38 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  6. Vendor fix Red Hat Product Security RHSA-2024:4726 · 75 productsFor details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  7. Workaround from the vendor Red Hat Product Security RHSA-2024:5239 · 57 productsRed Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
available
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Metasploit modules
none listed
Metasploit Framework

CISA Known Exploited Vulnerability

Date added
2025-05-01
Patch due date
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.

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Published
2024-07-01
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-pf44-j75v-mhr8

Frequently asked questions

What is CVE-2024-38475?

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.

Is CVE-2024-38475 actively exploited?

Yes. CVE-2024-38475 is on the CISA Known Exploited Vulnerabilities (KEV) catalog, meaning it has been confirmed as actively exploited in the wild. CISA requires federal agencies to patch by 2025-05-22.

What is the CVSS score for CVE-2024-38475?

CVE-2024-38475 has a CVSS v3 base score of 9.1 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N.

Running Apache HTTP Server? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record