CVE-2024-38474: Apache HTTP Server weakness with encoded question marks in backreferences
CVE-2024-38474 Substitution encoding issue in modrewrite 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. CVE-2024-38475 Improper escaping of output in modrewrite 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.
Affected Software
Remediation
Patch Available
Event History
Frequently Asked Questions
What is the severity of CVE-2024-38474?
CVE-2024-38474 is rated as a critical vulnerability due to its potential to allow remote code execution.
How do I fix CVE-2024-38474?
To fix CVE-2024-38474, upgrade to the patched versions of affected Apache HTTP Server packages as specified by your vendor.
What products are affected by CVE-2024-38474?
CVE-2024-38474 affects Apache HTTP Server versions prior to 2.4.62 as well as certain versions of IBM Planning Analytics and F5 BIG-IP.
Can CVE-2024-38474 be exploited remotely?
Yes, CVE-2024-38474 can be exploited remotely by sending specially crafted requests to vulnerable servers.
Is there a known exploit for CVE-2024-38474?
Yes, proof-of-concept exploits for CVE-2024-38474 have been demonstrated, increasing the urgency of applying security updates.