Vulnerability · Published May 13, 2022 · Assigned by apache
CVE-2022-25762Response mix-up with WebSocket concurrent send and close
High 8.6
In plain English
A high-severity security flaw in Apache Tomcat from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 8.4% (higher than 95% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | tomcat9 | 9.0.22-1 | DEBIAN-CVE-2022-25762 |
| Debian:13 | tomcat9 | 9.0.22-1 | DEBIAN-CVE-2022-25762 |
| Debian:14 | tomcat9 | 9.0.22-1 | DEBIAN-CVE-2022-25762 |
| Maven | org.apache.tomcat:tomcat | 8.5.75 | GHSA-h3ch-5pp2-vh6w |
| Maven | org.apache.tomcat:tomcat | 9.0.20 | GHSA-h3ch-5pp2-vh6w |
| Rocky Linux:8 | apache-commons-collections | 0:3.2.2-10.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | apache-commons-collections | 0:3.2.2-10.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | apache-commons-lang | 0:2.6-21.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | apache-commons-lang | 0:2.6-21.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | apache-commons-net | 0:3.6-3.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | apache-commons-net | 0:3.6-3.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | bea-stax | 0:1.2.0-16.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | glassfish-fastinfoset | 0:1.2.13-9.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | glassfish-jaxb | 0:2.2.11-11.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | glassfish-jaxb-api | 0:2.2.12-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jackson-annotations | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jackson-core | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jackson-databind | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jackson-jaxrs-providers | 0:2.9.9-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jackson-module-jaxb-annotations | 0:2.7.6-4.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jakarta-commons-httpclient | 1:3.1-28.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | jakarta-commons-httpclient | 1:3.1-28.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | javassist | 0:3.18.1-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | javassist | 0:3.18.1-8.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | ldapjdk | 0:4.22.0-1.module+el8.4.0+418+b7ae1d4a | RLSA-2020:4847 |
| Rocky Linux:8 | pki-servlet-engine | 1:9.0.30-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | python-nss | 0:1.0.1-10.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | relaxngDatatype | 0:2011.1-7.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | resteasy | 0:3.0.26-3.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | slf4j | 0:1.7.25-4.module+el8.5.0+697+f586bb30 | RLSA-2020:4847 |
| Rocky Linux:8 | slf4j | 0:1.7.25-4.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | slf4j | 0:1.7.25-4.module+el8.3.0+133+b8b54b58 | RLSA-2020:4847 |
| Rocky Linux:8 | stax-ex | 0:1.7.7-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | velocity | 0:1.7-24.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | velocity | 0:1.7-24.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | xalan-j2 | 0:2.7.1-38.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | xalan-j2 | 0:2.7.1-38.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | xerces-j2 | 0:2.11.0-34.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | xerces-j2 | 0:2.11.0-34.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | xml-commons-apis | 0:1.4.01-25.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | xml-commons-apis | 0:1.4.01-25.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | xml-commons-apis | 0:1.4.01-25.module+el8.5.0+697+f586bb30 | RLSA-2020:4847 |
| Rocky Linux:8 | xml-commons-resolver | 0:1.2-26.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux:8 | xml-commons-resolver | 0:1.2-26.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | xmlstreambuffer | 0:1.5.4-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux:8 | xsom | 0:0-19.20110809svn.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Apache Software Foundation | Apache Tomcat | Apache Tomcat 9 9.0.0.M1 to 9.0.20Apache Tomcat 8.5 8.5.0 to 8.5.75 |
Weakness: CWE-404
References
- https://lists.apache.org/thread/6ckmjfb1k61dyzkto9vm2k5jvt4o7w7c x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujul2022.html x_refsource_MISC
- https://security.netapp.com/advisory/ntap-20220629-0003/ x_refsource_CONFIRM