Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.apache.tomcat.embed/tomcat-embed-core
  4. ›
  5. CVE-2022-25762

CVE-2022-25762: Improper Resource Shutdown or Release

May 14, 2022 (updated May 25, 2022)

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.

References

  • github.com/advisories/GHSA-h3ch-5pp2-vh6w
  • lists.apache.org/thread/6ckmjfb1k61dyzkto9vm2k5jvt4o7w7c
  • nvd.nist.gov/vuln/detail/CVE-2022-25762

Code Behaviors & Features

Detect and mitigate CVE-2022-25762 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 8.5.0 before 8.5.75, all versions starting from 9.0.0 before 9.0.20

Fixed versions

  • 8.5.75
  • 9.0.20

Solution

Upgrade to versions 8.5.75, 9.0.20 or above.

Impact 8.6 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-404: Improper Resource Shutdown or Release

Source file

maven/org.apache.tomcat.embed/tomcat-embed-core/CVE-2022-25762.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:18 +0000.