VDB
Sign up
HIGH8.6

GHSA-h3ch-5pp2-vh6w

Improper socket reuse in Apache Tomcat

Quick fix

GHSA-h3ch-5pp2-vh6w — org.apache.tomcat:tomcat: upgrade to the fixed version with the command below.

# pom.xml: bump <version>8.5.75</version> for org.apache.tomcat:tomcat

Details

If a web application sends a WebSocket message concurrently with the WebSocket connection closing when running on Apache Tomcat 8.5.0 to 8.5.75 or Apache Tomcat 9.0.0.M1 to 9.0.20, it is possible that the application will continue to use the socket after it has been closed. The error handling triggered in this case could cause the a pooled object to be placed in the pool twice. This could result in subsequent connections using the same object concurrently which could result in data being returned to the wrong use and/or other errors.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat:tomcat
Introduced in: 8.5.0Fixed in: 8.5.75
Fix# pom.xml: bump <version>8.5.75</version> for org.apache.tomcat:tomcat
Maven/org.apache.tomcat:tomcat
Introduced in: 9.0.0M1Fixed in: 9.0.20
Fix# pom.xml: bump <version>9.0.20</version> for org.apache.tomcat:tomcat

References