# CVE-2024-38475: Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: yes. In CISA's catalogue since 2025-05-01. Apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable.
- Likelihood of exploitation in the next 30 days (EPSS): 99.9%, higher than 99% of CVEs (2026-12-01)
- Published: 2024-07-01T18:15:12.292Z
- Modified: 2026-09-08T08:45:44.091Z
- Also known as: BIT-APACHE-2024-38475
- Weaknesses: CWE-116
- SSVC (CISA-ADP): exploitation active, automatable yes, technical impact total
- Assigned by: apache

## 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.

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache HTTP Server: from 2.4.0 up to 2.4.59
- apache http_server: from 2.4.0 up to 2.4.59; from 2.4.0 before 2.4.60
- netapp ontap_9: before *
- sonicwall sma_200_firmware: before 10.2.1.14-75sv
- sonicwall sma_210_firmware: before 10.2.1.14-75sv
- sonicwall sma_400_firmware: before 10.2.1.14-75sv
- sonicwall sma_410_firmware: before 10.2.1.14-75sv
- sonicwall sma_500v_firmware: before 10.2.1.14-75sv
- apache (Bitnami): from 2.4.0 before 2.4.60
- Apache HTTP Server: no versions given

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Bitnami Vulnerability Database: rating Critical

## References

- <https://httpd.apache.org/security/vulnerabilities_24.html> (advisory, kev, vendor-advisory)
- <https://security.netapp.com/advisory/ntap-20240712-0001/> (advisory, third-party-advisory)
- <https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475> (advisory, government-resource, third-party-advisory, us-government-resource)
- <https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227> (advisory, third-party-advisory)
- <https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf> (fix, patch)
- <http://www.openwall.com/lists/oss-security/2024/07/01/8> (advisory, third-party-advisory)
- <https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018> (advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38475> (kev, web)

## Sources

- CVE List: [CVE-2024-38475](https://www.cve.org/CVERecord?id=CVE-2024-38475), CVE Terms of Use, modified 2025-11-03
- NVD: [CVE-2024-38475](https://nvd.nist.gov/vuln/detail/CVE-2024-38475), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-APACHE-2024-38475](https://osv.dev/vulnerability/BIT-APACHE-2024-38475), Apache-2.0, modified 2026-09-08
- CISA KEV: [CVE-2024-38475](https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2024-38475), CC0-1.0, modified 2025-05-01

---

Page: https://cve.day/CVE-2024-38475 · Whole record: https://cve.day/CVE-2024-38475.json · Rebuilt by cve.day 2026-11-25T22:58:42.417Z
