CVE-2024-38475
published critical CVSS 3.1 · 9.1Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Apache Software Foundation | — | Apache HTTP Server2.4.0 through 2.4.59 · Other versions: unaffected | Affected | Not stated | apache |
| apache | — | http_server2.4.0 through 2.4.59 · Other versions: unaffected | Affected | Not stated | CISA-ADP |
| netapp | — | ontap_90 and later · Other versions: unknown | Affected | Not stated | CISA-ADP |
| Amazon Linux | AL2 | Release evaluationALAS2-2024-2594 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2024-656 | Fixed | Not stated | Amazon Linux assessment |
| AlmaLinux | 8 | httpd | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| Alpine Linux | edge | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Debian | bookworm | apache2 | Advisory build | 2.4.61-1~deb12u1 | DSA-5729-1 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 7 | httpdaarch64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Red Hat Enterprise Linux | RHEL-7 | httpdppc64 | Advisory build | 2.4.6-99.el7_9.2 | RHSA-2024:4943 |
| AlmaLinux | 8 | httpd-devel | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | httpd-filesystem | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | httpd-manual | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | httpd-tools | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_http2 | Advisory build | 1.15.7-10.module_el8.10.0+3832+564e7653 | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_ldap | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_md | Advisory build | 1:2.0.8-8.module_el8.6.0+2872+fe0ff7aa | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_md | Advisory build | 1:2.0.8-8.module_el8.6.0+3031+fb177b09 | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_proxy_html | Advisory build | 1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_session | Advisory build | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 8 | mod_ssl | Advisory build | 1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 | ALSA-2024:4720 |
| AlmaLinux | 9 | httpd | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | httpd-core | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | httpd-devel | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | httpd-filesystem | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | httpd-manual | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | httpd-tools | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | mod_ldap | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | mod_lua | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | mod_proxy_html | Advisory build | 1:2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | mod_session | Advisory build | 2.4.57-11.el9_4 | ALSA-2024:4726 |
| AlmaLinux | 9 | mod_ssl | Advisory build | 1:2.4.57-11.el9_4 | ALSA-2024:4726 |
| Alpine Linux | v3.17 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.18 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.19 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.20 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.21 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.22 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.23 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Alpine Linux | v3.24 | apache2 | Fixed | 2.4.60-r0 | Package fix record |
| Debian | bullseye | apache2 | Advisory build | 2.4.61-1~deb11u1 | DSA-5729-1 |
| Oracle Linux | 7 | httpdx86_64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | httpd-develaarch64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | httpd-develx86_64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | httpd-manualaarch64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | httpd-manualx86_64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | httpd-toolsaarch64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | httpd-toolsx86_64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_ldapaarch64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_ldapx86_64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_proxy_htmlaarch64 | Advisory build | 1:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_proxy_htmlx86_64 | Advisory build | 1:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_sessionaarch64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_sessionx86_64 | Advisory build | 0:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_sslaarch64 | Advisory build | 1:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 7 | mod_sslx86_64 | Advisory build | 1:2.4.6-99.0.3.el7_9.1 | ELSA-2024-4943 |
| Oracle Linux | 8 | httpdaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpdx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-develaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-develx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-filesystemaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-filesystemx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-manualaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-manualx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-toolsaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | httpd-toolsx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_http2aarch64 · httpd · 2.4b | Advisory build | 0:1.15.7-10.module+el8.10.0+90327+96b8ea28 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_http2x86_64 · httpd · 2.4b | Advisory build | 0:1.15.7-10.module+el8.10.0+90327+96b8ea28 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_ldapaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_ldapx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_mdaarch64 · httpd · 2.4b | Advisory build | 1:2.0.8-8.module+el8.9.0+90011+2f9c6a23 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_mdx86_64 · httpd · 2.4b | Advisory build | 1:2.0.8-8.module+el8.9.0+90011+2f9c6a23 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_proxy_htmlaarch64 · httpd · 2.4b | Advisory build | 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_proxy_htmlx86_64 · httpd · 2.4b | Advisory build | 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_sessionaarch64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_sessionx86_64 · httpd · 2.4b | Advisory build | 0:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_sslaarch64 · httpd · 2.4b | Advisory build | 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 8 | mod_sslx86_64 · httpd · 2.4b | Advisory build | 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 | ELSA-2024-4720 |
| Oracle Linux | 9 | httpdaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpdx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-coreaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-corex86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-develaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-develx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-filesystemaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-filesystemx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-manualaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-manualx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-toolsaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | httpd-toolsx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_ldapaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_ldapx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_luaaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_luax86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_proxy_htmlaarch64 | Advisory build | 1:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_proxy_htmlx86_64 | Advisory build | 1:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_sessionaarch64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_sessionx86_64 | Advisory build | 0:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_sslaarch64 | Advisory build | 1:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Oracle Linux | 9 | mod_sslx86_64 | Advisory build | 1:2.4.57-11.0.1.el9_4 | ELSA-2024-4726 |
| Red Hat Enterprise Linux | RHEL-7 | httpdppc64le | Advisory build | 2.4.6-99.el7_9.2 | RHSA-2024:4943 |
| Red Hat Enterprise Linux | RHEL-7 | httpds390x | Advisory build | 2.4.6-99.el7_9.2 | RHSA-2024:4943 |
| Red Hat Enterprise Linux | RHEL-7 | httpdsrc | Advisory build | 2.4.6-90.el7_7.4 | RHSA-2024:4938 |
| Red Hat Enterprise Linux | RHEL-7 | httpdsrc | Advisory build | 2.4.6-99.el7_9.2 | RHSA-2024:4943 |
| Red Hat Enterprise Linux | RHEL-7 | httpdx86_64 | Advisory build | 2.4.6-90.el7_7.4 | RHSA-2024:4938 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.1 / 10
- Severity
- critical
- Provider
- CISA-ADP · adp
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Apache Software Foundation | Apache HTTP Server | 2.4.0 through 2.4.59 (affected · semver)Default: unaffected | apache · cna |
| apache | http_server | 2.4.0 through 2.4.59 (affected · custom)Default: unaffected | CISA-ADP · adp |
| netapp | ontap_9 | 0 and later (affected · custom)Default: unknown | CISA-ADP · adp |
Weaknesses
1- CWE-116 CWE-116 Improper Encoding or Escaping of Output
References
7- http://www.openwall.com/lists/oss-security/2024/07/01/8
- https://github.com/apache/httpd/commit/9a6157d1e2f7ab15963020381054b48782bc18cf
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2024-0018
- https://security.netapp.com/advisory/ntap-20240712-0001/
- https://www.blackhat.com/us-24/briefings/schedule/index.html#confusion-attacks-exploiting-hidden-semantic-ambiguity-in-apache-http-server-pre-recorded-40227
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-38475
Provider assertions
3apache · cna
Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a22272f141daad108edebcb8d892391598f6e1263f0e88a1b02910f13846647c
- Ingested
- 23 Sep 2026, 08:24:49 UTC
- Source record
- Official CVE record