HOMEVULNERABILITIESCVE-2021-42340
HIGH

CVE-2021-42340

CWE-772Published: October 14, 2021· Updated: Jun 17, 2026

7.5
CVSS v3.1

Official 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.

NVD Source

Technical Analysis

CVE-2021-42340 can be exploited remotely over the network without requiring physical or adjacent access, significantly expanding the attack surface for threat actors.

The vulnerability requires no privileges and no user interaction, making it a prime target for automated exploitation campaigns and worm-like propagation.

A successful exploit results in availability disruption (denial of service), with a CVSS base score of 7.5.

CVSS v3.1 Vector Breakdown

Exploitability
Attack VectorNetwork
Attack ComplexityLow
Privileges Req.None
User InteractionNone
ScopeUnchanged
Impact
ConfidentialityNone
IntegrityNone
AvailabilityHigh
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected Vendors & Products

Apache1 product(s)
tomcat
Debian1 product(s)
debian linux
netapp2 product(s)
hcimanagement services for element software
Oracle14 product(s)
agile engineering data managementbig data spatial and graphcommunications diameter signaling routerhospitality cruise shipboard property management systemmanaged file transfermiddleware common libraries and toolspayment interfaceretail customer insightsretail data extractor for merchandisingretail eftlinkretail financial integrationretail store inventory management+2
Source: NVD CPE · 31 total CPE entries

Exploit & PoC Resources

NO KNOWN EXPLOITNo public exploit confirmed at this time
External links open in a new tab. Always verify in a controlled environment before use.

Official Patches & Advisories

All References (18)

Quick Facts

CVE IDCVE-2021-42340
CVSS Score7.5 / 10
SeverityHIGH
WeaknessCWE-772
CISA KEVNo
Affected4 vendor(s)
PublishedOct 14, 2021

Related CVEs (CWE-772)

Recommended Actions

  • Apply vendor patches immediately
  • Monitor CVE-2021-42340 in threat intel feeds
  • Review IDS/IPS signatures for exploitation attempts
Data sourced from NVD (NIST), CISA KEV, and EPSS (FIRST). Analysis generated by CTIWatch. CVE data is provided under the NVD usage policy.