# CVE-2024-38475: Apache HTTP Server Improper Escaping of Output Vulnerability

- Priority: **Act now**
- Reason: Listed as exploited by ENISA (23-11-2026)
- Next step: Check the vendor advisory
- Status: published
- Published: 2024-07-01 · Modified: 2025-11-03
- Aliases: ALPINE-CVE-2024-38475, UBUNTU-CVE-2024-38475, DEBIAN-CVE-2024-38475
- Record: https://cvemate.com/vulnerability/CVE-2024-38475 · JSON: https://cvemate.com/vulnerability/CVE-2024-38475/json

## Description

```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.
```

## Signals

- CVSS: 9.1 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 99.957%, percentile 99.974%, as of 2026-12-04
- Known exploited (KEV): CISA listed 2025-05-01, ENISA listed 2026-11-23, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache http server: ≥ 2.4.0, ≤ 2.4.59
- apache http\_server: ≥ 2.4.0, \< 2.4.60
- alpine apache2 (Alpine Linux): \< 2.4.60-r0
- debian apache2 (Debian): \< 2.4.61-1~deb12u1 \| \< 2.4.60-1
- ubuntu apache2 (Ubuntu): \< 2.4.7-1ubuntu4.22+esm10 \| \< 2.4.18-2ubuntu3.17+esm13 \| \< 2.4.29-1ubuntu4.27+esm3 \| \< 2.4.41-4ubuntu3.19 \| \< 2.4.52-1ubuntu4.10 \| \< 2.4.58-1ubuntu8.2
- netapp ontap\_9: na
- 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

## References

- <https://httpd.apache.org/security/vulnerabilities_24.html>
- <https://security.netapp.com/advisory/ntap-20240712-0001/>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475>
- <https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227>
- <https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf>
- <http://www.openwall.com/lists/oss-security/2024/07/01/8>
- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018>
- <https://security.alpinelinux.org/vuln/CVE-2024-38475>
- <https://ubuntu.com/security/CVE-2024-38475>
- <https://www.cve.org/CVERecord?id=CVE-2024-38475>
- <https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2024-38475>
- <https://ubuntu.com/security/notices/USN-6885-1>
- <https://ubuntu.com/security/notices/USN-6885-3>
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog>
- <https://ubuntu.com/security/notices/USN-6885-5>
- <https://security-tracker.debian.org/tracker/CVE-2024-38475>

---

Data as of 2026-12-05T03:52:01.811Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
