CVE-2021-42340Apache Tomcat
High 7.5 No auth neededHigh EPSS
Follow: this CVE · Apache · Apache Tomcat We alert you by email or Slack (account required).
- Priority
- 61
- CVSS 3.1
- 7.5
- EPSS
- 10.8% probability of exploitation in 30 days · percentile 97
- Auth required
- No
- Published
- Oct 14, 2021
- Updated
- Jun 17, 2026
- Category
- Server · Cross-platform
- Weakness (CWE)
- CWE-772
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
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.
What to do
- Apply the vendor's security update for Tomcat.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.apache.tomcat:tomcat |
≥ 10.1.0-M1 < 10.1.0-M6 |
10.1.0-M6 |
— |
| Maven | org.apache.tomcat:tomcat |
≥ 10.0.0-M1 < 10.0.12 |
10.0.12 |
— |
| Maven | org.apache.tomcat:tomcat |
≥ 9.0.40 < 9.0.54 |
9.0.54 |
— |
| Maven | org.apache.tomcat:tomcat |
≥ 8.5.60 < 8.5.72 |
8.5.72 |
— |
Per OSV / GitHub Advisories (GHSA-wph7-x527-w3h5). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| apache | tomcat | ≥ 8.5.60 < 8.5.72 |
| apache | tomcat | ≥ 9.0.40 < 9.0.54 |
| apache | tomcat | ≥ 10.0.1 < 10.0.12 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.1.0 |
| apache | tomcat | 10.1.0 |
| apache | tomcat | 10.1.0 |
| apache | tomcat | 10.1.0 |
| apache | tomcat | 10.1.0 |
| netapp | hci | all |
| netapp | management_services_for_element_software | all |
| debian | debian_linux | 11.0 |
| oracle | agile_engineering_data_management | 6.2.1.0 |
| oracle | big_data_spatial_and_graph | < 23.1 |
| oracle | communications_diameter_signaling_router | ≥ 8.0.0.0 ≤ 8.5.0.2 |
| oracle | hospitality_cruise_shipboard_property_management_system | 20.1.0 |
| oracle | managed_file_transfer | 12.2.1.3.0 |
| oracle | managed_file_transfer | 12.2.1.4.0 |
| oracle | middleware_common_libraries_and_tools | 12.2.1.4.0 |
| oracle | payment_interface | 19.1 |
| oracle | payment_interface | 20.3 |
| oracle | retail_customer_insights | 15.0.2 |
| oracle | retail_customer_insights | 16.0.2 |
| oracle | retail_data_extractor_for_merchandising | 15.0.2 |
| oracle | retail_data_extractor_for_merchandising | 16.0.2 |
| oracle | retail_eftlink | 21.0.0 |
| oracle | retail_financial_integration | 16.0.1 |
| oracle | retail_financial_integration | 19.0.0 |
| oracle | retail_store_inventory_management | 14.0.4.13 |
| oracle | retail_store_inventory_management | 14.1.3.5 |
| oracle | retail_store_inventory_management | 14.1.3.14 |
| oracle | retail_store_inventory_management | 15.0.3.3 |
| oracle | retail_store_inventory_management | 15.0.3.8 |
| oracle | retail_store_inventory_management | 16.0.3.7 |
| oracle | sd-wan_edge | 9.0 |
| oracle | sd-wan_edge | 9.1 |
| oracle | taleo_platform | all |
Official sources
References
Links published by the sources. Open them with care.
- kc.mcafee.com Third Party Advisory
- lists.apache.org
- lists.apache.org Mailing List Vendor Advisory
- security.gentoo.org Third Party Advisory
- security.netapp.com Third Party Advisory
- www.debian.org Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory
- www.oracle.com Patch Third Party Advisory