CVE-2024-38474
httpd: Substitution encoding issue in mod_rewrite
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD, Bitnami. Rated lower by Red Hat (high), AlmaLinux (high), Amazon (high), Oracle (high), Rocky Linux (high), Ubuntu (medium).
Description
Substitution encoding issue in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows attacker to execute scripts in directories permitted by the configuration but not directly reachable by any URL or source disclosure of scripts meant to only to be executed as CGI. Users are recommended to upgrade to version 2.4.60, which fixes this issue. Some RewriteRules that capture and substitute unsafely will now fail unless rewrite flag "UnsafeAllow3F" is specified.
Affected packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | apache | 2.4.60 |
| alma 8 | httpd:2.4::httpd, httpd:2.4::httpd-devel, httpd:2.4::httpd-filesystem and 8 more | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 and 3 more |
| alma 9 | httpd, httpd-core, httpd-devel and 8 more | 2.4.57-11.el9_4 and 1 more |
| alpine 3.17 | apache2 | 2.4.60-r0 |
| alpine 3.18 | apache2 | 2.4.60-r0 |
| alpine 3.19 | apache2 | 2.4.60-r0 |
| alpine 3.20 | apache2 | 2.4.60-r0 |
| alpine 3.21 | apache2 | 2.4.60-r0 |
| alpine 3.22 | apache2 | 2.4.60-r0 |
| alpine 3.23 | apache2 | 2.4.60-r0 |
| alpine 3.24 | apache2 | 2.4.60-r0 |
| alpine edge | apache2 | 2.4.60-r0 |
Show all 169 entries from 41 sources
| Source | Package | Fixed in |
|---|---|---|
| bitnami::Bitnami Vulnerability Database | apache | 2.4.60 |
| alma 8 | httpd:2.4::httpd | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::httpd-devel | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::httpd-filesystem | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::httpd-manual | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::httpd-tools | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::mod_http2 | 1.15.7-10.module_el8.10.0+3832+564e7653 |
| alma 8 | httpd:2.4::mod_ldap | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::mod_md | 1:2.0.8-8.module_el8.6.0+2872+fe0ff7aa |
| alma 8 | httpd:2.4::mod_proxy_html | 1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::mod_session | 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 8 | httpd:2.4::mod_ssl | 1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 |
| alma 9 | httpd | 2.4.57-11.el9_4 |
| alma 9 | httpd-core | 2.4.57-11.el9_4 |
| alma 9 | httpd-devel | 2.4.57-11.el9_4 |
| alma 9 | httpd-filesystem | 2.4.57-11.el9_4 |
| alma 9 | httpd-manual | 2.4.57-11.el9_4 |
| alma 9 | httpd-tools | 2.4.57-11.el9_4 |
| alma 9 | mod_ldap | 2.4.57-11.el9_4 |
| alma 9 | mod_lua | 2.4.57-11.el9_4 |
| alma 9 | mod_proxy_html | 1:2.4.57-11.el9_4 |
| alma 9 | mod_session | 2.4.57-11.el9_4 |
| alma 9 | mod_ssl | 1:2.4.57-11.el9_4 |
| alpine 3.17 | apache2 | 2.4.60-r0 |
| alpine 3.18 | apache2 | 2.4.60-r0 |
| alpine 3.19 | apache2 | 2.4.60-r0 |
| alpine 3.20 | apache2 | 2.4.60-r0 |
| alpine 3.21 | apache2 | 2.4.60-r0 |
| alpine 3.22 | apache2 | 2.4.60-r0 |
| alpine 3.23 | apache2 | 2.4.60-r0 |
| alpine 3.24 | apache2 | 2.4.60-r0 |
| alpine edge | apache2 | 2.4.60-r0 |
| amazon linux 1 | httpd24 | 2.4.61-1.103.amzn1 |
| amazon linux 1 | httpd24-debuginfo | 2.4.61-1.103.amzn1 |
| amazon linux 1 | httpd24-devel | 2.4.61-1.103.amzn1 |
| amazon linux 1 | httpd24-manual | 2.4.61-1.103.amzn1 |
| amazon linux 1 | httpd24-tools | 2.4.61-1.103.amzn1 |
| amazon linux 1 | mod24_ldap | 2.4.61-1.103.amzn1 |
| amazon linux 1 | mod24_md | 2.4.61-1.103.amzn1 |
| amazon linux 1 | mod24_proxy_html | 1:2.4.61-1.103.amzn1 |
| amazon linux 1 | mod24_session | 2.4.61-1.103.amzn1 |
| amazon linux 1 | mod24_ssl | 1:2.4.61-1.103.amzn1 |
| amazon linux 2 | httpd | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | httpd-debuginfo | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | httpd-devel | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | httpd-filesystem | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | httpd-manual | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | httpd-tools | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | mod_ldap | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | mod_md | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | mod_proxy_html | 1:2.4.61-1.amzn2.0.1 |
| amazon linux 2 | mod_session | 2.4.61-1.amzn2.0.1 |
| amazon linux 2 | mod_ssl | 1:2.4.61-1.amzn2.0.1 |
| amazon linux 2023 | httpd | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-core | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-core-debuginfo | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-debuginfo | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-debugsource | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-devel | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-filesystem | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-manual | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-tools | 2.4.61-1.amzn2023 |
| amazon linux 2023 | httpd-tools-debuginfo | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_ldap | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_ldap-debuginfo | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_lua | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_lua-debuginfo | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_proxy_html | 1:2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_proxy_html-debuginfo | 1:2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_session | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_session-debuginfo | 2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_ssl | 1:2.4.61-1.amzn2023 |
| amazon linux 2023 | mod_ssl-debuginfo | 1:2.4.61-1.amzn2023 |
| debian 11 | apache2 | 2.4.61-1~deb11u1 |
| debian 12 | apache2 | 2.4.61-1~deb12u1 |
| debian 13 | apache2 | 2.4.60-1 |
| debian 14 | apache2 | 2.4.60-1 |
| echo | apache2 | 2.4.61-1~deb12u1 |
| Oracle Linux 7 | httpd | 2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | httpd-devel | 2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | httpd-manual | 2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | httpd-tools | 2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | mod_ldap | 2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | mod_proxy_html | 1:2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | mod_session | 2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 7 | mod_ssl | 1:2.4.6-99.0.3.el7_9.1 |
| Oracle Linux 8 | httpd | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | httpd-devel | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | httpd-filesystem | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | httpd-manual | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | httpd-tools | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | mod_http2 | 1.15.7-10.module+el8.10.0+90327+96b8ea28 |
| Oracle Linux 8 | mod_ldap | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | mod_md | 1:2.0.8-8.module+el8.9.0+90011+2f9c6a23 |
| Oracle Linux 8 | mod_proxy_html | 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | mod_session | 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 8 | mod_ssl | 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 |
| Oracle Linux 9 | httpd | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | httpd-core | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | httpd-devel | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | httpd-filesystem | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | httpd-manual | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | httpd-tools | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | mod_ldap | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | mod_lua | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | mod_proxy_html | 1:2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | mod_session | 2.4.57-11.0.1.el9_4 |
| Oracle Linux 9 | mod_ssl | 1:2.4.57-11.0.1.el9_4 |
| rapidfort amazon linux 2023 | httpd | 1:2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | httpd-core | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | httpd-devel | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | httpd-filesystem | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | httpd-manual | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | httpd-tools | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | mod_ldap | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | mod_lua | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | mod_proxy_html | 1:2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | mod_session | 2.4.61-1.amzn2023 |
| rapidfort amazon linux 2023 | mod_ssl | 1:2.4.61-1.amzn2023 |
| rapidfort Oracle Linux 9 | httpd | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | httpd-core | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | httpd-devel | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | httpd-filesystem | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | httpd-manual | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | httpd-tools | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | mod_ldap | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | mod_lua | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | mod_proxy_html | 1:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | mod_session | 0:2.4.57-11.0.1.el9_4 |
| rapidfort Oracle Linux 9 | mod_ssl | 1:2.4.57-11.0.1.el9_4 |
| rapidfort ubuntu 20.04 | apache2 | 0:2.4.52-1ubuntu4.16, 0:2.4.58-1ubuntu8.8 |
| rapidfort ubuntu 20.04 | rf-apache2 | 0:2.4.52-1ubuntu4.16, 0:2.4.58-1ubuntu8.8 |
| rapidfort ubuntu 22.04 | apache2 | 0:2.4.52-1ubuntu4.16, 0:2.4.58-1ubuntu8.8 |
| rapidfort ubuntu 22.04 | rf-apache2 | 0:2.4.52-1ubuntu4.16, 0:2.4.58-1ubuntu8.8 |
| rapidfort ubuntu 24.04 | apache2 | 0:2.4.52-1ubuntu4.16, 0:2.4.58-1ubuntu8.8 |
| rapidfort ubuntu 24.04 | rf-apache2 | 0:2.4.52-1ubuntu4.16, 0:2.4.58-1ubuntu8.8 |
| rocky 8 | httpd:2.4::httpd | 2.4.37-65.module+el8.10.0+1830+22f0c9e0 |
| rocky 8 | httpd:2.4::httpd-devel | 2.4.37-65.module+el8.10.0+1842+4a9649e8.2 |
| rocky 8 | httpd:2.4::httpd-filesystem | 2.4.37-65.module+el8.10.0+1938+3b7755d4.3 |
| rocky 8 | httpd:2.4::httpd-manual | 2.4.37-65.module+el8.10.0+1830+22f0c9e0 |
| rocky 8 | httpd:2.4::httpd-tools | 2.4.37-65.module+el8.10.0+1842+4a9649e8.2 |
| rocky 8 | httpd:2.4::mod_http2 | 1.15.7-10.module+el8.10.0+1775+6b057638 |
| rocky 8 | httpd:2.4::mod_ldap | 2.4.37-65.module+el8.10.0+1830+22f0c9e0 |
| rocky 8 | httpd:2.4::mod_md | 1:2.0.8-8.module+el8.9.0+1370+89cc8ad5 |
| rocky 8 | httpd:2.4::mod_proxy_html | 1:2.4.37-65.module+el8.10.0+1830+22f0c9e0 |
| rocky 8 | httpd:2.4::mod_session | 2.4.37-65.module+el8.10.0+1840+b070a976.1 |
| rocky 8 | httpd:2.4::mod_ssl | 1:2.4.37-65.module+el8.10.0+1830+22f0c9e0 |
| rocky 9 | httpd | 2.4.57-11.el9_4 |
| rocky 9 | httpd-core | 2.4.57-11.el9_4 |
| rocky 9 | httpd-devel | 2.4.57-11.el9_4 |
| rocky 9 | httpd-filesystem | 2.4.57-11.el9_4 |
| rocky 9 | httpd-manual | 2.4.57-11.el9_4 |
| rocky 9 | httpd-tools | 2.4.57-11.el9_4 |
| rocky 9 | mod_ldap | 2.4.57-11.el9_4 |
| rocky 9 | mod_lua | 2.4.57-11.el9_4 |
| rocky 9 | mod_proxy_html | 1:2.4.57-11.el9_4 |
| rocky 9 | mod_session | 2.4.57-11.el9_4 |
| rocky 9 | mod_ssl | 1:2.4.57-11.el9_4 |
| root.io debian 12 | rootio-apache2 | 2.4.61-1~deb12u1 |
| root.io debian 13 | rootio-apache2 | 2.4.60-1 |
| ubuntu 16.04-ESM | apache2 | 2.4.18-2ubuntu3.17+esm14 |
| ubuntu 18.04-ESM | apache2 | 2.4.29-1ubuntu4.27+esm4 |
| ubuntu 20.04 | apache2 | 2.4.41-4ubuntu3.23 |
| ubuntu 20.04-ESM | apache2 | 2.4.41-4ubuntu3.23 |
| ubuntu 22.04 | apache2 | 2.4.52-1ubuntu4.16 |
| ubuntu 23.10 | apache2 | 2.4.57-2ubuntu2.5 |
| ubuntu 24.04 | apache2 | 2.4.58-1ubuntu8.8 |
| ubuntu 24.10 | apache2 | 2.4.62-1ubuntu1.1 |
| ubuntu 25.04 | apache2 | 2.4.62-1ubuntu1 |
References
- http://www.openwall.com/lists/oss-security/2024/07/01/7
- https://access.redhat.com/errata/RHSA-2024:4726
- https://access.redhat.com/security/cve/CVE-2024-38474
- https://bugzilla.redhat.com/2295012
- https://bugzilla.redhat.com/2295013
- https://bugzilla.redhat.com/2295014
- https://bugzilla.redhat.com/2295016
- https://bugzilla.redhat.com/2295022
All 33 references
- https://bugzilla.redhat.com/show_bug.cgi?id=2295012
- https://bugzilla.redhat.com/show_bug.cgi?id=2295013
- https://bugzilla.redhat.com/show_bug.cgi?id=2295014
- https://bugzilla.redhat.com/show_bug.cgi?id=2295016
- https://bugzilla.redhat.com/show_bug.cgi?id=2295022
- https://creativecommons.org/licenses/by/4.0/
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38473
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38474
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38475
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-38477
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-39573
- https://errata.almalinux.org/9/ALSA-2024-4726.html
- https://errata.rockylinux.org/RLSA-2024:4726
- https://httpd.apache.org/security/vulnerabilities_24.html
- https://httpd.apache.org/security/vulnerabilities_24.html#CVE-2024-38474
- https://linux.oracle.com/cve/CVE-2024-38474.html
- https://linux.oracle.com/errata/ELSA-2024-4943.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-38474
- https://security.netapp.com/advisory/ntap-20240712-0001/
- https://ubuntu.com/security/notices/USN-6885-1
- https://ubuntu.com/security/notices/USN-6885-3
- https://ubuntu.com/security/notices/USN-6885-4
- https://ubuntu.com/security/notices/USN-6885-5
- https://ubuntu.com/security/notices/USN-6885-6
- https://www.cve.org/CVERecord?id=CVE-2024-38474