CVE-2024-38475
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.
Severity
CRITICAL
CVSS v3
9.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N · source nvd
Exploit chance (EPSS)
99.957%
chance of exploitation in the next 30 days
among the highest of scored CVEs · 2026-11-17
CISA KEV
Listed
added 2025-05-01
Public exploit code
Yes
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 1
Weakness
- CWE-116: Improper Encoding or Escaping of Output
CISA Known Exploited Vulnerabilities entry
| Vulnerability name | Apache HTTP Server Improper Escaping of Output Vulnerability |
|---|---|
| Vendor / product | Apache / HTTP Server |
| Date added | 2025-05-01 |
| Federal remediation due date | 2025-05-22 |
| 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. |
| Known ransomware campaign use | Unknown |
CISA SSVC decision points
| Exploitation | active |
|---|---|
| Automatable | yes |
| Technical impact | total |
| Scored | 2025-05-02 |
Timeline
- 2024-07-01Published by the CNA18:15 UTC
- 2025-05-01Added to the CISA KEV catalog304 days after publication
- 2025-05-02CISA SSVC decision recorded305 days after publication
Exploit and advisory records
Nuclei templates:
- CVE-2024-38475: Sonicwall - Pre-Authentication Arbitrary File Read
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| apache http_server | from 2.4.0 before 2.4.60fixed in 2.4.60 | 2.4.60 |
| netapp ontap_9 | ||
| sonicwall sma_200_firmware | before 10.2.1.14-75svfixed in 10.2.1.14-75sv | 10.2.1.14-75sv |
| sonicwall sma_210_firmware | before 10.2.1.14-75svfixed in 10.2.1.14-75sv | 10.2.1.14-75sv |
| sonicwall sma_400_firmware | before 10.2.1.14-75svfixed in 10.2.1.14-75sv | 10.2.1.14-75sv |
| sonicwall sma_410_firmware | before 10.2.1.14-75svfixed in 10.2.1.14-75sv | 10.2.1.14-75sv |
| sonicwall sma_500v_firmware | before 10.2.1.14-75svfixed in 10.2.1.14-75sv | 10.2.1.14-75sv |
References
- https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf
- https://httpd.apache.org/security/vulnerabilities_24.html
- http://www.openwall.com/lists/oss-security/2024/07/01/8
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018
- https://security.netapp.com/advisory/ntap-20240712-0001/
- https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2024-38475'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2024-38475'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2024-38475'curl 'https://api.contrastcyber.com/cve_products/CVE-2024-38475'curl 'https://api.contrastcyber.com/kev_lookup/CVE-2024-38475'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).