Improper socket reuse in Apache Tomcat
High severity
GitHub Reviewed
Published
May 14, 2022
to the GitHub Advisory Database
•
Updated Jan 27, 2023
Package
Affected versions
>= 8.5.0, < 8.5.75
>= 9.0.0M1, < 9.0.20
Patched versions
8.5.75
9.0.20
Description
Published by the National Vulnerability Database
May 13, 2022
Published to the GitHub Advisory Database
May 14, 2022
Reviewed
May 25, 2022
Last updated
Jan 27, 2023
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.
References