Apache Web Server - Information Disclosure (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.
psychologyCrowdSec Analysis
CVE-2024-38475 is a high-severity vulnerability in Apache HTTP Server’s mod_rewrite module, stemming from improper output escaping. This flaw allows an attacker to craft URLs that bypass expected access controls, potentially mapping to unintended filesystem locations. Exploitation can lead to remote code execution or inadvertent source code disclosure.
CrowdSec has been tracking this vulnerability and its exploits since 22nd of August 2024.
Data from the CrowdSec community indicates that exploitation of CVE-2024-38475 is highly selective and intelligence-driven. Threat actors use advanced reconnaissance and carefully choose their targets, often as part of sophisticated campaigns or advanced persistent threat operations. CrowdSec network telemetry also shows that exploitation of CVE-2024-38475 has significantly declined over the past week. Attack volumes are well below the long-term average, suggesting attackers are rapidly losing interest. The vulnerability appears to be falling out of active use across most threat landscapes.
Observed exploitation attempts are associated with crafted URL rewriting that manipulates server context, specifically targeting rewrite rules likely to expose restricted resources.
Full Intelligence Available
Connect your API key to access CrowdSec scores, exploit timelines, and attacker IPs.
| Event | Date |
|---|---|
| CVE Published | 2024-07-01 |
| Rule Released | 2024-08-22 |
| CrowdSec First Seen | 2024-11-24 |
| CISA KEV | 2025-05-01 |
| CISA Remediation Deadline | 2025-05-22 |
Remediation & Protection
External References
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://security.netapp.com/advisory/ntap-20240712-0001/
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-38475.yaml
- https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf
- https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227