{"id":"CVE-2024-38475","published":"2024-07-01T19:15:04Z","modified":"2026-06-17T07:40:21Z","title":"Apache HTTP Server Improper Escaping of Output Vulnerability","vendor":"Apache","product":"HTTP Server","tier":"core","eol":null,"description":{"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.","provenance":"source","from":"NVD"},"summary":{"text":"Apache HTTP Server 2.4.59 and earlier contains an improper escaping of output flaw in mod_rewrite, affecting substitutions in server context that begin with a backreference or variable as the first segment. An unauthenticated remote attacker can exploit it without user interaction, by sending requests that map URLs to filesystem locations the server is permitted to serve but that are not intended to be directly reachable, resulting in code execution or source code disclosure.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-10-23T07:12:16Z"},"cvss":{"score":9.1,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","provenance":"source","from":"NVD"},"epss":{"score":0.99957,"percentile":0.99975,"date":"2026-10-29","provenance":"source"},"kev":{"dateAdded":"2025-05-01","dueDate":"2025-05-22","ransomware":false,"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.","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","provenance":"source"},"vulncheckKev":{"dateAdded":"2025-04-29","exploitedFirstSeen":"2025-04-29","ransomware":false,"evidence":[{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018","date":"2025-04-29"},{"url":"https://www.cisa.gov/sites/default/files/feeds/known_exploited_vulnerabilities.json","date":"2025-05-01"},{"url":"https://labs.watchtowr.com/sonicboom-from-stolen-tokens-to-remote-shells-sonicwall-sma100-cve-2023-44221-cve-2024-38475/","date":"2025-05-02"},{"url":"https://app.crowdsec.net/cti/cve-explorer/CVE-2024-38475","date":"2025-06-07"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2025-07-17&host_type=src&vulnerability=cve-2024-38475","date":"2025-07-17"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2025-07-18&host_type=src&vulnerability=cve-2024-38475","date":"2025-07-18"},{"url":"https://fortiguard.fortinet.com/outbreak-alert/sonicwall-sma-attack","date":"2025-07-18"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2025-07-20&host_type=src&vulnerability=cve-2024-38475","date":"2025-07-20"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2025-07-21&host_type=src&vulnerability=cve-2024-38475","date":"2025-07-21"},{"url":"https://dashboard.shadowserver.org/statistics/honeypot/vulnerability/map/?day=2025-07-22&host_type=src&vulnerability=cve-2024-38475","date":"2025-07-22"}],"evidenceTotal":264,"provenance":"source"},"exploited":true,"otx":{"pulseCount":50,"pulses":[{"name":"Actively_Exploited_Kev | Oct 30, 2026","url":"https://otx.alienvault.com/pulse/6ae35d889ea92b4ce19c2680","created":"2026-10-29"},{"name":"Actively_Exploited_Kev | Oct 29, 2026","url":"https://otx.alienvault.com/pulse/6ae20c1db17e7057ae7d9ad1","created":"2026-10-28"},{"name":"Actively_Exploited_Kev | Oct 28, 2026","url":"https://otx.alienvault.com/pulse/6ae0ba7e0e2a97ff7b218819","created":"2026-10-27"},{"name":"Actively_Exploited_Kev | Oct 27, 2026","url":"https://otx.alienvault.com/pulse/6adf68b85c3e852f3c111d18","created":"2026-10-26"},{"name":"Actively_Exploited_Kev | Oct 24, 2026","url":"https://otx.alienvault.com/pulse/6adb740e397c3ad4799aa4cd","created":"2026-10-23"},{"name":"Actively_Exploited_Kev | Oct 23, 2026","url":"https://otx.alienvault.com/pulse/6ada236fcfba2dfa730ea482","created":"2026-10-22"},{"name":"Actively_Exploited_Kev | Oct 22, 2026","url":"https://otx.alienvault.com/pulse/6ad8d33a077cbb5cab524d80","created":"2026-10-21"},{"name":"Actively_Exploited_Kev | Oct 21, 2026","url":"https://otx.alienvault.com/pulse/6ad78130c4d1ac2be83a8b6d","created":"2026-10-20"},{"name":"Actively_Exploited_Kev | Oct 20, 2026","url":"https://otx.alienvault.com/pulse/6ad62f63c24a405a3423cc13","created":"2026-10-19"},{"name":"Actively_Exploited_Kev | Oct 19, 2026","url":"https://otx.alienvault.com/pulse/6ad4dda174e5797d0bd238b7","created":"2026-10-18"}],"provenance":"machine"},"cwes":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output"}],"references":[{"url":"https://httpd.apache.org/security/vulnerabilities_24.html","tags":["Vendor Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240712-0001/","tags":["Third Party Advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/01/8","tags":["Third Party Advisory"]},{"url":"https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf","tags":["Patch"]},{"url":"https://httpd.apache.org/security/vulnerabilities_24.html","tags":["Vendor Advisory"]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018","tags":["Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20240712-0001/","tags":["Third Party Advisory"]},{"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":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475","tags":["Third Party Advisory","US Government Resource"]}],"techniques":[{"id":"T1190","name":"Exploit Public-Facing Application","tactics":["initial-access"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Other","mappingType":"exploitation_technique","evidence":[],"comment":"Improper escaping in Apache HTTP Server versions 2.4.59 and before permits code execution or disclosure of source code, as well as session hijacking and a potential full system compromise. An attacker can use a crafted URL to perform a traversal attack to trick the Apache server into reading sensitive files.","confidence":"medium","confidenceNote":"CTID KEV capability group \"other\" is generic"},{"id":"T1005","name":"Data from Local System","tactics":["collection"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Other","mappingType":"primary_impact","evidence":[],"comment":"Improper escaping in Apache HTTP Server versions 2.4.59 and before permits code execution or disclosure of source code, as well as session hijacking and a potential full system compromise. An attacker can use a crafted URL to perform a traversal attack to trick the Apache server into reading sensitive files.","confidence":"medium","confidenceNote":"CTID KEV capability group \"other\" is generic"},{"id":"T1059","name":"Command and Scripting Interpreter","tactics":["execution"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Other","mappingType":"primary_impact","evidence":[],"comment":"Improper escaping in Apache HTTP Server versions 2.4.59 and before permits code execution or disclosure of source code, as well as session hijacking and a potential full system compromise. An attacker can use a crafted URL to perform a traversal attack to trick the Apache server into reading sensitive files.","confidence":"medium","confidenceNote":"CTID KEV capability group \"other\" is generic"},{"id":"T1528","name":"Steal Application Access Token","tactics":["credential-access"],"provenance":"source","basis":"ctid-kev","bases":["ctid-kev"],"basisDetail":"CTID Mappings Explorer KEV 07/28/2025 (ATT&CK 16.1); capability: Other","mappingType":"primary_impact","evidence":[],"comment":"Improper escaping in Apache HTTP Server versions 2.4.59 and before permits code execution or disclosure of source code, as well as session hijacking and a potential full system compromise. An attacker can use a crafted URL to perform a traversal attack to trick the Apache server into reading sensitive files.","confidence":"medium","confidenceNote":"CTID KEV capability group \"other\" is generic"}],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2024-37356","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-37356","exploited":true,"exploitedSince":"2025-05-01","provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":5,"skipped":1,"earliest":"2024-08-18","earliestUrl":"https://github.com/p0in7s/CVE-2024-38475","repos":[{"name":"p0in7s/CVE-2024-38475","url":"https://github.com/p0in7s/CVE-2024-38475","stars":17,"created":"2024-08-18"},{"name":"soltanali0/CVE-2024-38475","url":"https://github.com/soltanali0/CVE-2024-38475","stars":5,"created":"2024-12-12"},{"name":"syaifulandy/CVE-2024-38475","url":"https://github.com/syaifulandy/CVE-2024-38475","stars":0,"created":"2025-05-09"},{"name":"Nyakki-Labs-0x420/Myesve","url":"https://github.com/Nyakki-Labs-0x420/Myesve","stars":0,"created":"2026-05-31"},{"name":"akabul0us/apache_poc","url":"https://github.com/akabul0us/apache_poc","stars":0,"created":"2026-10-17"}]},"nuclei":[{"id":"CVE-2024-38475","name":"Sonicwall - Pre-Authentication Arbitrary File Read","severity":"critical","path":"http/cves/2024/CVE-2024-38475.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-38475.yaml"}],"first":{"date":"2024-08-18","source":"PoC-in-GitHub","url":"https://github.com/p0in7s/CVE-2024-38475"},"provenance":"source"},"exploitRefs":[],"flow":[{"stage":"exploitation","techniques":["T1190"],"provenance":"source"},{"stage":"primary","techniques":["T1059","T1528","T1005"],"provenance":"source"}],"timeline":[{"date":"2024-07-01","kind":"published","label":"Published (NVD)","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38475","provenance":"source"},{"date":"2024-08-18","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/p0in7s/CVE-2024-38475","provenance":"source"},{"date":"2025-04-29","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018","provenance":"source"},{"date":"2025-05-01","kind":"kev","label":"Added to CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","provenance":"source"},{"date":"2025-05-01","kind":"euvd-exploited","label":"ENISA EUVD: exploited","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2024-37356","provenance":"source"}],"speed":{"daysToPublicExploit":48,"firstExploitFrom":"PoC-in-GitHub","daysToKev":304},"priority":{"score":69.4,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in CISA KEV and VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 549 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":20.0,"detail":"percentile 0.9998"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"5 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":3.0,"detail":"50 pulses"},{"name":"CVSS severity","points":6.37,"detail":"base score 9.1"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}