CVEfocus › CVE database › CVE-2024-38474

CVE-2024-38474Apache HTTP Server weakness with encoded question marks in backreferences

CVSS 8.1 HighEPSS 2.4% (higher than 85% of CVEs)Published 2024-07-01Updated 2025-03-25Assigner: apache

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.

CWE-116

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

62Fixed
3Fix pending
16Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 24.04apache2Fixed2.4.58-1ubuntu8.8UBUNTU-CVE-2024-38474
Ubuntu 22.04apache2Fixed2.4.52-1ubuntu4.16UBUNTU-CVE-2024-38474
Ubuntu 20.04apache2Fixed2.4.41-4ubuntu3.23UBUNTU-CVE-2024-38474
Ubuntu 18.04apache2Fix pending2.4.29-1ubuntu4.27+esm4 (Ubuntu Pro)UBUNTU-CVE-2024-38474
Ubuntu 16.04apache2Fix pending2.4.18-2ubuntu3.17+esm14 (Ubuntu Pro)UBUNTU-CVE-2024-38474
Ubuntu 14.04apache2Fix pending2.4.7-1ubuntu4.22+esm10 (Ubuntu Pro)UBUNTU-CVE-2024-38474
Debian 14apache2Fixed2.4.60-1DEBIAN-CVE-2024-38474
Debian 13apache2Fixed2.4.60-1DEBIAN-CVE-2024-38474
Debian 12apache2Fixed2.4.61-1~deb12u1DEBIAN-CVE-2024-38474
Red Hat Enterprise Linux 10httpdNot affected
Red Hat Enterprise Linux 10httpd-coreNot affected
Red Hat Enterprise Linux 10httpd-develNot affected
Red Hat Enterprise Linux 10httpd-filesystemNot affected
Red Hat Enterprise Linux 10httpd-manualNot affected
Red Hat Enterprise Linux 10httpd-toolsNot affected
Red Hat Enterprise Linux 10mod_ldapNot affected
Red Hat Enterprise Linux 10mod_luaNot affected
Red Hat Enterprise Linux 10mod_proxy_htmlNot affected
Red Hat Enterprise Linux 10mod_sessionNot affected
Red Hat Enterprise Linux 10mod_sslNot affected
Red Hat Enterprise Linux 9httpdFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9httpd-coreFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9httpd-develFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9httpd-filesystemFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9httpd-manualFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9httpd-toolsFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9mod_ldapFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9mod_luaFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9mod_proxy_htmlFixed1:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9mod_sessionFixed0:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 9mod_sslFixed1:2.4.57-11.el9_4RHSA-2024:4726
Red Hat Enterprise Linux 8httpdFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8httpd-develFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8httpd-filesystemFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8httpd-manualFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8httpd-toolsFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8mod_http2Fixed0:1.15.7-10.module+el8.10.0+21653+eaff63f0RHSA-2024:4720
Red Hat Enterprise Linux 8mod_ldapFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8mod_mdFixed1:2.0.8-8.module+el8.9.0+19080+567b90f8RHSA-2024:4720
Red Hat Enterprise Linux 8mod_proxy_htmlFixed1:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8mod_sessionFixed0:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 8mod_sslFixed1:2.4.37-65.module+el8.10.0+22069+b47f5c72.1RHSA-2024:4720
Red Hat Enterprise Linux 6httpdNot affected
Red Hat Enterprise Linux 6httpd-develNot affected
Red Hat Enterprise Linux 6httpd-manualNot affected
Red Hat Enterprise Linux 6httpd-toolsNot affected
Red Hat Enterprise Linux 6mod_sslNot affected
AlmaLinux 9httpdFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9httpd-coreFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9httpd-develFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9httpd-filesystemFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9httpd-manualFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9httpd-toolsFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9mod_ldapFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9mod_luaFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9mod_proxy_htmlFixed1:2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9mod_sessionFixed2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 9mod_sslFixed1:2.4.57-11.el9_4ALSA-2024:4726
AlmaLinux 8httpdFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8httpd-develFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8httpd-filesystemFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8httpd-manualFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8httpd-toolsFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8mod_http2Fixed1.15.7-10.module_el8.10.0+3832+564e7653ALSA-2024:4720
AlmaLinux 8mod_ldapFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8mod_mdFixed1:2.0.8-8.module_el8.6.0+3031+fb177b09ALSA-2024:4720
AlmaLinux 8mod_proxy_htmlFixed1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8mod_sessionFixed2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
AlmaLinux 8mod_sslFixed1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1ALSA-2024:4720
Rocky Linux 9httpdFixed0:2.4.57-11.el9_4RLSA-2024:4726
Rocky Linux 8httpdFixed0:2.4.37-65.module+el8.10.0+1830+22f0c9e0RLSA-2024:4720
Rocky Linux 8mod_http2Fixed0:1.15.7-10.module+el8.10.0+1938+3b7755d4.3RLSA-2024:4720
Rocky Linux 8mod_mdFixed1:2.0.8-8.module+el8.9.0+1370+89cc8ad5RLSA-2024:4720
Alpine Linux 3.24apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.23apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.22apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.21apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.20apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.19apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.18apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474
Alpine Linux 3.17apache2Fixed2.4.60-r0ALPINE-CVE-2024-38474

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.