Register for the AI for Security Summit: Join Figma, Perplexity & Wiz

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).

Exploitability

The vulnerability requires specific configuration requirements for exploitation, which led to the Apache Software Foundation classifying it as a low severity issue, despite its high CVSS score (OSS Security).

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

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

tomcat9: 9.0.70-2

Fixed

sid

tomcat9: 9.0.70-2

Fixed

trixie

tomcat9: 9.0.70-2

Fixed

Ubuntu

Fixed

bionic (esm-apps)

tomcat8

Affected

devel

tomcat9

Not Affected

focal (esm-apps)

tomcat9

Affected

jammy

tomcat9

Affected

jammy (esm-apps)

tomcat9

Affected

noble

tomcat10

Affected

noble (esm-apps)

tomcat10: 10.1.16-1ubuntu0.1~esm3

Fixed

questing

tomcat9

Not Affected

RHEL / CentOS

Fixed

RHEL 8

:appstream:tomcat-1:9.0.87-1.el8_10.7.src

Fixed

RHEL 9

:appstream:pki-servlet-engine-1:9.0.43-4.el9_0.2.src

Fixed

RHEL 10

tomcat-1:10.1.36-1.el10_0.3.src

Fixed

SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-53837CRITICAL9.9
  • Java logoJava
  • org.xwiki.rendering:xwiki-rendering-xml
NoYesSep 18, 2026
CVE-2026-77615HIGH8.7
  • JavaScript logoJavaScript
  • paella-core
NoYesSep 17, 2026
CVE-2026-54148HIGH8.1
  • Java logoJava
  • org.http4k:http4k-security-digest
NoYesSep 18, 2026
CVE-2026-85058HIGH7.5
  • Java logoJava
  • io.moquette:moquette-broker
NoYesSep 18, 2026
CVE-2026-54147MEDIUM6.5
  • Java logoJava
  • org.http4k:http4k-security-digest
NoYesSep 18, 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