CVE-2021-42340

DoS via memory leak with WebSocket connections

HIGH
7.5
CVSS Score
Published: October 14, 2021 at 07:55 PM UTC
Updated: June 17, 2026 at 04:09 AM UTC
18 products affected across 4 vendorsDebian LinuxTomcatCommunications Diameter Signaling Router

Using Apache Tomcat by Apache Software Foundation?

Get instant alerts when new vulnerabilities affect Apache Tomcat - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 12%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≤ 10.0.11v ≤ 10.1.0-M5v ≤ 8.5.71v ≤ 9.0.5310.0.1 ≤ v < 10.0.128.5.60 ≤ v < 8.5.729.0.40 ≤ v < 9.0.5410.0.0 milestone1010.1.0 milestone110.1.0 milestone210.1.0 milestone310.1.0 milestone410.1.0 milestone5
Affected range stops below 10.0.12, so it looks safe — our inference, not a vendor statement
Affected range stops below 8.5.72, so it looks safe — our inference, not a vendor statement
Affected range stops below 9.0.54, so it looks safe — our inference, not a vendor statement
All versions
v < 23.1
Affected range stops below 23.1, so it looks safe — our inference, not a vendor statement

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-772

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card