CVE-2022-25762Response mix-up with WebSocket concurrent send and close
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.
What to do
Fixed builds are available from Debian, Maven, Red Hat, Rocky Linux: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | tomcat9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | tomcat9 | Not affected vulnerable_code_not_present | ||
| Ubuntu 18.04 | tomcat8 | Fix pending | UBUNTU-CVE-2022-25762 | |
| Ubuntu 18.04 | tomcat9 | Fix pending | UBUNTU-CVE-2022-25762 | |
| Debian 14 | tomcat9 | Fixed | 9.0.22-1 | DEBIAN-CVE-2022-25762 |
| Debian 13 | tomcat9 | Fixed | 9.0.22-1 | DEBIAN-CVE-2022-25762 |
| Debian 12 | tomcat9 | Fixed | 9.0.22-1 | DEBIAN-CVE-2022-25762 |
| Red Hat Enterprise Linux 9 | pki-servlet-4.0-api | Not affected | ||
| Red Hat Enterprise Linux 9 | pki-servlet-engine | Not affected | ||
| Red Hat Enterprise Linux 8 | apache-commons-collections | Fixed | 0:3.2.2-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | apache-commons-lang | Fixed | 0:2.6-21.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | apache-commons-net | Fixed | 0:3.6-3.module+el8.3.0+6805+72837426 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | bea-stax | Fixed | 0:1.2.0-16.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | bea-stax-api | Fixed | 0:1.2.0-16.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-fastinfoset | Fixed | 0:1.2.13-9.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-api | Fixed | 0:2.2.12-8.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-core | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-runtime | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | glassfish-jaxb-txw2 | Fixed | 0:2.2.11-11.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-annotations | Fixed | 0:2.10.0-1.module+el8.2.0+5059+3eb3af25 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-core | Fixed | 0:2.10.0-1.module+el8.2.0+5059+3eb3af25 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-databind | Fixed | 0:2.10.0-1.module+el8.2.0+5059+3eb3af25 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-jaxrs-json-provider | Fixed | 0:2.9.9-1.module+el8.1.0+3832+9784644d | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-jaxrs-providers | Fixed | 0:2.9.9-1.module+el8.1.0+3832+9784644d | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jackson-module-jaxb-annotations | Fixed | 0:2.7.6-4.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jakarta-commons-httpclient | Fixed | 1:3.1-28.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | javassist | Fixed | 0:3.18.1-8.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | javassist-javadoc | Fixed | 0:3.18.1-8.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jss | Fixed | 0:4.7.3-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | jss-javadoc | Fixed | 0:4.7.3-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | ldapjdk | Fixed | 0:4.22.0-1.module+el8.3.0+6784+6e1e4c62 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | ldapjdk-javadoc | Fixed | 0:4.22.0-1.module+el8.3.0+6784+6e1e4c62 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-base | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-base-java | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-ca | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-core | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-kra | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-server | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-servlet-4.0-api | Fixed | 1:9.0.30-1.module+el8.3.0+6730+8f9c6254 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-servlet-engine | Fixed | 1:9.0.30-1.module+el8.3.0+6730+8f9c6254 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-symkey | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | pki-tools | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python-nss | Fixed | 0:1.0.1-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python-nss-doc | Fixed | 0:1.0.1-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python3-nss | Fixed | 0:1.0.1-10.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | python3-pki | Fixed | 0:10.9.4-1.module+el8.3.0+8058+d5cd4219 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | relaxngDatatype | Fixed | 0:2011.1-7.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | resteasy | Fixed | 0:3.0.26-3.module+el8.2.0+5723+4574fbff | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | slf4j | Fixed | 0:1.7.25-4.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | slf4j-jdk14 | Fixed | 0:1.7.25-4.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | stax-ex | Fixed | 0:1.7.7-8.module+el8.2.0+5723+4574fbff | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | tomcatjss | Fixed | 0:7.5.0-1.module+el8.3.0+7355+c59bcbd9 | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | velocity | Fixed | 0:1.7-24.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xalan-j2 | Fixed | 0:2.7.1-38.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xerces-j2 | Fixed | 0:2.11.0-34.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xml-commons-apis | Fixed | 0:1.4.01-25.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xml-commons-resolver | Fixed | 0:1.2-26.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xmlstreambuffer | Fixed | 0:1.5.4-8.module+el8.2.0+5723+4574fbff | RHSA-2020:4847 |
| Red Hat Enterprise Linux 8 | xsom | Fixed | 0:0-19.20110809svn.module+el8.1.0+3366+6dfb954c | RHSA-2020:4847 |
| Red Hat Enterprise Linux 7 | tomcat | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-admin-webapps | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-docs-webapp | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-el-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-javadoc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsp-2.2-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-jsvc | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-lib | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-servlet-3.0-api | Not affected | ||
| Red Hat Enterprise Linux 7 | tomcat-webapps | Not affected | ||
| Red Hat Enterprise Linux 6 | tomcat6 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-admin-webapps | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-docs-webapp | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-el-2.1-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-javadoc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-jsp-2.1-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-lib | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-log4j | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-servlet-2.5-api | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | tomcat6-webapps | Will not fix Out of support scope | ||
| Rocky Linux 8 | apache-commons-collections | Fixed | 0:3.2.2-10.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | apache-commons-lang | Fixed | 0:2.6-21.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | apache-commons-net | Fixed | 0:3.6-3.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | bea-stax | Fixed | 0:1.2.0-16.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | glassfish-fastinfoset | Fixed | 0:1.2.13-9.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | glassfish-jaxb | Fixed | 0:2.2.11-11.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | glassfish-jaxb-api | Fixed | 0:2.2.12-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-annotations | Fixed | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-core | Fixed | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-databind | Fixed | 0:2.10.0-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-jaxrs-providers | Fixed | 0:2.9.9-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jackson-module-jaxb-annotations | Fixed | 0:2.7.6-4.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | jakarta-commons-httpclient | Fixed | 1:3.1-28.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | javassist | Fixed | 0:3.18.1-8.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | ldapjdk | Fixed | 0:4.22.0-1.module+el8.4.0+418+b7ae1d4a | RLSA-2020:4847 |
| Rocky Linux 8 | pki-servlet-engine | Fixed | 1:9.0.30-1.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | python-nss | Fixed | 0:1.0.1-10.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | relaxngDatatype | Fixed | 0:2011.1-7.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | resteasy | Fixed | 0:3.0.26-3.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | slf4j | Fixed | 0:1.7.25-4.module+el8.3.0+133+b8b54b58 | RLSA-2020:4847 |
| Rocky Linux 8 | stax-ex | Fixed | 0:1.7.7-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | velocity | Fixed | 0:1.7-24.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | xalan-j2 | Fixed | 0:2.7.1-38.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xerces-j2 | Fixed | 0:2.11.0-34.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | xml-commons-apis | Fixed | 0:1.4.01-25.module+el8.3.0+74+855e3f5d | RLSA-2020:4847 |
| Rocky Linux 8 | xml-commons-resolver | Fixed | 0:1.2-26.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xmlstreambuffer | Fixed | 0:1.5.4-8.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Rocky Linux 8 | xsom | Fixed | 0:0-19.20110809svn.module+el8.3.0+53+ea062990 | RLSA-2020:4847 |
| Maven library | org.apache.tomcat:tomcat | Fixed | 9.0.20 | GHSA-h3ch-5pp2-vh6w |
What the vendor says
As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Apache Software Foundation Apache Tomcat: affected: Apache Tomcat 9 9.0.0.M1 to 9.0.20, Apache Tomcat 8.5 8.5.0 to 8.5.75
References
- https://lists.apache.org/thread/6ckmjfb1k61dyzkto9vm2k5jvt4o7w7c
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220629-0003/
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.