VDB
Sign up
HIGH7.5

GHSA-wph7-x527-w3h5

Missing Release of Resource after Effective Lifetime in Apache Tomcat

Quick fix

GHSA-wph7-x527-w3h5 — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

# pom.xml: bump <version>10.1.0-M6</version> for org.apache.tomcat:tomcat

Details

The fix for bug 63362 present in Apache Tomcat 10.1.0-M1 to 10.1.0-M5, 10.0.0-M1 to 10.0.11, 9.0.40 to 9.0.53 and 8.5.60 to 8.5.71 introduced a memory leak. The object introduced to collect metrics for HTTP upgrade connections was not released for WebSocket connections once the connection was closed. This created a memory leak that, over time, could lead to a denial of service via an OutOfMemoryError.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat:tomcat
Introduced in: 10.1.0-M1Fixed in: 10.1.0-M6
Fix# pom.xml: bump <version>10.1.0-M6</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 10.0.0-M1Fixed in: 10.0.12
Fix# pom.xml: bump <version>10.0.12</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 9.0.40Fixed in: 9.0.54
Fix# pom.xml: bump <version>9.0.54</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 8.5.60Fixed in: 8.5.72
Fix# pom.xml: bump <version>8.5.72</version> for org.apache.tomcat:tomcat

References