Skip to content
Fencer Vulns
high 8.1

CVE-2024-38474 json

Apache HTTP Server weakness with encoded question marks in backreferences

published 2024-07-01 2 y ago modified 2026-09-08 2 mo ago also BIT-apache-2024-38474 , EUVD-2024-37355

cvss
8.1
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
2.5%
EPSS 2.5% chance of exploitation in 30 days, percentile 84%
public exploits
0
none known

Summary

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.

Patch / fix

  • bitnami apache 2.4.60
  • apache http_server 2.4.60
  • apache2 Debian 12 2.4.61-1~deb12u1
  • apache2 Debian 14, Debian 13 2.4.60-1

debian advisories DEBIAN-CVE-2024-38474

  • apache2 Ubuntu 20.04 LTS 2.4.41-4ubuntu3.23
  • apache2 Ubuntu 22.04 LTS 2.4.52-1ubuntu4.16
  • apache2 Ubuntu 24.04 LTS 2.4.58-1ubuntu8.8
  • apache2 Ubuntu Pro 14.04 LTS 2.4.7-1ubuntu4.22+esm10
  • apache2 Ubuntu Pro 16.04 LTS 2.4.18-2ubuntu3.17+esm14
  • apache2 Ubuntu Pro 18.04 LTS 2.4.29-1ubuntu4.27+esm4

ubuntu advisories UBUNTU-CVE-2024-38474

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • jbcs-httpd24-httpd jboss core services 1 2.4.57-13.el7jbcs
  • jbcs-httpd24-httpd jboss core services 1 2.4.57-13.el8jbcs
  • jbcs-httpd24-mod_jk jboss core services 1 1.2.49-11.redhat_1.el7jbcs
  • jbcs-httpd24-mod_jk jboss core services 1 1.2.49-11.redhat_1.el8jbcs
  • jbcs-httpd24-mod_md jboss core services 1 1:2.4.24-11.el7jbcs
  • jbcs-httpd24-mod_md jboss core services 1 1:2.4.24-11.el8jbcs
  • jbcs-httpd24-mod_ssl jboss core services 1 1:2.4.57-13.el7jbcs
  • jbcs-httpd24-mod_ssl jboss core services 1 1:2.4.57-13.el8jbcs

red hat advisories RHSA-2024:5239RHSA-2024:4938RHSA-2024:4943RHSA-2024:4863RHSA-2024:4719RHSA-2024:4862

  • apache2 SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES 15 SP5-LTSS +5 more 2.4.66-150400.6.57.1
  • apache2 SLES for SAP 15 SP4, SLES 15 SP4-LTSS, SLE Module for Server Applications 15 SP6 +8 more 2.4.51-150400.6.34.1
  • apache2 SLE Module for Package Hub 15 SP6, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.23.1
  • apache2-event SLE Module for Package Hub 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.23.1
  • apache2-utils SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.23.1
  • apache2-manual openSUSE Leap 15.6 2.4.58-150600.5.23.1
  • apache2-worker SLE Module for Server Applications 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.23.1
  • apache2-prefork SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 2.4.58-150600.5.23.1

suse advisories SUSE-SU-2026:2686-1SUSE-SU-2024:3173-1SUSE-SU-2024:3172-1SUSE-SU-2024:2999-1SUSE-SU-2024:2997-1

  • apache2 openSUSE Tumbleweed 2.4.61-1.1

opensuse advisories openSUSE-SU-2024:14116-1

  • httpd AlmaLinux 8 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1
  • mod_md AlmaLinux 8 1:2.0.8-8.module_el8.6.0+2872+fe0ff7aa
  • mod_md AlmaLinux 8 1:2.0.8-8.module_el8.6.0+3031+fb177b09
  • mod_ssl AlmaLinux 8 1:2.4.37-65.module_el8.10.0+3872+9b8ab21e.1
  • mod_ldap AlmaLinux 8 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1
  • mod_http2 AlmaLinux 8 1.15.7-10.module_el8.10.0+3832+564e7653
  • httpd-tools AlmaLinux 8 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1
  • mod_session AlmaLinux 8 2.4.37-65.module_el8.10.0+3872+9b8ab21e.1

almalinux advisories ALSA-2024:4720ALSA-2024:4726

  • httpd Rocky Linux 8 2.4.37-65.module+el8.10.0+1830+22f0c9e0
  • httpd Rocky Linux 8 2.4.37-65.module+el8.10.0+1840+b070a976.1
  • httpd Rocky Linux 8 2.4.37-65.module+el8.10.0+1842+4a9649e8.2
  • httpd Rocky Linux 8 2.4.37-65.module+el8.10.0+1938+3b7755d4.3
  • mod_md Rocky Linux 8 1:2.0.8-8.module+el8.9.0+1370+89cc8ad5
  • mod_http2 Rocky Linux 8 1.15.7-10.module+el8.10.0+1775+6b057638
  • mod_http2 Rocky Linux 8 1.15.7-10.module+el8.10.0+1830+22f0c9e0
  • mod_http2 Rocky Linux 8 1.15.7-10.module+el8.10.0+1883+38ed6c58.1

