Input validation error in Apache HTTP Server - CVE-2024-38475

 

Input validation error in Apache HTTP Server - CVE-2024-38475

Published: July 1, 2024 / Updated: May 1, 2025


Vulnerability identifier: #VU93542
CSH Severity: Critical
CVSS v4: 9.2 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-38475
CWE-ID: CWE-20
Exploitation vector: Remote access
Exploit availability: Public exploit is available

Vulnerability details

The vulnerability allows a remote attacker to compromise the affected system.

The vulnerability exists due to insufficient validation of user-supplied input in mod_rewrite when first segment of substitution matches filesystem path. A remote attacker can map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL and view contents of files or execute arbitrary code.


Affected software

Apache HTTP Server
HP-UX Apache Web Server
IBM HTTP Server
Gentoo Linux
Amazon Linux AMI
Debian Linux
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Server
SUSE Manager Retail Branch Server
SUSE Manager Proxy
SUSE Linux Enterprise Micro
Anolis OS
SUSE Enterprise Storage
IBM i
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for ARM 64
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Ubuntu
Slackware Linux
SUSE Linux Enterprise Server 15 SP2 LTSS
SUSE Linux Enterprise High Performance Computing 15 SP2 LTSS
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Desktop 15 SP4 LTSS
SUSE Linux Enterprise Server 15 SP4 LTSS
SUSE Package Hub 15
Server Applications Module
Basesystem Module
openSUSE Leap
openEuler
Fedora
CyberSense OS
IBM Business Automation Workflow
EasyApache
Oracle SD-WAN Edge
Desktop Laptop Option
Oracle HTTP Server
IBM Cloud Object Storage Systems
IBM Tivoli Monitoring
IBM Rational Build Forge
IBM Power Hardware Management Console (HMC)
EMC NetWorker Server
DataPower Operations Dashboard
Dell EMC OpenManage Enterprise Modular
IBM Aspera Console
IBM Cloud Pak for Watson AIOps
HPE OneView
NetWorker Management Console (NMC)
Traffix SDC
IBM Cloud Pak for Multicloud Management
Red Hat OpenShift Container Platform
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
apache2 (Ubuntu package)
jbcs-httpd24-mod_proxy_cluster (Red Hat package)
mod_http2
jbcs-httpd24-mod_http2 (Red Hat package)
mod_md
httpd (Red Hat package)
httpd-manual
httpd
httpd-devel
httpd-tools
mod_ldap
mod_ssl
mod_session
mod_proxy_html
jbcs-httpd24-mod_md (Red Hat package)
httpd-filesystem
httpd-help
httpd-debugsource
httpd-debuginfo
apache2-doc
apache2-worker-debuginfo
apache2-worker
apache2-prefork-debuginfo
apache2-prefork
apache2-utils
apache2
apache2-debuginfo
apache2-debugsource
apache2-devel
apache2-utils-debuginfo
apache2-event
apache2-example-pages
apache2-event-debuginfo
jbcs-httpd24-httpd (Red Hat package)
apache2-worker-debugsource
apache2-event-debugsource
apache2-prefork-debugsource
apache2-utils-debugsource
apache2-manual
apache2 (Debian package)
httpd24
www-servers/apache
httpd-doc
mod_lua
httpd-core
jbcs-httpd24-mod_security (Red Hat package)
SMA 100
BIG-IP
SecurityCenter
Planning Analytics Local
IBM Cloud Pak System
JBoss Core Services

How to mitigate CVE-2024-38475

Install updates from vendor's website.

