CVE-2024-38475Apache HTTP Server
Improper Output Escaping in Apache HTTP Server mod_rewrite
Critical 9.1 KEV No auth neededHigh EPSS
Follow: this CVE · Apache · Apache HTTP Server We alert you by email or Slack (account required).
- 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.
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.
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.
- Apply the vendor's security update for HTTP Server.
- CISA has confirmed it is exploited: treat it as urgent. The deadline for US federal agencies was May 22, 2025.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
- Check logs for signs of earlier exploitation.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | http_server | ≥ 2.4.0 < 2.4.60 |
| netapp | ontap_9 | all |
| sonicwall | sma_200_firmware | < 10.2.1.14-75sv |
| sonicwall | sma_210_firmware | < 10.2.1.14-75sv |
| sonicwall | sma_400_firmware | < 10.2.1.14-75sv |
| sonicwall | sma_410_firmware | < 10.2.1.14-75sv |
| sonicwall | sma_500v_firmware | < 10.2.1.14-75sv |
Official advisories
- Security update for apache2 · SUSE · SUSE-SU-2026:2686-1 · Jun 29, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- httpd.apache.org Vendor Advisory
- security.netapp.com Third Party Advisory
- www.openwall.com Third Party Advisory
- github.com Patch
- psirt.global.sonicwall.com Third Party Advisory
- www.blackhat.com Third Party Advisory
- www.cisa.gov Third Party Advisory US Government Resource