Skip to content
CVE Ledger
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API docsPage
  • MCP serverPage
  • AboutPage
  • Data sourcesPage
  • Data statusPage
  • ChangelogPage
  • How it's builtPage
  • Support the projectPage

14 results

Back

CVE-2021-42340DoS via memory leak with WebSocket connections

Description

The fix for bug 63362 present in Apache Tomcat 10.1.0-M1 to 10.1.0-M5, 10.0.0-M1 to 10.0.11, 9.0.40 to 9.0.53 and 8.5.60 to 8.5.71 introduced a memory leak. The object introduced to collect metrics for HTTP upgrade connections was not released for WebSocket connections once the connection was closed. This created a memory leak that, over time, could lead to a denial of service via an OutOfMemoryError.

Timeline

  1. ID reserved

    By apache

  2. · 1 day later

    Published

  3. · 3 years later

    Record updated

Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.

Scores

CVSS scores of CVE-2021-42340, by who scored it
Scored byCVSSScoreVector
NVDNVD · Modified3.1High7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS (exploitation in 30 days)
11.8% · top 3.9% of all CVEs (12 Nov 2026)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.

Affected products

  • Apache Software Foundation · Apache Tomcat

    • affected Apache Tomcat 10 10.0.0-M10 to 10.0.11
    • affected Apache Tomcat 10 10.1.0-M1 to 10.1.0-M5
    • affected Apache Tomcat 9 9.0.40 to 9.0.53
    • affected Apache Tomcat 8 8.5.60 to 8.5.71

Affected packages

From reviewed advisories of the GitHub Advisory Database.

References

References9

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2021-42340 badge
[![CVE-2021-42340](https://cveledger.app/badge/CVE-2021-42340.svg)](https://cveledger.app/cve/CVE-2021-42340)

Record last updated .