rocky linux advisories RLSA-2024:4720RLSA-2024:4726

  • apache2 Alpine 3.24, Alpine 3.23, Alpine 3.22 +5 more 2.4.60-r0

alpine advisories ALPINE-CVE-2024-38474

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-38474 updated cvss 9.8

httpd: Substitution encoding issue in mod_rewrite

  • Red Hat Enterprise Linux AppStream (v. 8) mod_md 2.0.8-8.module+el8.9.0+19080+567b90f8, httpd 2.4.37-65.module+el8.10.0+22069+b47f5c72.1, mod_http2 1.15.7-10.module+el8.10.0+21653+eaff63f0, mod_ssl 2.4.37-65.module+el8.10.0+22069+b47f5c72.1, mod_ldap 2.4.37-65.module+el8.10.0+22069+b47f5c72.1, httpd-tools 2.4.37-65.module+el8.10.0+22069+b47f5c72.1, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4720
  • Red Hat Enterprise Linux AppStream (v. 9) httpd 2.4.57-11.el9_4, mod_lua 2.4.57-11.el9_4, mod_ssl 2.4.57-11.el9_4, mod_ldap 2.4.57-11.el9_4, httpd-core 2.4.57-11.el9_4, httpd-tools 2.4.57-11.el9_4, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4726
  • Red Hat Enterprise Linux AppStream AUS (v. 8.2) mod_md 2.0.8-7.module+el8.2.0+5531+7e4d69a2, httpd 2.4.37-21.module+el8.2.0+22128+68c62a5c.8, mod_ssl 2.4.37-21.module+el8.2.0+22128+68c62a5c.8, mod_http2 1.11.3-3.module+el8.2.0+22123+cf5a147c.4, mod_ldap 2.4.37-21.module+el8.2.0+22128+68c62a5c.8, httpd-tools 2.4.37-21.module+el8.2.0+22128+68c62a5c.8, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4820
  • Red Hat Enterprise Linux AppStream AUS (v.8.4) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-39.module+el8.4.0+22127+467cc488.8, mod_ssl 2.4.37-39.module+el8.4.0+22127+467cc488.8, mod_http2 1.15.7-3.module+el8.4.0+21747+916a74df.3, mod_ldap 2.4.37-39.module+el8.4.0+22127+467cc488.8, httpd-tools 2.4.37-39.module+el8.4.0+22127+467cc488.8, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4830
  • Red Hat Enterprise Linux AppStream AUS (v.8.6) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-47.module+el8.6.0+22124+21ed7001.9, mod_ssl 2.4.37-47.module+el8.6.0+22124+21ed7001.9, mod_http2 1.15.7-5.module+el8.6.0+21746+f601aac0.3, mod_ldap 2.4.37-47.module+el8.6.0+22124+21ed7001.9, httpd-tools 2.4.37-47.module+el8.6.0+22124+21ed7001.9, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4827
  • Red Hat Enterprise Linux AppStream E4S (v.8.4) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-39.module+el8.4.0+22127+467cc488.8, mod_ssl 2.4.37-39.module+el8.4.0+22127+467cc488.8, mod_http2 1.15.7-3.module+el8.4.0+21747+916a74df.3, mod_ldap 2.4.37-39.module+el8.4.0+22127+467cc488.8, httpd-tools 2.4.37-39.module+el8.4.0+22127+467cc488.8, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4830
  • Red Hat Enterprise Linux AppStream E4S (v.8.6) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-47.module+el8.6.0+22124+21ed7001.9, mod_ssl 2.4.37-47.module+el8.6.0+22124+21ed7001.9, mod_http2 1.15.7-5.module+el8.6.0+21746+f601aac0.3, mod_ldap 2.4.37-47.module+el8.6.0+22124+21ed7001.9, httpd-tools 2.4.37-47.module+el8.6.0+22124+21ed7001.9, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4827
  • Red Hat Enterprise Linux AppStream E4S (v.9.0) httpd 2.4.51-7.el9_0.7, mod_lua 2.4.51-7.el9_0.7, mod_ssl 2.4.51-7.el9_0.7, mod_ldap 2.4.51-7.el9_0.7, httpd-tools 2.4.51-7.el9_0.7, mod_session 2.4.51-7.el9_0.7, +3 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4863
