{"id":"CVE-2024-38475","aliases":["CVE-2024-38475","BIT-APACHE-2024-38475"],"related":[],"kind":"vulnerability","state":"published","title":"Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.","summary":"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. \n\nSubstitutions 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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. \n\nSubstitutions 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.","source":"cvelist"},{"lang":"es","text":"El escape inadecuado de la salida en mod_rewrite en Apache HTTP Server 2.4.59 y versiones anteriores permite a un atacante asignar URL a ubicaciones del sistema de archivos que el servidor permite servir, pero a las que no se puede acceder intencional o directamente mediante ninguna URL, dando como resultado la ejecución del código o la divulgación del código fuente. Las sustituciones en el contexto del servidor que utilizan referencias inversas o variables como primer segmento de la sustitución se ven afectadas. Este cambio romperá algunas RewiteRules inseguras y el indicador de reescritura \"UnsafePrefixStat\" se puede usar para volver a participar una vez que se garantice que la sustitución esté restringida adecuadamente.","source":"nvd"},{"lang":"en","text":"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.","source":"kev"}],"published":"2024-07-01T18:15:12.292Z","modified":"2026-09-08T08:45:44.091Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","score":9.1,"rating":"CRITICAL"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"CRITICAL"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"type":"semver","introduced":"2.4.0","lastAffected":"2.4.59","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache HTTP Server","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"2.4.0","lastAffected":"2.4.59","status":"affected"}],"vendor":"apache","product":"http_server","cpe":"cpe:2.3:a:apache:http_server:2.4.0:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0","fixed":"*","status":"affected"}],"vendor":"netapp","product":"ontap_9","cpe":"cpe:2.3:a:netapp:ontap_9:-:*:*:*:*:*:*:*","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"2.4.0","fixed":"2.4.60"}],"vendor":"apache","product":"http_server","cpe":"cpe:2.3:a:apache:http_server:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"ontap_9","cpe":"cpe:2.3:a:netapp:ontap_9:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.2.1.14-75sv"}],"vendor":"sonicwall","product":"sma_200_firmware","cpe":"cpe:2.3:o:sonicwall:sma_200_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.2.1.14-75sv"}],"vendor":"sonicwall","product":"sma_210_firmware","cpe":"cpe:2.3:o:sonicwall:sma_210_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.2.1.14-75sv"}],"vendor":"sonicwall","product":"sma_400_firmware","cpe":"cpe:2.3:o:sonicwall:sma_400_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.2.1.14-75sv"}],"vendor":"sonicwall","product":"sma_410_firmware","cpe":"cpe:2.3:o:sonicwall:sma_410_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"10.2.1.14-75sv"}],"vendor":"sonicwall","product":"sma_500v_firmware","cpe":"cpe:2.3:o:sonicwall:sma_500v_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.4.0","status":"affected","fixed":"2.4.60"}],"ecosystem":"Bitnami","package":"apache","purl":"pkg:bitnami/apache","source":"bitnami"},{"ranges":[],"vendor":"Apache","product":"HTTP Server","source":"kev"}],"references":[{"url":"https://httpd.apache.org/security/vulnerabilities_24.html","tags":["advisory","kev","vendor-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami","kev"]},{"url":"https://security.netapp.com/advisory/ntap-20240712-0001/","tags":["advisory","third-party-advisory","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475","tags":["advisory","government-resource","third-party-advisory","us-government-resource"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf","tags":["fix","patch"],"sources":["cvelist","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/01/8","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018","tags":["advisory","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38475","tags":["kev","web"],"sources":["bitnami","kev"]}],"credits":["Orange Tsai (@orange_8361) from DEVCORE"],"assigner":"apache","kev":{"dateAdded":"2025-05-01","dueDate":"2025-05-22","name":"Apache HTTP Server Improper Escaping of Output Vulnerability","requiredAction":"Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.","ransomware":false,"notes":"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"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"yes","technicalImpact":"total","date":"2025-05-02T03:55:18.245Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-38475","url":"https://www.cve.org/CVERecord?id=CVE-2024-38475","licence":"CVE Terms of Use","modified":"2025-11-03T21:55:40.951Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-38475","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38475","licence":"Public domain","modified":"2026-06-17T07:40:21.380Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-APACHE-2024-38475","url":"https://osv.dev/vulnerability/BIT-APACHE-2024-38475","licence":"Apache-2.0","modified":"2026-09-08T08:45:44.091Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2024-38475","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-38475","licence":"CC0-1.0","modified":"2025-05-01T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:58:42.417Z","epss":{"score":0.99957,"percentile":0.99974,"date":"2026-12-01T12:00:22.000Z"}}