CVE-2025-31651CWE-116

Apache Tomcat: Bypass of rules in Rewrite Valve

Critical · published April 28, 2025

CVSS v3.1
9.8
EPSS
4%
Percentile
90.9
In the wild
Unconfirmed
What it is

🔥 A crafty request can slip through the cracks of Apache Tomcat's security! Think of it like a restaurant where the chef has a strict recipe for a secret sauce but forgets to check for duplicate orders — an unexpected guest could get in with the wrong ingredients, ruining the whole dish! This vulnerability allows attackers to bypass critical security constraints, potentially leading them to sensitive data or even a full system compromise. Imagine someone sneaking in through the back door while everyone's focused on guarding the entrance. 🚪 This risk is absolutely devastating!

Put simply

Think of it like a restaurant where the chef has a strict recipe for a secret sauce but forgets to check for duplicate orders — an unexpected guest could get in with the wrong ingredients, ruining the whole dish! This Improper Neutralization of Escape, Meta, or Control Sequences vulnerability occurs when certain rewrite rules are misconfigured, allowing specially crafted requests to bypass security constraints that should be enforced.

What to do

This vulnerability allows attackers to bypass critical security constraints, potentially leading them to sensitive data or even a full system compromise. Imagine someone sneaking in through the back door while everyone's focused on guarding the entrance. 🚪 This risk is absolutely devastating! Upgrade Apache Tomcat immediately to version 11.0.6 or later, or any available patched version if you're on older releases. Additionally, review your rewrite rule configurations to ensure they are secure and properly set up! You've got this! With these steps, you'll be back to securing your castle in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.04191 · 90.9th percentile
Weakness
CWE-116 · Improper Encoding or Escaping of Output
Published
2025-04-28T19:17Z
EPSS history
Timeline
  • 28 APR 19:17Z
    Apache Tomcat: Bypass of rules in Rewrite Valve
    cvelistv5