CVE-2024-38475

high KEV
Published 2024-07-23 · Modified 2025-05-01
CVSS v3
CVSS v4 NEW
not yet in upstream
VIR risk
9.5

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

Exploit likelihood
99%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27
{Vendor advisory: cisa-kev — 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}

Exploits

Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.

OS impact

suse SUSE Affected 1 release
VersionStatusFixed in
Affected
almalinux AlmaLinux Fixed 1 release
VersionStatusFixed in
9 Fixed mod_proxy_html-2.4.57-11.el9_4.aarch64.rpm
debian Debian Fixed 5 releases
VersionStatusFixed 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
redhat Red Hat Fixed 2 releases
VersionStatusFixed in
9 Fixed
8 Fixed
rockylinux Rocky Linux Fixed 2 releases
VersionStatusFixed in
9 Fixed
8 Fixed

References

Community-verified mitigations for this CVE will appear above when contributors publish them.

Verify integrity in audit chain (admin only). AS-IS.