Skip to main content

Improper Encoding or Escaping of Output in org.apache.tomcat.embed:tomcat-embed-core

CVE-2025-31651

  • org.apache.tomcat.embed:tomcat-embed-core
  • org.apache.tomcat:tomcat-catalina
Severity High
Score 9.8/10

Summary

Improper Neutralization of Escape, Meta, or Control Sequences vulnerability was found within Apache Tomcat. For a subset of unlikely rewrite rule configurations, it was possible for a specially crafted request to bypass some rewrite rules. If those rewrite rules effectively enforced security constraints, those constraints could be bypassed. This issue affects the Apache Tomcat versions from 11.0.0-M1 through 11.0.5, from 10.1.0-M1 through 10.1.39 and from 9.0.0.M1 through 9.0.102. Users are recommended to upgrade to the following versions 9.0.104 or later, 10.1.40 or later and 11.0.6 or later, which fixes the issue.

  • LOW
  • NETWORK
  • HIGH
  • UNCHANGED
  • NONE
  • NONE
  • HIGH
  • HIGH

CWE-116 - Improper Encoding or Escaping of Output

The software prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. As a result, the intended structure of the message is not preserved.

Advisory Timeline

  • Published