CVE-2021-42340

high
Published 2022-11-15 · Modified 2024-03-11
CVSS v3
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v2
VIR risk
8.0

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.

Predictions

Exploit likelihood
30%
Patch ETA

Heuristic predictions, AS-IS, for prioritization only.

Mitigations

vendor Authored 2026-05-27

Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2021-42340

vendor Authored 2026-05-27

Vendor advisory: redhat — https://access.redhat.com/errata/RHBA-2022:8077

OS impact

OSVersionStatusFixed in
redhat rhel9fixed
arch archfixed9.0.54-1
debian debianbookwormfixed9.0.54-1
debian debianbullseyefixed9.0.43-2~deb11u3
debian debianforkyfixed9.0.54-1
debian debiansidfixed9.0.54-1
debian debiantrixiefixed9.0.54-1

Package impact

EcosystemPackageVulnerableFixed
java Mavenorg.apache.tomcat:tomcat>=10.1.0-M1,<10.1.0-M610.1.0-M6
java Mavenorg.apache.tomcat:tomcat>=10.0.0-M1,<10.0.1210.0.12
java Mavenorg.apache.tomcat:tomcat>=9.0.40,<9.0.549.0.54
java Mavenorg.apache.tomcat:tomcat>=8.5.60,<8.5.728.5.72

References

Verify integrity in audit chain (admin only). AS-IS.