Apache HTTP Server - update to 2.4.60
DataPower Operations Dashboard - update to 1.0.22.0
EasyApache - update to 4 2024-7-10
SMA 100 - update to 10.2.1.14-75sv
apache2 (Ubuntu package) - addressed in versions Ubuntu Pro, 2.4.7-1ubuntu4.22+esm10, 2.4.41-4ubuntu3.19, 2.4.41-4ubuntu3.20, 2.4.52-1ubuntu4.10, 2.4.52-1ubuntu4.11, 2.4.57-2ubuntu2.5, 2.4.58-1ubuntu8.2, 2.4.58-1ubuntu8.3
SecurityCenter - update to SC-202408.1
jbcs-httpd24-mod_proxy_cluster (Red Hat package) - addressed in versions 1.3.20-8.el7jbcs, 1.3.20-8.el8jbcs
CyberSense OS - update to 1.5.0-47
mod_http2 - update to 1.15.7-10
jbcs-httpd24-mod_http2 (Red Hat package) - addressed in versions 1.15.19-41.el7jbcs, 1.15.19-41.el8jbcs
Planning Analytics Local - addressed in versions 2.0.0.99, 2.1.6
mod_md - update to 2.0.8-8
IBM Cloud Pak for Multicloud Management - update to 2.3 FP11
IBM Cloud Pak System - update to 2.3.4.1
httpd (Red Hat package) - addressed in versions 2.4.6-90.el7_7.4, 2.4.51-7.el9_0.7, 2.4.53-11.el9_2.8, 2.4.57-11.el9_4
httpd-manual - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
httpd - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
httpd-devel - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
httpd-tools - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
mod_ldap - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
mod_ssl - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
mod_session - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
mod_proxy_html - addressed in versions 2.4.6-99, 2.4.37-65.0.1, 2.4.62-1
jbcs-httpd24-mod_md (Red Hat package) - addressed in versions 2.4.24-11.el7jbcs, 2.4.24-11.el8jbcs
httpd-filesystem - addressed in versions 2.4.37-65.0.1, 2.4.62-1
mod_md - update to 2.4.51-22
mod_proxy_html - update to 2.4.51-22
mod_session - update to 2.4.51-22
mod_ssl - update to 2.4.51-22
httpd-filesystem - update to 2.4.51-22
httpd-help - update to 2.4.51-22
mod_ldap - update to 2.4.51-22
httpd-tools - update to 2.4.51-22
httpd-devel - update to 2.4.51-22
httpd-debugsource - update to 2.4.51-22
httpd-debuginfo - update to 2.4.51-22
httpd - update to 2.4.51-22
apache2-doc - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.66-150400.6.57.1
apache2-worker-debuginfo - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-worker - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-prefork-debuginfo - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-prefork - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-utils - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2 - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-debuginfo - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-debugsource - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-devel - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-utils-debuginfo - addressed in versions 2.4.51-150200.3.70.1, 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-event - addressed in versions 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
apache2-example-pages - addressed in versions 2.4.51-150400.6.29.1, 2.4.66-150400.6.57.1
apache2-event-debuginfo - addressed in versions 2.4.51-150400.6.29.1, 2.4.58-150600.5.18.1, 2.4.66-150400.6.57.1
JBoss Core Services - update to 2.4.57 SP5
jbcs-httpd24-httpd (Red Hat package) - addressed in versions 2.4.57-13.el7jbcs, 2.4.57-13.el8jbcs
apache2-worker-debugsource - update to 2.4.58-150600.5.18.1
apache2-event-debugsource - update to 2.4.58-150600.5.18.1
apache2-prefork-debugsource - update to 2.4.58-150600.5.18.1
apache2-utils-debugsource - update to 2.4.58-150600.5.18.1
apache2-manual - update to 2.4.58-150600.5.18.1
httpd - update to 2.4.60
httpd - addressed in versions 2.4.61-1.fc39, 2.4.61-1.fc40
apache2 (Debian package) - addressed in versions 2.4.61-1~deb11u1, 2.4.61-1~deb12u1
httpd24 - update to 2.4.61-1.103
HP-UX Apache Web Server - update to 2.4.62.00
www-servers/apache - update to 2.4.62
httpd-doc - update to 2.4.62-1
mod_lua - update to 2.4.62-1
httpd-core - update to 2.4.62-1
jbcs-httpd24-mod_security (Red Hat package) - addressed in versions 2.9.3-40.el7jbcs, 2.9.3-40.el8jbcs
Dell EMC OpenManage Enterprise Modular - update to 2.20.10
IBM Aspera Console - update to 3.4.5
IBM Cloud Object Storage Systems - addressed in versions 3.18.0.75, 3.18.4.45
IBM Cloud Pak for Watson AIOps - update to 4.7.0
Red Hat OpenShift Container Platform - update to 4.14.34
IBM Tivoli Monitoring - update to 6.3.0.7 Plus Service Pack 5
IBM Rational Build Forge - update to 8.0.0.27
IBM HTTP Server - addressed in versions 8.5.5.27, 9.0.5.21
HPE OneView - update to 10.00
IBM Power Hardware Management Console (HMC) - addressed in versions 10.2.1040.0 SP3, 10.3.1060.0 SP1
EMC NetWorker Server - update to 19.10.0.5
NetWorker Management Console (NMC) - update to 19.10.0.5

Links to Public Exploits and PoC-codes

External References

Related Security Bulletins