CVE-2024-38474
Apache HTTP Server vulnerability analysis and mitigation

Overview

A substitution encoding issue was discovered in modrewrite module of Apache HTTP Server versions 2.4.0 through 2.4.59. The vulnerability (CVE-2024-38474) was reported by Orange Tsai (@orange8361) from DEVCORE on April 1, 2024, and was fixed in version 2.4.60 released on July 1, 2024 (Apache Vulnerabilities, OSS Security).

Technical details

The vulnerability allows attackers to execute scripts in directories that are permitted by the configuration but not directly reachable by any URL, or enables source disclosure of scripts meant to only be executed as CGI. After the fix, some RewriteRules that capture and substitute unsafely will fail unless the rewrite flag 'UnsafeAllow3F' is specified. The vulnerability has been rated as having an Important security impact with a CVSS score of 8.1 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H (NetApp Advisory).

Impact

When successfully exploited, this vulnerability could lead to unauthorized script execution in permitted directories that are not meant to be directly accessible. Additionally, it could result in the disclosure of source code for scripts that are intended to be executed only as CGI applications (Apache Vulnerabilities).

Mitigation and workarounds

Users are strongly recommended to upgrade to Apache HTTP Server version 2.4.60 or later, which contains the fix for this vulnerability. For configurations that require maintaining potentially unsafe RewriteRules, administrators must explicitly enable the 'UnsafeAllow3F' flag. Various vendors have also released patches for their affected products, such as Red Hat's updates for Enterprise Linux (Red Hat Advisory).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management