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

Overview

Improper escaping of output in mod_rewrite in Apache HTTP Server 2.4.59 and earlier allows an attacker to map URLs to filesystem locations that are permitted to be served by the server but are not intentionally/directly reachable by any URL. The vulnerability was discovered by Orange Tsai (@orange_8361) from DEVCORE and was reported on April 1, 2024. The issue affects Apache HTTP Server versions 2.4.0 through 2.4.59 (Apache Advisory).

Technical details

The vulnerability occurs when substitutions in server context use backreferences or variables as the first segment of the substitution. This can lead to improper path mapping, potentially exposing filesystem locations that should not be directly accessible. The vulnerability has been assigned a CVSS base score of 9.1 CRITICAL with the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N (CISA ADP).

Impact

Successful exploitation of this vulnerability could result in code execution or source code disclosure. The attacker can map URLs to filesystem locations that are permitted to be served by the server but are not intentionally or directly reachable by any URL (Apache Advisory, OSS Security).

Exploitability

The vulnerability requires an attacker to craft specific URLs that exploit the improper escaping in mod_rewrite's substitution handling. Some unsafe RewriteRules will be broken by the security fix, and administrators can use the rewrite flag "UnsafePrefixStat" to opt back in once ensuring the substitution is appropriately constrained (Apache Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Apache HTTP Server version 2.4.60. Users are recommended to upgrade to this version. For configurations that require the previous behavior, a new rewrite flag "UnsafePrefixStat" has been introduced, which can be used after ensuring the substitution is appropriately constrained (Apache Advisory).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

apache2: 2.4.61-1~deb12u1

Fixed

bullseye

apache2: 2.4.61-1~deb11u1

Fixed

sid

apache2: 2.4.60-1

Fixed

trixie

apache2: 2.4.60-1

Fixed

SourceThis report was generated using AI

Related Apache HTTP Server vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44631CRITICAL9.8
  • Apache HTTP Server logoApache HTTP Server
  • apache2-prefork
NoYesJun 08, 2026
CVE-2026-49975HIGH7.5
  • NGINX logoNGINX
  • nginx-mod-mail
NoYesJun 08, 2026
CVE-2026-48913HIGH7.3
  • Apache HTTP Server logoApache HTTP Server
  • apache2-prefork
NoYesJun 08, 2026
CVE-2026-44186HIGH7.3
  • Apache HTTP Server logoApache HTTP Server
  • apache2-tls13-devel
NoYesJun 08, 2026
CVE-2026-44185HIGH7.3
  • Apache HTTP Server logoApache HTTP Server
  • apache2-worker
NoYesJun 08, 2026

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