Live threats

All CVEs / Apache

CVE-2024-38475Apache HTTP Server

Improper Output Escaping in Apache HTTP Server mod_rewrite

Critical 9.1 KEV No auth neededHigh EPSS

Priority
77
CVSS 3.1
9.1
EPSS
77.9%
probability of exploitation in 30 days · percentile 100
Auth required
No
In KEV since
May 1, 2025
CISA deadline
May 22, 2025
Ransomware use
Unknown
Published
Jul 1, 2024
Updated
Jun 17, 2026
Category
Server · Cross-platform
Weakness (CWE)
CWE-116
SSVC (CISA)
Exploitation: active · Automatable: yes · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N

What happens

Apache HTTP Server versions 2.4.59 and earlier contains an improper output escaping vulnerability in mod_rewrite that allows an unauthenticated attacker to map URLs to unintentionally accessible filesystem locations, resulting in code execution or source code disclosure. The vulnerability affects rewrite rules using backreferences or variables as the first substitution segment. CISA has confirmed active exploitation.

Show the original NVD text

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.

Source text, unmodified. NVD.

Exploitation confirmed by CISA

Apache HTTP Server contains an improper escaping of output vulnerability in mod_rewrite that 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.

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

Source text, unmodified. CISA KEV.

What to do

Patch available · fixed versions: 2.4.60

Update Apache HTTP Server to version 2.4.60 or later. If immediate update is not possible, review and restrict RewriteRule directives in server context that use backreferences or variables.

Vendor advisory · httpd.apache.org ↗

  1. Apply the vendor's security update for HTTP Server.
  2. CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 22, 2025.
  3. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
  4. Check logs for signs of earlier exploitation.

Affected products (CPE)

VendorProductVersions
apachehttp_server≥ 2.4.0 < 2.4.60
netappontap_9all
sonicwallsma_200_firmware< 10.2.1.14-75sv
sonicwallsma_210_firmware< 10.2.1.14-75sv
sonicwallsma_400_firmware< 10.2.1.14-75sv
sonicwallsma_410_firmware< 10.2.1.14-75sv
sonicwallsma_500v_firmware< 10.2.1.14-75sv

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.