Skip to content
OpenAdvisories
High · 8.1 CVE-2024-38474 EUVD-2024-37355GHSA-x6g9-g4wf-qrf7

Apache HTTP Server weakness with encoded question marks in backreferences

Published Jul 1, 2024 · Updated Mar 25, 2025 · Assigned by apache

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache HTTP Server 2.4.0 – ≤ 2.4.59 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 apache2 2.4.60-1 —
Debian 13 apache2 2.4.60-1 —
Debian 12 apache2 2.4.61-1~deb12u1 DSA-5729-1
Debian 11 apache2 2.4.61-1~deb11u1 DSA-5729-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS apache2 2.4.58-1ubuntu8.8 USN-6885-1
Ubuntu 22.04 LTS apache2 2.4.52-1ubuntu4.16 USN-6885-1
Ubuntu 20.04 LTS apache2 2.4.41-4ubuntu3.23 USN-6885-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS apache2 2.4.29-1ubuntu4.27+esm4 USN-6885-3
Ubuntu Pro 16.04 LTS apache2 2.4.18-2ubuntu3.17+esm14 USN-6885-3
Ubuntu Pro 14.04 LTS apache2 2.4.7-1ubuntu4.22+esm10 USN-6885-5
ReleasePackageFixed inAdvisory
RHEL 9 httpd +8 2.4.57-11.el9_4 RHSA-2024:4726
RHEL 9 mod_ssl +1 1:2.4.57-11.el9_4 RHSA-2024:4726
RHEL 8 httpd +6 2.4.37-65.module+el8.10.0+22069+b47f5c72.1 RHSA-2024:4720
RHEL 8 mod_http2 1.15.7-10.module+el8.10.0+21653+eaff63f0 RHSA-2024:4720
RHEL 8 mod_md 1:2.0.8-8.module+el8.9.0+19080+567b90f8 RHSA-2024:4720
RHEL 8 mod_ssl +1 1:2.4.37-65.module+el8.10.0+22069+b47f5c72.1 RHSA-2024:4720
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.2 EUS httpd +8 2.4.53-11.el9_2.8 RHSA-2024:4862
RHEL 9.2 EUS mod_ssl +1 1:2.4.53-11.el9_2.8 RHSA-2024:4862
RHEL 9.0 E4S httpd +7 2.4.51-7.el9_0.7 RHSA-2024:4863
RHEL 9.0 E4S mod_ssl +1 1:2.4.51-7.el9_0.7 RHSA-2024:4863
RHEL 8.8 EUS httpd +6 2.4.37-56.module+el8.8.0+22079+e03f6970.8 RHSA-2024:4719
RHEL 8.8 EUS mod_http2 1.15.7-8.module+el8.8.0+21773+20528f83.5 RHSA-2024:4719
RHEL 8.8 EUS mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4719
RHEL 8.8 EUS mod_ssl +1 1:2.4.37-56.module+el8.8.0+22079+e03f6970.8 RHSA-2024:4719
RHEL 8.6 TUS httpd +6 2.4.37-47.module+el8.6.0+22124+21ed7001.9 RHSA-2024:4827
RHEL 8.6 TUS mod_http2 1.15.7-5.module+el8.6.0+21746+f601aac0.3 RHSA-2024:4827
RHEL 8.6 TUS mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4827
RHEL 8.6 TUS mod_ssl +1 1:2.4.37-47.module+el8.6.0+22124+21ed7001.9 RHSA-2024:4827
RHEL 8.6 E4S httpd +6 2.4.37-47.module+el8.6.0+22124+21ed7001.9 RHSA-2024:4827
RHEL 8.6 E4S mod_http2 1.15.7-5.module+el8.6.0+21746+f601aac0.3 RHSA-2024:4827
RHEL 8.6 E4S mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4827
RHEL 8.6 E4S mod_ssl +1 1:2.4.37-47.module+el8.6.0+22124+21ed7001.9 RHSA-2024:4827
RHEL 8.6 AUS httpd +6 2.4.37-47.module+el8.6.0+22124+21ed7001.9 RHSA-2024:4827
RHEL 8.6 AUS mod_http2 1.15.7-5.module+el8.6.0+21746+f601aac0.3 RHSA-2024:4827
RHEL 8.6 AUS mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4827
RHEL 8.6 AUS mod_ssl +1 1:2.4.37-47.module+el8.6.0+22124+21ed7001.9 RHSA-2024:4827
RHEL 8.4 TUS httpd +6 2.4.37-39.module+el8.4.0+22127+467cc488.8 RHSA-2024:4830
RHEL 8.4 TUS mod_http2 1.15.7-3.module+el8.4.0+21747+916a74df.3 RHSA-2024:4830
RHEL 8.4 TUS mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4830
RHEL 8.4 TUS mod_ssl +1 1:2.4.37-39.module+el8.4.0+22127+467cc488.8 RHSA-2024:4830
RHEL 8.4 E4S httpd +6 2.4.37-39.module+el8.4.0+22127+467cc488.8 RHSA-2024:4830
RHEL 8.4 E4S mod_http2 1.15.7-3.module+el8.4.0+21747+916a74df.3 RHSA-2024:4830
RHEL 8.4 E4S mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4830
RHEL 8.4 E4S mod_ssl +1 1:2.4.37-39.module+el8.4.0+22127+467cc488.8 RHSA-2024:4830
RHEL 8.4 AUS httpd +6 2.4.37-39.module+el8.4.0+22127+467cc488.8 RHSA-2024:4830
RHEL 8.4 AUS mod_http2 1.15.7-3.module+el8.4.0+21747+916a74df.3 RHSA-2024:4830
RHEL 8.4 AUS mod_md 1:2.0.8-8.module+el8.3.0+6814+67d1e611 RHSA-2024:4830
RHEL 8.4 AUS mod_ssl +1 1:2.4.37-39.module+el8.4.0+22127+467cc488.8 RHSA-2024:4830
RHEL 8.2 AUS httpd +6 2.4.37-21.module+el8.2.0+22128+68c62a5c.8 RHSA-2024:4820
RHEL 8.2 AUS mod_http2 1.11.3-3.module+el8.2.0+22123+cf5a147c.4 RHSA-2024:4820
RHEL 8.2 AUS mod_md 1:2.0.8-7.module+el8.2.0+5531+7e4d69a2 RHSA-2024:4820
RHEL 8.2 AUS mod_ssl +1 1:2.4.37-21.module+el8.2.0+22128+68c62a5c.8 RHSA-2024:4820
RHEL 7.7 AUS httpd +5 2.4.6-90.el7_7.4 RHSA-2024:4938
RHEL 7.7 AUS mod_ssl +1 1:2.4.6-90.el7_7.4 RHSA-2024:4938
RHEL 7 ELS httpd +5 2.4.6-99.el7_9.2 RHSA-2024:4943
RHEL 7 ELS mod_ssl +1 1:2.4.6-99.el7_9.2 RHSA-2024:4943
Red Hat JBoss Core Services 1 jbcs-httpd24-httpd +6 2.4.57-13.el7jbcs RHSA-2024:5239
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_http2 1.15.19-41.el7jbcs RHSA-2024:5239
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_jk +1 1.2.49-11.redhat_1.el7jbcs RHSA-2024:5239
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_md 1:2.4.24-11.el7jbcs RHSA-2024:5239
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_proxy_cluster 1.3.20-8.el7jbcs RHSA-2024:5239
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_security 2.9.3-40.el7jbcs RHSA-2024:5239
Red Hat JBoss Core Services 1 jbcs-httpd24-mod_ssl +1 1:2.4.57-13.el7jbcs RHSA-2024:5239

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 httpd +8 2.4.57-11.el9_4 ALSA-2024:4726
AlmaLinux 9 mod_ssl +1 1:2.4.57-11.el9_4 ALSA-2024:4726
AlmaLinux 8 httpd +6 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 ALSA-2024:4720
AlmaLinux 8 mod_http2 1.15.7-10.module_el8.10.0+3832+564e7653 ALSA-2024:4720
AlmaLinux 8 mod_md 1:2.0.8-8.module_el8.6.0+2872+fe0ff7aa ALSA-2024:4720
AlmaLinux 8 mod_ssl +1 1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1 ALSA-2024:4720

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 httpd 2.4.57-11.el9_4 RLSA-2024:4726
Rocky Linux 8 httpd 2.4.37-65.module+el8.10.0+1830+22f0c9e0 RLSA-2024:4720
Rocky Linux 8 mod_http2 1.15.7-10.module+el8.10.0+1775+6b057638 RLSA-2024:4720
Rocky Linux 8 mod_md 1:2.0.8-8.module+el8.9.0+1370+89cc8ad5 RLSA-2024:4720
ReleasePackageFixed inAdvisory
SLES 15 SP6 apache2 2.4.51-150400.6.34.1 SUSE-SU-2024:3173-1, SUSE-SU-2024:3172-1
SLES 15 SP6 apache2-devel +4 2.4.58-150600.5.23.1 SUSE-SU-2024:3172-1
SLES 15 SP5 apache2 2.4.51-150400.6.34.1 SUSE-SU-2026:2686-1, SUSE-SU-2024:3173-1
SLES 15 SP4 apache2 2.4.51-150400.6.34.1 SUSE-SU-2026:2686-1, SUSE-SU-2024:3173-1
SLES 15 SP3 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
SLES 15 SP2 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES 12 SP5 apache2 2.4.51-35.57.1 SUSE-SU-2024:2999-1
SLES 12 SP5 apache2-tls13 2.4.51-35.57.2 SUSE-SU-2024:2999-1
SLES for SAP 15 SP5 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLES for SAP 15 SP4 apache2 2.4.51-150400.6.34.1 SUSE-SU-2026:2686-1, SUSE-SU-2024:3173-1
SLES for SAP 15 SP3 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
SLES for SAP 15 SP2 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
SLES for SAP 12 SP5 apache2 2.4.51-35.57.1 SUSE-SU-2024:2999-1
SLES for SAP 12 SP5 apache2-tls13 2.4.51-35.57.2 SUSE-SU-2024:2999-1
SLE HPC 15 SP5 apache2 2.4.66-150400.6.57.1 SUSE-SU-2026:2686-1
SLE HPC 15 SP4 apache2 2.4.51-150400.6.34.1 SUSE-SU-2026:2686-1, SUSE-SU-2024:3173-1
SLE HPC 15 SP3 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
SLE HPC 15 SP2 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
SUSE Manager Server 4.3 apache2 2.4.51-150400.6.34.1 SUSE-SU-2024:3173-1
SUSE Manager Proxy 4.3 apache2 2.4.51-150400.6.34.1 SUSE-SU-2024:3173-1
SUSE Enterprise Storage 7.1 apache2 2.4.51-150200.3.73.1 SUSE-SU-2024:2997-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed apache2 2.4.61-1.1 openSUSE-SU-2024:14116-1
openSUSE Leap 15.6 apache2 +6 2.4.58-150600.5.23.1 SUSE-SU-2024:3172-1
openSUSE Leap 15.5 apache2 2.4.51-150400.6.34.1 SUSE-SU-2024:3173-1
ReleasePackageFixed inAdvisory
Alpine v3.24 apache2 2.4.60-r0 —
Alpine v3.23 apache2 2.4.60-r0 —
Alpine v3.22 apache2 2.4.60-r0 —
Alpine v3.21 apache2 2.4.60-r0 —
Alpine v3.20 apache2 2.4.60-r0 —
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 apache2 2.4.60-r0 —
Alpine v3.18 apache2 2.4.60-r0 —
Alpine v3.17 apache2 2.4.60-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 httpd +8 2.4.61-1.amzn2023 ALAS2023-2024-656
Amazon Linux 2023 mod_ssl +1 1:2.4.61-1.amzn2023 ALAS2023-2024-656
Amazon Linux 2 httpd +7 2.4.61-1.amzn2.0.1 ALAS2-2024-2594
Amazon Linux 2 mod_ssl +1 1:2.4.61-1.amzn2.0.1 ALAS2-2024-2594

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 httpd +8 2.4.57-11.0.1.el9_4 ELSA-2024-4726
Oracle Linux 9 mod_ssl +1 1:2.4.57-11.0.1.el9_4 ELSA-2024-4726
Oracle Linux 8 httpd +6 2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 ELSA-2024-4720
Oracle Linux 8 mod_http2 1.15.7-10.module+el8.10.0+90327+96b8ea28 ELSA-2024-4720
Oracle Linux 8 mod_md 1:2.0.8-8.module+el8.9.0+90011+2f9c6a23 ELSA-2024-4720
Oracle Linux 8 mod_ssl +1 1:2.4.37-65.0.1.module+el8.10.0+90368+a557a4bf.1 ELSA-2024-4720
Oracle Linux 7 httpd +5 2.4.6-99.0.3.el7_9.1 ELSA-2024-4943
Oracle Linux 7 mod_ssl +1 1:2.4.6-99.0.3.el7_9.1 ELSA-2024-4943

Advisories 33

References