cve.bz

CVE-2021-42340

7.5 highEPSS 12%

High (7.5). EPSS 12% chance of exploitation in the next 30 days. Fixed in org.apache.tomcat:tomcat 10.0.12, 10.1.0-M6, 8.5.72.

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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
12% chance of exploitation in the next 30 days; higher than 96% of CVEs (scores of 2026-10-31)
CWE
CWE-772
Published
Modified
Record from
the NVD, synced

Affected

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-wph7-x527-w3h5Mavenorg.apache.tomcat:tomcat>=10.1.0-M1 <10.1.0-M610.1.0-M6
GHSA-wph7-x527-w3h5Mavenorg.apache.tomcat:tomcat>=10.0.0-M1 <10.0.1210.0.12
GHSA-wph7-x527-w3h5Mavenorg.apache.tomcat:tomcat>=9.0.40 <9.0.549.0.54
GHSA-wph7-x527-w3h5Mavenorg.apache.tomcat:tomcat>=8.5.60 <8.5.728.5.72

References

Check your stackJSON