[ CVE-2024-38475 · Published 1 Jul 2024 ]
Apache HTTP Server Improper Escaping of Output Vulnerability
[ Why it matters ]Priority signals
- Exploited in the wild: on CISA's Known Exploited Vulnerabilities list since 2025-05-01
- EPSS: 100% chance of exploitation in the next 30 days (higher than 100% of CVEs)
- Critical severity: CVSS 9.1
[ Description ]Official 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: Apache HTTP Server contains an improper escaping of output vulnerability in mod_rewrite that 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.
[ Fixes ]Fixes and patches
CISA required action (US federal deadline 22 May 2025): Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Patch on github.comVendor patch or bulletin · NVD · Reference tagged 'Patch' by NVD
[ References ]References
- httpd.apache.org/security/vulnerabilities_24.htmlVendor Advisory
- security.netapp.com/advisory/ntap-20240712-0001Third Party Advisory
- www.openwall.com/lists/oss-security/2024/07/01/8Third Party Advisory
- github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cfPatch
- psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018Third Party Advisory
- www.blackhat.com/us-24/briefings/schedule/index.htmlThird Party Advisory
- www.cisa.gov/known-exploited-vulnerabilities-catalogThird Party AdvisoryUS Government Resource