CVE-2024-38475KEV · OVERDUECWE-116

Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.

Critical · published July 1, 2024

Patch now

Confirmed exploited, and the score agrees

CVSS calls it critical at 9.1. It is confirmed in active exploitation. It sits in the 100.0th percentile for exploit probability.

519
days past CISA
deadline
CVSS v3.1
9.1
EPSS
100%
Percentile
100.0
In the wild
Confirmed
What it is

🚨 An improperly escaped output is a serious issue in Apache HTTP Server 2.4.59 and earlier, and it’s like leaving a cheat sheet lying around for anyone to find! 🔥 Think of it as a restaurant with secret access through the kitchen door. The unsuspecting diner sees the main menu, but if someone knows the back door, they can sneak in and access exclusive dishes that were never meant for public view. 🍽️ An attacker could exploit this vulnerability to map URLs to hidden filesystem locations, leading to unauthorized code execution or even a peek into your source code! This is absolutely devastating, as it could allow attackers to fully compromise your server and its contents.

Put simply

Think of it as a restaurant with secret access through the kitchen door. The unsuspecting diner sees the main menu, but if someone knows the back door, they can sneak in and access exclusive dishes that were never meant for public view. 🍽️ This vulnerability arises from improper escaping of output in mod_rewrite, which permits attackers to manipulate URLs in a way that reveals files and executes malicious code. Specifically, backreferences and variables inRewriteRules are involved, making it a sneaky yet critical flaw in the Apache configuration.

What to do

An attacker could exploit this vulnerability to map URLs to hidden filesystem locations, leading to unauthorized code execution or even a peek into your source code! This is absolutely devastating, as it could allow attackers to fully compromise your server and its contents. Immediate action is required: upgrade to Apache HTTP Server version 2.4.60 or later to patch this vulnerability. Additionally, review your RewriteRules and ensure they're properly constrained to prevent unsafe substitutions. If necessary, you can temporarily use the 'UnsafePrefixStat' flag, but be cautious! You've got this! Secure your server with these updates, and you'll be back in control in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.1 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N
CVSS v4.0
Not supplied
EPSS
0.99957 · 100.0th percentile
Weakness
CWE-116 · Improper Encoding or Escaping of Output
Published
2024-07-01T18:15Z
KEV added
2025-05-01 · due 2025-05-22
EPSS history
Timeline
  • 01 MAY 00:00Z
    Added to CISA KEV — remediate by May 22
    kev
  • 01 JUL 18:15Z
    Apache HTTP Server weakness in mod_rewrite when first segment of substitution matches filesystem path.
    cvelistv5