{"schemaVersion":3,"id":"CVE-2024-38475","aliases":["ALPINE-CVE-2024-38475","UBUNTU-CVE-2024-38475","DEBIAN-CVE-2024-38475"],"status":"published","duplicateOf":null,"title":"Apache HTTP Server Improper Escaping of Output Vulnerability","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.\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.","dates":{"published":"2024-07-01T18:15:12.292Z","modified":"2025-11-03T21:55:40.951Z","reserved":null,"kevAdded":["2025-05-01T00:00:00.000Z"],"kevDue":["2025-05-22T00:00:00.000Z"]},"cvss":{"headline":{"score":9.1,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Alpine","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":10,"impact":8.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.1,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.99957,"percentile":0.99975,"severity":"critical","asOf":"2026-10-18T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-18T00:00:00.000Z","baselineScore":0.99957},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99957,"percentile":0.99975}],"last30":[{"date":"2026-09-18T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.99957,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.99957,"percentile":0.99975}]},"kev":{"state":"listed","entries":[{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-05-01T00:00:00.000Z","dueDate":"2025-05-22T00:00:00.000Z","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.","name":"Apache HTTP Server Improper Escaping of Output Vulnerability","description":"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.","notes":[{"type":"text","value":"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"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-38475","label":"nvd.nist.gov/vuln/detail/CVE-2024-38475"}],"vendor":"Apache","product":"HTTP Server","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}],"listedCount":1,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":true,"entry":{"source":"cisa","sourceLabel":"CISA","dateAdded":"2025-05-01T00:00:00.000Z","dueDate":"2025-05-22T00:00:00.000Z","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.","name":"Apache HTTP Server Improper Escaping of Output Vulnerability","description":"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.","notes":[{"type":"text","value":"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"},{"type":"url","href":"https://nvd.nist.gov/vuln/detail/CVE-2024-38475","label":"nvd.nist.gov/vuln/detail/CVE-2024-38475"}],"vendor":"Apache","product":"HTTP Server","ransomware":false,"ransomwareUse":"Unknown","exploitationType":null}},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-116","name":"Improper Encoding or Escaping of Output","description":"The product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/116.html"}],"affected":[{"vendor":"apache software foundation","product":"apache http server","name":"Apache HTTP Server","label":"apache http server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.4.0, ≤ 2.4.59","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.4.0, ≤ 2.4.59","eol":null,"hubHref":"/vendor/apache_software_foundation/apache_http_server"},{"vendor":"apache","product":"http_server","name":"http server","label":"http_server","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 2.4.0, < 2.4.60","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.4.0, < 2.4.60","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"apache-http-server","label":"Apache HTTP Server","category":"server-app"}},"hubHref":"/vendor/apache/http_server"},{"vendor":"alpine","product":"apache2","name":"apache2","label":"apache2","ecosystem":"Alpine Linux","cpePart":null,"purl":"pkg:apk/alpine/apache2","purlType":"apk","versions":[{"text":"< 2.4.60-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.60-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"apache2","name":"apache2","label":"apache2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/apache2","purlType":"deb","versions":[{"text":"< 2.4.61-1~deb12u1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.60-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.61-1~deb12u1 | < 2.4.60-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"apache2","name":"apache2","label":"apache2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/apache2","purlType":"deb","versions":[{"text":"< 2.4.7-1ubuntu4.22+esm10","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.18-2ubuntu3.17+esm13","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.29-1ubuntu4.27+esm3","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.41-4ubuntu3.19","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.52-1ubuntu4.10","noFixRecorded":false,"fixedIn":null},{"text":"< 2.4.58-1ubuntu8.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.4.7-1ubuntu4.22+esm10 | < 2.4.18-2ubuntu3.17+esm13 | < 2.4.29-1ubuntu4.27+esm3 | < 2.4.41-4ubuntu3.19 | < 2.4.52-1ubuntu4.10 | < 2.4.58-1ubuntu8.2","eol":null,"hubHref":null},{"vendor":"netapp","product":"ontap_9","name":"ontap 9","label":"ontap_9","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/netapp/ontap_9"},{"vendor":"sonicwall","product":"sma_200_firmware","name":"sma 200 firmware","label":"sma_200_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.2.1.14-75sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.2.1.14-75sv","eol":null,"hubHref":"/vendor/sonicwall/sma_200"},{"vendor":"sonicwall","product":"sma_210_firmware","name":"sma 210 firmware","label":"sma_210_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.2.1.14-75sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.2.1.14-75sv","eol":null,"hubHref":"/vendor/sonicwall/sma_210"},{"vendor":"sonicwall","product":"sma_400_firmware","name":"sma 400 firmware","label":"sma_400_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.2.1.14-75sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.2.1.14-75sv","eol":null,"hubHref":"/vendor/sonicwall/sma_400"},{"vendor":"sonicwall","product":"sma_410_firmware","name":"sma 410 firmware","label":"sma_410_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.2.1.14-75sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.2.1.14-75sv","eol":null,"hubHref":"/vendor/sonicwall/sma_410"},{"vendor":"sonicwall","product":"sma_500v_firmware","name":"sma 500v firmware","label":"sma_500v_firmware","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"< 10.2.1.14-75sv","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 10.2.1.14-75sv","eol":null,"hubHref":"/vendor/sonicwall/sma_500v"}],"affectedCount":11,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://httpd.apache.org/security/vulnerabilities_24.html","label":"httpd.apache.org/security/vulnerabilities_24.html","hostname":"httpd.apache.org","tags":["Vendor Advisory","REPORT"]},{"url":"https://security.netapp.com/advisory/ntap-20240712-0001/","label":"security.netapp.com/advisory/ntap-20240712-0001/","hostname":"security.netapp.com","tags":["Third Party Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475","hostname":"www.cisa.gov","tags":["Government Resource","Third Party Advisory","US Government Resource"]},{"url":"https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227","label":"www.blackhat.com/us-24/briefings/schedule/index.html","hostname":"www.blackhat.com","tags":["Third Party Advisory"]},{"url":"https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf","label":"github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf","hostname":"github.com","tags":["Patch"]},{"url":"http://www.openwall.com/lists/oss-security/2024/07/01/8","label":"www.openwall.com/lists/oss-security/2024/07/01/8","hostname":"www.openwall.com","tags":["Third Party Advisory"]},{"url":"https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018","label":"psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018","hostname":"psirt.global.sonicwall.com","tags":["Third Party Advisory"]},{"url":"https://security.alpinelinux.org/vuln/CVE-2024-38475","label":"security.alpinelinux.org/vuln/CVE-2024-38475","hostname":"security.alpinelinux.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-38475","label":"ubuntu.com/security/CVE-2024-38475","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-38475","label":"www.cve.org/CVERecord?id=CVE-2024-38475","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2024-38475","label":"httpd.apache.org/security/vulnerabilities_24.html","hostname":"httpd.apache.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6885-1","label":"ubuntu.com/security/notices/USN-6885-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-6885-3","label":"ubuntu.com/security/notices/USN-6885-3","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","label":"www.cisa.gov/known-exploited-vulnerabilities-catalog","hostname":"www.cisa.gov","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-6885-5","label":"ubuntu.com/security/notices/USN-6885-5","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-38475","label":"security-tracker.debian.org/tracker/CVE-2024-38475","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["DSA-5729-1","MGASA-2024-0258","OPENSUSE-SU-2024:14116-1","RHSA-2024:4719","RHSA-2024:4720","RHSA-2024:4726","RHSA-2024:4820","RHSA-2024:4827","RHSA-2024:4830","RHSA-2024:4862","RHSA-2024:4863","RHSA-2024:4938","RHSA-2024:4943","RHSA-2024:5239","SUSE-SU-2024:2436-1","SUSE-SU-2024:2591-1","SUSE-SU-2024:2597-1","SUSE-SU-2024:2624-1","SUSE-SU-2026:2686-1","USN-6885-1","USN-6885-3","USN-6885-5"],"duplicates":[],"related":["OPENSUSE-SU-2024:14116-1","SUSE-SU-2024:2436-1","SUSE-SU-2024:2591-1","SUSE-SU-2024:2597-1","SUSE-SU-2024:2624-1","SUSE-SU-2026:2686-1","USN-6885-1","USN-6885-3","USN-6885-5"]},"timeline":[{"kind":"published","date":"2024-07-01T18:15:12.292Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"kev-added","date":"2025-05-01T00:00:00.000Z","label":"Added to CISA KEV","detail":"Apache HTTP Server Improper Escaping of Output Vulnerability","source":"cisa"},{"kind":"kev-due","date":"2025-05-22T00:00:00.000Z","label":"CISA remediation due","detail":"Apply mitigations per vendor instructions.","source":"cisa"},{"kind":"modified","date":"2025-11-03T21:55:40.951Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":85,"level":"critical","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-19T08:39:40.618Z","stale":false,"partial":false}}