# CVE-2024-38474: Apache HTTP Server weakness with encoded question marks in backreferences

- 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-03-25
- Aliases: ALPINE-CVE-2024-38474, UBUNTU-CVE-2024-38474, DEBIAN-CVE-2024-38474
- Record: https://cvemate.com/vulnerability/CVE-2024-38474 · JSON: https://cvemate.com/vulnerability/CVE-2024-38474/json

## Description

```text
Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in
directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant to only to be executed as CGI.

Users are recommended to upgrade to version 2.4.60, which fixes this issue.

Some RewriteRules that capture and substitute unsafely will now fail unless rewrite flag "UnsafeAllow3F" is specified.
```

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 2.456%, percentile 84.944%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, 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+esm14 \| \< 2.4.29-1ubuntu4.27+esm4 \| \< 2.4.41-4ubuntu3.23 \| \< 2.4.52-1ubuntu4.16 \| \< 2.4.58-1ubuntu8.8
- netapp clustered\_data\_ontap: 9.0

## References

- <https://httpd.apache.org/security/vulnerabilities_24.html>
- <https://security.netapp.com/advisory/ntap-20240712-0001/>
- <http://www.openwall.com/lists/oss-security/2024/07/01/7>
- <https://security.alpinelinux.org/vuln/CVE-2024-38474>
- <https://ubuntu.com/security/CVE-2024-38474>
- <https://www.cve.org/CVERecord?id=CVE-2024-38474>
- <https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2024-38474>
- <https://ubuntu.com/security/notices/USN-6885-1>
- <https://ubuntu.com/security/notices/USN-6885-3>
- <https://ubuntu.com/security/notices/USN-6885-4>
- <https://ubuntu.com/security/notices/USN-6885-5>
- <https://ubuntu.com/security/notices/USN-6885-6>
- <https://security-tracker.debian.org/tracker/CVE-2024-38474>

---

Data as of 2026-12-05T03:12:36.768Z. 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
