Improper Cleanup on Thrown Exception Affecting org.apache.tomcat.embed:tomcat-embed-core package, versions [9.0.76,9.0.104)[10.1.10,10.1.40)[11.0.0-M2,11.0.6)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (7th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-ORGAPACHETOMCATEMBED-9905132
  • published30 Apr 2025
  • disclosed28 Apr 2025
  • creditUnknown

Introduced: 28 Apr 2025

NewCVE-2025-31650  (opens in a new tab)
CWE-460  (opens in a new tab)

How to fix?

Upgrade org.apache.tomcat.embed:tomcat-embed-core to version 9.0.104, 10.1.40, 11.0.6 or higher.

Overview

org.apache.tomcat.embed:tomcat-embed-core is a Core Tomcat implementation.

Affected versions of this package are vulnerable to Improper Cleanup on Thrown Exception when handling failed HTTP/2 requests with certain invalid HTTP priority headers. An attacker can trigger an OutOfMemoryException by sending a large number of malicious requests.

Note: The project maintainers note that version 9.0.103 also fixes the vulnerability but was never officially released.

CVSS Base Scores

version 4.0
version 3.1