DoS via memory leak with WebSocket connections
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 6 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-772.
Summary
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Apache | Apache Tomcat | Apache 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 | — | No fix listed | CNA |
| — | org.apache.tomcat:tomcat (Maven) | 10.1.0-M1 to before 10.1.0-M6 | 10.1.0-M6 | Patch available | GHSA-wph7-x527-w3h5 |
| — | org.apache.tomcat:tomcat (Maven) | 10.0.0-M1 to before 10.0.12 | 10.0.12 | Patch available | GHSA-wph7-x527-w3h5 |
| — | org.apache.tomcat:tomcat (Maven) | 9.0.40 to before 9.0.54 | 9.0.54 | Patch available | GHSA-wph7-x527-w3h5 |
| — | org.apache.tomcat:tomcat (Maven) | 8.5.60 to before 8.5.72 | 8.5.72 | Patch available | GHSA-wph7-x527-w3h5 |
- Apache Tomcat VendorApache Affected Apache 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 Fixed in — No fix listed CNA
- org.apache.tomcat:tomcat (Maven) Vendor— Affected 10.1.0-M1 to before 10.1.0-M6 Fixed in 10.1.0-M6 Patch available GHSA-wph7-x527-w3h5
- org.apache.tomcat:tomcat (Maven) Vendor— Affected 10.0.0-M1 to before 10.0.12 Fixed in 10.0.12 Patch available GHSA-wph7-x527-w3h5
- org.apache.tomcat:tomcat (Maven) Vendor— Affected 9.0.40 to before 9.0.54 Fixed in 9.0.54 Patch available GHSA-wph7-x527-w3h5
- org.apache.tomcat:tomcat (Maven) Vendor— Affected 8.5.60 to before 8.5.72 Fixed in 8.5.72 Patch available GHSA-wph7-x527-w3h5
CPE configurations NVD · 35
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:* | 8.5.60 to before 8.5.72; 9.0.40 to before 9.0.54; 10.0.1 to before 10.0.12 | Vulnerable | Apache |
| cpe:2.3:a:apache:tomcat:10.0.0:milestone10:*:*:*:*:*:* | 10.0.0 milestone10 | Vulnerable | Apache |
| cpe:2.3:a:apache:tomcat:10.1.0:milestone1:*:*:*:*:*:* | 10.1.0 milestone1 | Vulnerable | Apache |
| cpe:2.3:a:apache:tomcat:10.1.0:milestone2:*:*:*:*:*:* | 10.1.0 milestone2 | Vulnerable | Apache |
| cpe:2.3:a:apache:tomcat:10.1.0:milestone3:*:*:*:*:*:* | 10.1.0 milestone3 | Vulnerable | Apache |
| cpe:2.3:a:apache:tomcat:10.1.0:milestone4:*:*:*:*:*:* | 10.1.0 milestone4 | Vulnerable | Apache |
| cpe:2.3:a:apache:tomcat:10.1.0:milestone5:*:*:*:*:*:* | 10.1.0 milestone5 | Vulnerable | Apache |
| cpe:2.3:a:netapp:hci:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:* | not specified by NVD | Vulnerable | NetApp |
| cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* | 11.0 | Vulnerable | Debian |
- cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:* Versions 8.5.60 to before 8.5.72; 9.0.40 to before 9.0.54; 10.0.1 to before 10.0.12 Vulnerable ·Apache
- cpe:2.3:a:apache:tomcat:10.0.0:milestone10:*:*:*:*:*:* Versions 10.0.0 milestone10 Vulnerable ·Apache
- cpe:2.3:a:apache:tomcat:10.1.0:milestone1:*:*:*:*:*:* Versions 10.1.0 milestone1 Vulnerable ·Apache
- cpe:2.3:a:apache:tomcat:10.1.0:milestone2:*:*:*:*:*:* Versions 10.1.0 milestone2 Vulnerable ·Apache
- cpe:2.3:a:apache:tomcat:10.1.0:milestone3:*:*:*:*:*:* Versions 10.1.0 milestone3 Vulnerable ·Apache
- cpe:2.3:a:apache:tomcat:10.1.0:milestone4:*:*:*:*:*:* Versions 10.1.0 milestone4 Vulnerable ·Apache
- cpe:2.3:a:apache:tomcat:10.1.0:milestone5:*:*:*:*:*:* Versions 10.1.0 milestone5 Vulnerable ·Apache
- cpe:2.3:a:netapp:hci:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:* Versions not specified by NVD Vulnerable ·NetApp
- cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:* Versions 11.0 Vulnerable ·Debian
Show 25 more CPE
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:oracle:agile_engineering_data_management:6.2.1.0:*:*:*:*:*:*:* | 6.2.1.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:big_data_spatial_and_graph:*:*:*:*:*:*:*:* | before 23.1 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:* | 8.0.0.0 – 8.5.0.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:hospitality_cruise_shipboard_property_management_system:20.1.0:*:*:*:*:*:*:* | 20.1.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:managed_file_transfer:12.2.1.3.0:*:*:*:*:*:*:* | 12.2.1.3.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:managed_file_transfer:12.2.1.4.0:*:*:*:*:*:*:* | 12.2.1.4.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:* | 12.2.1.4.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:payment_interface:19.1:*:*:*:*:*:*:* | 19.1 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:payment_interface:20.3:*:*:*:*:*:*:* | 20.3 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_customer_insights:15.0.2:*:*:*:*:*:*:* | 15.0.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_customer_insights:16.0.2:*:*:*:*:*:*:* | 16.0.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_data_extractor_for_merchandising:15.0.2:*:*:*:*:*:*:* | 15.0.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_data_extractor_for_merchandising:16.0.2:*:*:*:*:*:*:* | 16.0.2 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_eftlink:21.0.0:*:*:*:*:*:*:* | 21.0.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_financial_integration:16.0.1:*:*:*:*:*:*:* | 16.0.1 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_financial_integration:19.0.0:*:*:*:*:*:*:* | 19.0.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_store_inventory_management:14.0.4.13:*:*:*:*:*:*:* | 14.0.4.13 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_store_inventory_management:14.1.3.5:*:*:*:*:*:*:* | 14.1.3.5 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_store_inventory_management:14.1.3.14:*:*:*:*:*:*:* | 14.1.3.14 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_store_inventory_management:15.0.3.3:*:*:*:*:*:*:* | 15.0.3.3 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_store_inventory_management:15.0.3.8:*:*:*:*:*:*:* | 15.0.3.8 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:retail_store_inventory_management:16.0.3.7:*:*:*:*:*:*:* | 16.0.3.7 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:sd-wan_edge:9.0:*:*:*:*:*:*:* | 9.0 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:sd-wan_edge:9.1:*:*:*:*:*:*:* | 9.1 | Vulnerable | Oracle |
| cpe:2.3:a:oracle:taleo_platform:*:*:*:*:*:*:*:* | all versions | Vulnerable | Oracle |
- cpe:2.3:a:oracle:agile_engineering_data_management:6.2.1.0:*:*:*:*:*:*:* Versions 6.2.1.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:big_data_spatial_and_graph:*:*:*:*:*:*:*:* Versions before 23.1 Vulnerable ·Oracle
- cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:* Versions 8.0.0.0 – 8.5.0.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:hospitality_cruise_shipboard_property_management_system:20.1.0:*:*:*:*:*:*:* Versions 20.1.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:managed_file_transfer:12.2.1.3.0:*:*:*:*:*:*:* Versions 12.2.1.3.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:managed_file_transfer:12.2.1.4.0:*:*:*:*:*:*:* Versions 12.2.1.4.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:* Versions 12.2.1.4.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:payment_interface:19.1:*:*:*:*:*:*:* Versions 19.1 Vulnerable ·Oracle
- cpe:2.3:a:oracle:payment_interface:20.3:*:*:*:*:*:*:* Versions 20.3 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_customer_insights:15.0.2:*:*:*:*:*:*:* Versions 15.0.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_customer_insights:16.0.2:*:*:*:*:*:*:* Versions 16.0.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_data_extractor_for_merchandising:15.0.2:*:*:*:*:*:*:* Versions 15.0.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_data_extractor_for_merchandising:16.0.2:*:*:*:*:*:*:* Versions 16.0.2 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_eftlink:21.0.0:*:*:*:*:*:*:* Versions 21.0.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_financial_integration:16.0.1:*:*:*:*:*:*:* Versions 16.0.1 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_financial_integration:19.0.0:*:*:*:*:*:*:* Versions 19.0.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_store_inventory_management:14.0.4.13:*:*:*:*:*:*:* Versions 14.0.4.13 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_store_inventory_management:14.1.3.5:*:*:*:*:*:*:* Versions 14.1.3.5 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_store_inventory_management:14.1.3.14:*:*:*:*:*:*:* Versions 14.1.3.14 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_store_inventory_management:15.0.3.3:*:*:*:*:*:*:* Versions 15.0.3.3 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_store_inventory_management:15.0.3.8:*:*:*:*:*:*:* Versions 15.0.3.8 Vulnerable ·Oracle
- cpe:2.3:a:oracle:retail_store_inventory_management:16.0.3.7:*:*:*:*:*:*:* Versions 16.0.3.7 Vulnerable ·Oracle
- cpe:2.3:a:oracle:sd-wan_edge:9.0:*:*:*:*:*:*:* Versions 9.0 Vulnerable ·Oracle
- cpe:2.3:a:oracle:sd-wan_edge:9.1:*:*:*:*:*:*:* Versions 9.1 Vulnerable ·Oracle
- cpe:2.3:a:oracle:taleo_platform:*:*:*:*:*:*:*:* Versions all versions Vulnerable ·Oracle
Remediation
- Fix · GHSA-wph7-x527-w3h5 org.apache.tomcat:tomcat (Maven) Fixed in 10.1.0-M6 Advisory →
- Fix · GHSA-wph7-x527-w3h5 org.apache.tomcat:tomcat (Maven) Fixed in 10.0.12 Advisory →
- Fix · GHSA-wph7-x527-w3h5 org.apache.tomcat:tomcat (Maven) Fixed in 9.0.54 Advisory →
- Fix · GHSA-wph7-x527-w3h5 org.apache.tomcat:tomcat (Maven) Fixed in 8.5.72 Advisory →
Red Hat 4 advisories
- RHSA-2022:5532 Released 2022-07-07 · Red Hat rating ImportantRed Hat Fuse 7.11.0 release and security update
- Red Hat Fuse 7.11
- RHSA-2022:1179 Released 2022-04-12 · Red Hat rating ImportantRed Hat support for Spring Boot 2.5.10 update
- Red Hat Support for Spring Boot 2.5.10
- RHSA-2021:4861 Released 2021-11-30 · Red Hat rating ImportantRed Hat JBoss Web Server 5.6.0 Security release
- Red Hat JBoss Web Server 5.6 for RHEL 7 Server jws5-tomcat-9.0.50-3.redhat_00004.1.el7jws, jws5-tomcat-admin-webapps-9.0.50-3.redhat_00004.1.el7jws, jws5-tomcat-docs-webapp-9.0.50-3.redhat_00004.1.el7jws +12
- Red Hat JBoss Web Server 5.6 for RHEL 8 jws5-tomcat-9.0.50-3.redhat_00004.1.el8jws, jws5-tomcat-admin-webapps-9.0.50-3.redhat_00004.1.el8jws, jws5-tomcat-docs-webapp-9.0.50-3.redhat_00004.1.el8jws +10
Show 1 more Red Hat advisories
- RHSA-2021:4863 Released 2021-11-30 · Red Hat rating ImportantRed Hat JBoss Web Server 5.6.0 Security release
- Red Hat JBoss Web Server 5
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat JBoss Fuse 6 | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 10 (Newton) | Affected | No fix planned: Out of support scope |
| Red Hat OpenStack Platform 13 (Queens) | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 9) | Fixed | — |
| Red Hat Fuse 7.11 | Fixed | RHSA-2022:5532 |
| Red Hat JBoss Web Server 5 | Fixed | RHSA-2021:4863 |
| Red Hat JBoss Web Server 5.6 for RHEL 7 Server | Fixed | RHSA-2021:4861 |
| Red Hat JBoss Web Server 5.6 for RHEL 8 | Fixed | RHSA-2021:4861 |
| Red Hat Support for Spring Boot 2.5.10 | Fixed | RHSA-2022:1179 |
Not affected: 9 products
- Red Hat Decision Manager 7
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat JBoss Data Grid 6
- Red Hat JBoss Data Virtualization 6
- Red Hat JBoss Enterprise Application Platform 6
- Red Hat JBoss Web Server 3
- Red Hat Process Automation 7
Timeline
- 2026-10-02 Threatist record created from CVE-2021-42340
- 2026-10-03 Alias added: GHSA-wph7-x527-w3h5
References
Patch 3
Advisory 6
- https://lists.apache.org/thread.html/r83a35be60f06aca2065f188ee542b9099695d57ced2e70e0885f905c%40%3Cannounce.tomcat.apache.org%3E
- DSA-5009
- https://security.netapp.com/advisory/ntap-20211104-0001/
- https://kc.mcafee.com/corporate/index?page=content&id=SB10379
- GLSA-202208-34
- https://nvd.nist.gov/vuln/detail/CVE-2021-42340
Other 11
- [myfaces-commits] 20211021 [myfaces-tobago] branch tobago-5.x updated: build: workaround for CVE-2021-42340
- https://github.com/apache/tomcat/commit/31d62426645824bdfe076a0c0eafa904d90b4fb9
- https://github.com/apache/tomcat/commit/80f1438ec45e77a07b96419808971838d259eb47
- https://github.com/apache/tomcat/commit/d27535bdee95d252418201eb21e9d29476aa6b6a
- https://github.com/apache/tomcat/commit/d5a6660cba7f51589468937bf3bbad4db7810371
- https://tomcat.apache.org/security-9.html
- https://tomcat.apache.org/security-8.html
- https://tomcat.apache.org/security-10.html
- https://security.netapp.com/advisory/ntap-20211104-0001
- https://lists.apache.org/thread.html/r8097a2d1550aa78e585fc77e602b9046e6d4099d8d132497c5387784@%3Ccommits.myfaces.apache.org%3E
- https://github.com/apache/tomcat
More Apache Tomcat vulnerabilities
- TI-2025-18529 Apache Tomcat: Potential RCE and/or information disclosure and/or information corruption with partial PUT KEVCVSS 3.1CRITICAL 10.0
- TI-2020-01862 Improper privilege management in Apache Tomcat KEVCVSS 3.1CRITICAL 9.8
- TI-2016-07192 Improper access control in Apache Tomcat KEVCVSS 3.1CRITICAL 9.8
- TI-2017-09342 Unrestricted file upload in Apache Tomcat KEVCVSS 3.1HIGH 8.1
- TI-2017-09340 Unrestricted file upload in Apache Tomcat KEVCVSS 3.1HIGH 8.1
- TI-2026-26741 Apache Tomcat: Fix for CVE-2026-29146 allowed bypass of EncryptInterceptor KEVCVSS 3.1HIGH 7.5
Sources
- CVE-2021-42340 · CVE Program
- CVE-2021-42340 · NVD
- FIRST EPSS
- GHSA-wph7-x527-w3h5 · GitHub Advisory Database · CC BY 4.0
- CVE-2021-42340 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences