Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2021-42340

published

DoS via memory leak with WebSocket connections

Published
14 Oct 2021, 19:55:14 UTC
Updated
04 Aug 2024, 03:30:38 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Apache Software Foundation — Apache TomcatApache Tomcat 10 10.0.0-M10 to 10.0.11 · Apache Tomcat 10 10.1.0-M1 to 10.1.0-M5 · Apache Tomcat 9 9.0.40 to 9.0.53 · Apache Tomcat 8 8.5.60 to 8.5.71 Affected Not stated apache
Amazon Linux AL2 Release evaluationALAS2TOMCAT8.5-2023-006 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2 Release evaluationALAS2TOMCAT9-2023-006 Fixed Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Debian bullseye tomcat9 Advisory build 9.0.43-2~deb11u3 DSA-5009-1
Amazon Linux AL2 tomcatnoarch Listed in advisory Not stated ALAS2TOMCAT8.5-2023-006
Amazon Linux AL2 tomcatnoarch Listed in advisory Not stated ALAS2TOMCAT9-2023-006
Amazon Linux AL2 tomcatsrc Listed in advisory Not stated ALAS2TOMCAT8.5-2023-006
Show 1 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Amazon Linux AL2 tomcatsrc Listed in advisory Not stated ALAS2TOMCAT9-2023-006

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.

en · apache · cna

Vendor advisories explicitly linked to this CVE.

3

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Apache Software Foundation Apache Tomcat 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) apache · cna

Weaknesses

1
  • CWE-772 CWE-772 Missing Release of Resource after Effective Lifetime (apache · cna)

References

9

Provider assertions

2

apache · cna

DoS via memory leak with WebSocket connections

CVE · adp

CVE Program Container

Provenance

Schema
5.1
Searchable
yes
Content hash
1265552a2d1a2767e49a32d57fcdf9891142634e9cc9e2d3bd4f155b70657954
Ingested
23 Sep 2026, 07:56:21 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected