Improper Resource Shutdown or Release Affecting org.apache.tomcat:tomcat-websocket Open this link in a new tab package, versions [8.5.0,8.5.76) [9.0.0.M1,9.0.21)

  • Attack Complexity


  • Scope


  • Confidentiality


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-id


  • published

    13 May 2022

  • disclosed

    13 May 2022

  • credit

    Apache Tomcat Security

How to fix?

Upgrade org.apache.tomcat:tomcat-websocket to version 8.5.76, 9.0.21 or higher.


org.apache.tomcat:tomcat-websocket is a Tomcat WebSocket (JSR356) implementation.

Affected versions of this package are vulnerable to Improper Resource Shutdown or Release. When a web application sends a WebSocket message concurrently with the WebSocket connection closing, the application may continue to use the socket after it has been closed. 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.