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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 8.6
- **CVSS:** 8.6 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 5.61% (percentile 94, 2026-11-26)
- **CWE:** CWE-404
- **Aliases:** BIT-tomcat-2022-25762, GHSA-h3ch-5pp2-vh6w
- **Published:** 2022-05-13T07:50:09.000Z
- **Modified:** 2026-10-08T22:17:19.717Z

## Who should check

- Projects that depend on Maven package org.apache.tomcat:tomcat (\>= 8.5.0, \< 8.5.75)
- Anyone running 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

## 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 and fixed versions

- Maven `org.apache.tomcat:tomcat`: affected \>= 8.5.0, \< 8.5.75; fixed 8.5.75, 9.0.20 (osv)
- 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 (cvelist)

## Mitigation

- Upgrade org.apache.tomcat:tomcat to one of 8.5.75, 9.0.20 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-25762. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-25762.md
Affected: org.apache.tomcat:tomcat >= 8.5.0, < 8.5.75
Fixed in: 8.5.75, 9.0.20

Steps:
1. Search this machine and project for org.apache.tomcat:tomcat (Maven), Apache Software Foundation Apache Tomcat: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-25762 being exploited?

There is no confirmed exploitation: CVE-2022-25762 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 5.61% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2022-25762?

High: CVSS 8.6 (v3.1, scored by NVD). Remote, no login needed.

### Which versions are affected by CVE-2022-25762?

org.apache.tomcat:tomcat \>= 8.5.0, \< 8.5.75.

### Is there a fix for CVE-2022-25762?

Yes. Fixed in 8.5.75, 9.0.20. Upgrade org.apache.tomcat:tomcat to one of 8.5.75, 9.0.20 (or later in the same release line).

### How do I check if I'm affected by CVE-2022-25762?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://lists.apache.org/thread/6ckmjfb1k61dyzkto9vm2k5jvt4o7w7c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2022-25762>
- patch: <https://www.oracle.com/security-alerts/cpujul2022.html>
- other: <https://security.netapp.com/advisory/ntap-20220629-0003/>
- other: <https://github.com/apache/tomcat>
- other: <https://security.netapp.com/advisory/ntap-20220629-0003>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-25762>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-h3ch-5pp2-vh6w> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2022-25762> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-25762>
