CVEfocus › CVE database › CVE-2022-25762

CVE-2022-25762Response mix-up with WebSocket concurrent send and close

CVSS 8.6 HighEPSS 8.4% (higher than 95% of CVEs)Published 2022-05-13Updated 2026-10-08Assigner: apache

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.

CWE-404

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

83Fixed
2Fix pending
10Will not fix
14Not affected

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.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04tomcat9Not affected
vulnerable_code_not_present
Ubuntu 25.10tomcat9Not affected
vulnerable_code_not_present
Ubuntu 18.04tomcat8Fix pendingUBUNTU-CVE-2022-25762
Ubuntu 18.04tomcat9Fix pendingUBUNTU-CVE-2022-25762
Debian 14tomcat9Fixed9.0.22-1DEBIAN-CVE-2022-25762
Debian 13tomcat9Fixed9.0.22-1DEBIAN-CVE-2022-25762
Debian 12tomcat9Fixed9.0.22-1DEBIAN-CVE-2022-25762
Red Hat Enterprise Linux 9pki-servlet-4.0-apiNot affected
Red Hat Enterprise Linux 9pki-servlet-engineNot affected
Red Hat Enterprise Linux 8apache-commons-collectionsFixed0:3.2.2-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8apache-commons-langFixed0:2.6-21.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8apache-commons-netFixed0:3.6-3.module+el8.3.0+6805+72837426RHSA-2020:4847
Red Hat Enterprise Linux 8bea-staxFixed0:1.2.0-16.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8bea-stax-apiFixed0:1.2.0-16.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-fastinfosetFixed0:1.2.13-9.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxbFixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-apiFixed0:2.2.12-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-coreFixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-runtimeFixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8glassfish-jaxb-txw2Fixed0:2.2.11-11.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8jackson-annotationsFixed0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hat Enterprise Linux 8jackson-coreFixed0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hat Enterprise Linux 8jackson-databindFixed0:2.10.0-1.module+el8.2.0+5059+3eb3af25RHSA-2020:4847
Red Hat Enterprise Linux 8jackson-jaxrs-json-providerFixed0:2.9.9-1.module+el8.1.0+3832+9784644dRHSA-2020:4847
Red Hat Enterprise Linux 8jackson-jaxrs-providersFixed0:2.9.9-1.module+el8.1.0+3832+9784644dRHSA-2020:4847
Red Hat Enterprise Linux 8jackson-module-jaxb-annotationsFixed0:2.7.6-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8jakarta-commons-httpclientFixed1:3.1-28.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8javassistFixed0:3.18.1-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8javassist-javadocFixed0:3.18.1-8.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8jssFixed0:4.7.3-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8jss-javadocFixed0:4.7.3-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8ldapjdkFixed0:4.22.0-1.module+el8.3.0+6784+6e1e4c62RHSA-2020:4847
Red Hat Enterprise Linux 8ldapjdk-javadocFixed0:4.22.0-1.module+el8.3.0+6784+6e1e4c62RHSA-2020:4847
Red Hat Enterprise Linux 8pki-baseFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-base-javaFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-caFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-coreFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-kraFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-serverFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-servlet-4.0-apiFixed1:9.0.30-1.module+el8.3.0+6730+8f9c6254RHSA-2020:4847
Red Hat Enterprise Linux 8pki-servlet-engineFixed1:9.0.30-1.module+el8.3.0+6730+8f9c6254RHSA-2020:4847
Red Hat Enterprise Linux 8pki-symkeyFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8pki-toolsFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8python-nssFixed0:1.0.1-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8python-nss-docFixed0:1.0.1-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8python3-nssFixed0:1.0.1-10.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8python3-pkiFixed0:10.9.4-1.module+el8.3.0+8058+d5cd4219RHSA-2020:4847
Red Hat Enterprise Linux 8relaxngDatatypeFixed0:2011.1-7.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8resteasyFixed0:3.0.26-3.module+el8.2.0+5723+4574fbffRHSA-2020:4847
Red Hat Enterprise Linux 8slf4jFixed0:1.7.25-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8slf4j-jdk14Fixed0:1.7.25-4.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8stax-exFixed0:1.7.7-8.module+el8.2.0+5723+4574fbffRHSA-2020:4847
Red Hat Enterprise Linux 8tomcatjssFixed0:7.5.0-1.module+el8.3.0+7355+c59bcbd9RHSA-2020:4847
Red Hat Enterprise Linux 8velocityFixed0:1.7-24.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xalan-j2Fixed0:2.7.1-38.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xerces-j2Fixed0:2.11.0-34.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xml-commons-apisFixed0:1.4.01-25.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xml-commons-resolverFixed0:1.2-26.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 8xmlstreambufferFixed0:1.5.4-8.module+el8.2.0+5723+4574fbffRHSA-2020:4847
Red Hat Enterprise Linux 8xsomFixed0:0-19.20110809svn.module+el8.1.0+3366+6dfb954cRHSA-2020:4847
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 7tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 7tomcat-docs-webappNot affected
Red Hat Enterprise Linux 7tomcat-el-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-javadocNot affected
Red Hat Enterprise Linux 7tomcat-jsp-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-jsvcNot affected
Red Hat Enterprise Linux 7tomcat-libNot affected
Red Hat Enterprise Linux 7tomcat-servlet-3.0-apiNot affected
Red Hat Enterprise Linux 7tomcat-webappsNot affected
Red Hat Enterprise Linux 6tomcat6Will not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-admin-webappsWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-docs-webappWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-el-2.1-apiWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-javadocWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-jsp-2.1-apiWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-libWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-log4jWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-servlet-2.5-apiWill not fix
Out of support scope
Red Hat Enterprise Linux 6tomcat6-webappsWill not fix
Out of support scope
Rocky Linux 8apache-commons-collectionsFixed0:3.2.2-10.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8apache-commons-langFixed0:2.6-21.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8apache-commons-netFixed0:3.6-3.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8bea-staxFixed0:1.2.0-16.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8glassfish-fastinfosetFixed0:1.2.13-9.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8glassfish-jaxbFixed0:2.2.11-11.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8glassfish-jaxb-apiFixed0:2.2.12-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-annotationsFixed0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-coreFixed0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-databindFixed0:2.10.0-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-jaxrs-providersFixed0:2.9.9-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jackson-module-jaxb-annotationsFixed0:2.7.6-4.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8jakarta-commons-httpclientFixed1:3.1-28.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8javassistFixed0:3.18.1-8.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8ldapjdkFixed0:4.22.0-1.module+el8.4.0+418+b7ae1d4aRLSA-2020:4847
Rocky Linux 8pki-servlet-engineFixed1:9.0.30-1.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8python-nssFixed0:1.0.1-10.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8relaxngDatatypeFixed0:2011.1-7.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8resteasyFixed0:3.0.26-3.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8slf4jFixed0:1.7.25-4.module+el8.3.0+133+b8b54b58RLSA-2020:4847
Rocky Linux 8stax-exFixed0:1.7.7-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8velocityFixed0:1.7-24.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8xalan-j2Fixed0:2.7.1-38.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xerces-j2Fixed0:2.11.0-34.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8xml-commons-apisFixed0:1.4.01-25.module+el8.3.0+74+855e3f5dRLSA-2020:4847
Rocky Linux 8xml-commons-resolverFixed0:1.2-26.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xmlstreambufferFixed0:1.5.4-8.module+el8.3.0+53+ea062990RLSA-2020:4847
Rocky Linux 8xsomFixed0:0-19.20110809svn.module+el8.3.0+53+ea062990RLSA-2020:4847
Maven libraryorg.apache.tomcat:tomcatFixed9.0.20GHSA-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.

References

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.