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.
CISA KEV
- Vendor
- Apache
- Product
- HTTP Server
- Due date
- 2025-05-22
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
OS impact
SUSE Affected 1 release
| Version | Status | Fixed in |
|---|---|---|
| — | Affected | — |
AlmaLinux Fixed 1 release
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | mod_proxy_html-2.4.57-11.el9_4.aarch64.rpm |
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 2.4.60-1 |
| sid | Fixed | 2.4.60-1 |
| forky | Fixed | 2.4.60-1 |
| bullseye | Fixed | 2.4.61-1~deb11u1 |
| bookworm | Fixed | 2.4.61-1~deb12u1 |
Red Hat Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | — |
| 8 | Fixed | — |
Rocky Linux Fixed 2 releases
| Version | Status | Fixed in |
|---|---|---|
| 9 | Fixed | — |
| 8 | Fixed | — |
References
- https://security-tracker.debian.org/tracker/CVE-2024-38475
- https://access.redhat.com/errata/RHSA-2024:4726
- https://www.suse.com/security/cve/CVE-2024-38475.html
- https://errata.rockylinux.org/RLSA-2024:4726
- This vulnerability affects a common open-source component, third-party library, or a protocol used by different products. Please check with specific vendors for information on patching status. For more information, please see: https://httpd.apache.org/security/vulnerabilities_24.html ; https://nvd.nist.gov/vuln/detail/CVE-2024-38475
- https://access.redhat.com/errata/RHSA-2024:4720
- https://bugzilla.redhat.com/2295012
- https://bugzilla.redhat.com/2295013
- https://bugzilla.redhat.com/2295014
- https://bugzilla.redhat.com/2295016
- https://bugzilla.redhat.com/2295022
- https://errata.almalinux.org/8/ALSA-2024-4720.html
- https://errata.almalinux.org/9/ALSA-2024-4726.html
- https://errata.rockylinux.org/RLSA-2024:4720
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.