ADVISORIES

Vulnerability

CVE-2021-42340

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.

7 advisories report this vulnerability, across 5 ecosystems.

Advisories

  • DEBIAN-CVE-2021-42340

    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…

    CVE-2021-42340 Debian Updated 23 October 2026
  • DSA-5009-1

    tomcat9 - security update

    CVE-2021-42340 Debian Updated 20 November 2026
  • GHSA-wph7-x527-w3h5

    Missing Release of Resource after Effective Lifetime in Apache Tomcat

    High CVE-2021-42340 Maven Updated 11 March 2024
  • OESA-2021-1413

    tomcat security update

    High CVE-2021-42340 openEuler Updated 18 August 2026
  • RHBA-2022:8077

    Red Hat Bug Fix Advisory: pki-servlet-engine bug fix and enhancement update

    CVE-2021-42340 Red Hat Updated 2 October 2026
  • RHSA-2021:4861

    Red Hat Security Advisory: Red Hat JBoss Web Server 5.6.0 Security release

    CVE-2021-23840CVE-2021-23841CVE-2021-30640CVE-2021-33037 Red Hat Updated 23 November 2026
  • UBUNTU-CVE-2021-42340

    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…

    CVE-2021-42340 Ubuntu Updated 14 July 2025

References