CVE-2025-31651
Java vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2025-31651) was discovered in Apache Tomcat's rewrite rule processing component, involving improper neutralization of escape, meta, or control sequences. The vulnerability affects Apache Tomcat versions 11.0.0-M1 through 11.0.5, 10.1.0-M1 through 10.1.39, and 9.0.0.M1 through 9.0.102. The issue was disclosed on April 28, 2025, and was discovered by COSCO Shipping Lines DIC (NVD, Wiz).

Technical details

The vulnerability is classified as CWE-116 (Improper Encoding or Escaping of Output). The National Vulnerability Database has assigned a CVSS v3.1 base score of 9.8 (CRITICAL) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, indicating critical severity with network accessibility, low attack complexity, and no required privileges or user interaction (NVD).

Impact

When exploited, this vulnerability allows attackers to bypass security constraints in certain rewrite rule configurations. For a subset of unlikely rewrite rule configurations, specially crafted requests can bypass rewrite rules that enforce security constraints, potentially compromising system security (NVD, Wiz).

Mitigation and workarounds

Users are strongly recommended to upgrade to the fixed versions: Apache Tomcat 11.0.6, 10.1.40, or 9.0.104, which contain the necessary security patches (Wiz).

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