CVE-2025-31651: Apache Tomcat Rewrite rule bypass

CVE-2025-31651 · Severity: medium · CVSS 4 · Published 2025-04-28

Apache Tomcat Rewrite rule bypass

Technologies: org.apache.tomcat:tomcat-catalina (Maven), org.apache.tomcat.embed:tomcat-embed-core (Maven). Vendors: Maven.

Quick answers

Is CVE-2025-31651 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-31651 being exploited in the wild.
How severe is CVE-2025-31651?
Medium severity, with a CVSS score of 4, published 28 April 2025.
Which products and versions are affected?
org.apache.tomcat:tomcat-catalina (Maven) ECOSYSTEM:introduced=9.0.76,fixed=9.0.104; org.apache.tomcat.embed:tomcat-embed-core (Maven) ECOSYSTEM:introduced=9.0.76,fixed=9.0.104.
Is there a fix for CVE-2025-31651?
Yes. org.apache.tomcat:tomcat-catalina (Maven): upgrade to 9.0.104 or later; org.apache.tomcat.embed:tomcat-embed-core (Maven): upgrade to 9.0.104 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-31651?
Check whether you run org.apache.tomcat:tomcat-catalina (Maven) or org.apache.tomcat.embed:tomcat-embed-core (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • org.apache.tomcat:tomcat-catalina (Maven): upgrade to 9.0.104 or later
    # set org.apache.tomcat:tomcat-catalina to 9.0.104 in your pom.xml or build.gradle
  • org.apache.tomcat.embed:tomcat-embed-core (Maven): upgrade to 9.0.104 or later
    # set org.apache.tomcat.embed:tomcat-embed-core to 9.0.104 in your pom.xml or build.gradle

Affected products

  • org.apache.tomcat:tomcat-catalina (Maven) ECOSYSTEM:introduced=9.0.76,fixed=9.0.104
  • org.apache.tomcat.embed:tomcat-embed-core (Maven) ECOSYSTEM:introduced=9.0.76,fixed=9.0.104

Identifiers

  • CVE-2025-31651
  • GHSA-ff77-26x5-69cr

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.