show 11 more
  • Red Hat Enterprise Linux AppStream EUS (v.8.8) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-56.module+el8.8.0+22079+e03f6970.8, mod_ssl 2.4.37-56.module+el8.8.0+22079+e03f6970.8, mod_http2 1.15.7-8.module+el8.8.0+21773+20528f83.5, mod_ldap 2.4.37-56.module+el8.8.0+22079+e03f6970.8, httpd-tools 2.4.37-56.module+el8.8.0+22079+e03f6970.8, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4719
  • Red Hat Enterprise Linux AppStream EUS (v.9.2) httpd 2.4.53-11.el9_2.8, mod_lua 2.4.53-11.el9_2.8, mod_ssl 2.4.53-11.el9_2.8, mod_ldap 2.4.53-11.el9_2.8, httpd-core 2.4.53-11.el9_2.8, httpd-tools 2.4.53-11.el9_2.8, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4862
  • Red Hat Enterprise Linux AppStream TUS (v.8.4) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-39.module+el8.4.0+22127+467cc488.8, mod_ssl 2.4.37-39.module+el8.4.0+22127+467cc488.8, mod_http2 1.15.7-3.module+el8.4.0+21747+916a74df.3, mod_ldap 2.4.37-39.module+el8.4.0+22127+467cc488.8, httpd-tools 2.4.37-39.module+el8.4.0+22127+467cc488.8, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4830
  • Red Hat Enterprise Linux AppStream TUS (v.8.6) mod_md 2.0.8-8.module+el8.3.0+6814+67d1e611, httpd 2.4.37-47.module+el8.6.0+22124+21ed7001.9, mod_ssl 2.4.37-47.module+el8.6.0+22124+21ed7001.9, mod_http2 1.15.7-5.module+el8.6.0+21746+f601aac0.3, mod_ldap 2.4.37-47.module+el8.6.0+22124+21ed7001.9, httpd-tools 2.4.37-47.module+el8.6.0+22124+21ed7001.9, +4 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4827
  • Red Hat Enterprise Linux Server (v. 7 ELS) httpd 2.4.6-99.el7_9.2, mod_ssl 2.4.6-99.el7_9.2, httpd-tools 2.4.6-99.el7_9.2, mod_session 2.4.6-99.el7_9.2, httpd-manual 2.4.6-99.el7_9.2
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4943
  • Red Hat Enterprise Linux Server AUS (v. 7.7) httpd 2.4.6-90.el7_7.4, mod_ssl 2.4.6-90.el7_7.4, httpd-tools 2.4.6-90.el7_7.4, mod_session 2.4.6-90.el7_7.4, httpd-manual 2.4.6-90.el7_7.4
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4938
  • Red Hat Enterprise Linux Server Optional (v. 7 ELS) mod_ldap 2.4.6-99.el7_9.2, mod_proxy_html 2.4.6-99.el7_9.2
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4943
  • Red Hat Enterprise Linux Server Optional AUS (v. 7.7) mod_ldap 2.4.6-90.el7_7.4, mod_proxy_html 2.4.6-90.el7_7.4
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:4938
  • Red Hat JBoss Core Services
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:5240
  • Red Hat JBoss Core Services on RHEL 7 Server jbcs-httpd24-httpd 2.4.57-13.el7jbcs, jbcs-httpd24-mod_md 2.4.24-11.el7jbcs, jbcs-httpd24-mod_ssl 2.4.57-13.el7jbcs, jbcs-httpd24-mod_ldap 2.4.57-13.el7jbcs, jbcs-httpd24-mod_http2 1.15.19-41.el7jbcs, jbcs-httpd24-httpd-tools 2.4.57-13.el7jbcs, +8 more Red Hat JBoss Core Services on RHEL 8 jbcs-httpd24-httpd 2.4.57-13.el8jbcs, jbcs-httpd24-mod_md 2.4.24-11.el8jbcs, jbcs-httpd24-mod_ssl 2.4.57-13.el8jbcs, jbcs-httpd24-mod_ldap 2.4.57-13.el8jbcs, jbcs-httpd24-mod_http2 1.15.19-41.el8jbcs, jbcs-httpd24-httpd-tools 2.4.57-13.el8jbcs, +8 more
    fixed: vendor fix “Red Hat has investigated whether a possible mitigation exists for this issue, and has not been able to identify a practical example. Please update the affected package as soon as possible.” RHSA-2024:5239
  • Red Hat Enterprise Linux 6 httpd, mod_ssl, httpd-tools, httpd-manual Red Hat Enterprise Linux 10 httpd
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

2.46% chance of exploitation in the next 30 days, higher than 84% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
NVD 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 8.1 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
bitnami apache
>=2.4.0, <2.4.60
2.4.60

Affected products

  • Apache Software Foundation Apache HTTP Server

Classification

Weakness
  • CWE-116 Improper Encoding or Escaping of Output
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.