{"id":"CVE-2021-42340","aliases":["CVE-2021-42340","GHSA-wph7-x527-w3h5","BIT-TOMCAT-2021-42340"],"related":[],"kind":"vulnerability","state":"published","title":"DoS via memory leak with WebSocket connections","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"La corrección del bug 63362 presente en Apache Tomcat versiones 10.1.0-M1 hasta 10.1.0-M5, versiones 10.0.0-M1 hasta 10.0.11, versiones 9.0.40 hasta 9.0.53 y versiones 8.5.60 hasta 8.5.71, introducía una pérdida de memoria. El objeto introducido para recopilar métricas para las conexiones de actualización HTTP no se liberaba para las conexiones WebSocket una vez que se cerraba la conexión. Esto creaba una pérdida de memoria que, con el tiempo, podía conllevar a una denegación de servicio por medio de un OutOfMemoryError","source":"nvd"},{"lang":"en","text":"The fix for bug 63362 present in Apache Tomcat 10.1.0 to 10.1.0, 10.0.0 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.","format":"markdown","source":"bitnami"}],"published":"2021-10-14T19:55:14.000Z","modified":"2026-09-08T08:48:20.829Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:N/A:P","score":5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-772"],"affected":[{"ranges":[{"version":"Apache Tomcat 10 10.0.0-M10 to 10.0.11","status":"affected"},{"version":"Apache Tomcat 10 10.1.0-M1 to 10.1.0-M5","status":"affected"},{"version":"Apache Tomcat 9 9.0.40 to 9.0.53","status":"affected"},{"version":"Apache Tomcat 8 8.5.60 to 8.5.71","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Tomcat","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"10.1.0-M1","status":"affected","fixed":"10.1.0-M6"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat","purl":"pkg:maven/org.apache.tomcat/tomcat","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"10.0.0-M1","status":"affected","fixed":"10.0.12"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat","purl":"pkg:maven/org.apache.tomcat/tomcat","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"9.0.40","status":"affected","fixed":"9.0.54"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat","purl":"pkg:maven/org.apache.tomcat/tomcat","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"8.5.60","status":"affected","fixed":"8.5.72"}],"ecosystem":"Maven","package":"org.apache.tomcat:tomcat","purl":"pkg:maven/org.apache.tomcat/tomcat","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"8.5.60","fixed":"8.5.72"},{"status":"affected","introduced":"9.0.40","fixed":"9.0.54"},{"status":"affected","introduced":"10.0.1","fixed":"10.0.12"},{"status":"affected","version":"10.0.0"},{"status":"affected","version":"10.1.0"},{"status":"affected","version":"10.1.0"},{"status":"affected","version":"10.1.0"},{"status":"affected","version":"10.1.0"},{"status":"affected","version":"10.1.0"}],"vendor":"apache","product":"tomcat","cpe":"cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"hci","cpe":"cpe:2.3:a:netapp:hci:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"netapp","product":"management_services_for_element_software","cpe":"cpe:2.3:a:netapp:management_services_for_element_software:-:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"6.2.1.0"}],"vendor":"oracle","product":"agile_engineering_data_management","cpe":"cpe:2.3:a:oracle:agile_engineering_data_management:6.2.1.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","fixed":"23.1"}],"vendor":"oracle","product":"big_data_spatial_and_graph","cpe":"cpe:2.3:a:oracle:big_data_spatial_and_graph:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","introduced":"8.0.0.0","lastAffected":"8.5.0.2"}],"vendor":"oracle","product":"communications_diameter_signaling_router","cpe":"cpe:2.3:a:oracle:communications_diameter_signaling_router:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"20.1.0"}],"vendor":"oracle","product":"hospitality_cruise_shipboard_property_management_system","cpe":"cpe:2.3:a:oracle:hospitality_cruise_shipboard_property_management_system:20.1.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.2.1.3.0"},{"status":"affected","version":"12.2.1.4.0"}],"vendor":"oracle","product":"managed_file_transfer","cpe":"cpe:2.3:a:oracle:managed_file_transfer:12.2.1.3.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"12.2.1.4.0"}],"vendor":"oracle","product":"middleware_common_libraries_and_tools","cpe":"cpe:2.3:a:oracle:middleware_common_libraries_and_tools:12.2.1.4.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"19.1"},{"status":"affected","version":"20.3"}],"vendor":"oracle","product":"payment_interface","cpe":"cpe:2.3:a:oracle:payment_interface:19.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.0.2"},{"status":"affected","version":"16.0.2"}],"vendor":"oracle","product":"retail_customer_insights","cpe":"cpe:2.3:a:oracle:retail_customer_insights:15.0.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"15.0.2"},{"status":"affected","version":"16.0.2"}],"vendor":"oracle","product":"retail_data_extractor_for_merchandising","cpe":"cpe:2.3:a:oracle:retail_data_extractor_for_merchandising:15.0.2:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"21.0.0"}],"vendor":"oracle","product":"retail_eftlink","cpe":"cpe:2.3:a:oracle:retail_eftlink:21.0.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"16.0.1"},{"status":"affected","version":"19.0.0"}],"vendor":"oracle","product":"retail_financial_integration","cpe":"cpe:2.3:a:oracle:retail_financial_integration:16.0.1:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"14.0.4.13"},{"status":"affected","version":"14.1.3.5"},{"status":"affected","version":"14.1.3.14"},{"status":"affected","version":"15.0.3.3"},{"status":"affected","version":"15.0.3.8"},{"status":"affected","version":"16.0.3.7"}],"vendor":"oracle","product":"retail_store_inventory_management","cpe":"cpe:2.3:a:oracle:retail_store_inventory_management:14.0.4.13:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"9.0"},{"status":"affected","version":"9.1"}],"vendor":"oracle","product":"sd-wan_edge","cpe":"cpe:2.3:a:oracle:sd-wan_edge:9.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"oracle","product":"taleo_platform","cpe":"cpe:2.3:a:oracle:taleo_platform:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"8.5.60","status":"affected","fixed":"8.5.72"},{"type":"semver","introduced":"9.0.40","status":"affected","fixed":"9.0.54"},{"type":"semver","introduced":"10.0.1","status":"affected","fixed":"10.0.12"}],"ecosystem":"Bitnami","package":"tomcat","purl":"pkg:bitnami/tomcat","source":"bitnami"}],"references":[{"url":"https://lists.apache.org/thread.html/r83a35be60f06aca2065f188ee542b9099695d57ced2e70e0885f905c%40%3Cannounce.tomcat.apache.org%3E","tags":["advisory","mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://lists.apache.org/thread.html/r8097a2d1550aa78e585fc77e602b9046e6d4099d8d132497c5387784%40%3Ccommits.myfaces.apache.org%3E","tags":["mailing-list","web","x-refsource-mlist","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://www.debian.org/security/2021/dsa-5009","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-debian","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujan2022.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.netapp.com/advisory/ntap-20211104-0001/","tags":["advisory","third-party-advisory","x-refsource-confirm","x-transferred"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://kc.mcafee.com/corporate/index?page=content&id=SB10379","tags":["advisory","third-party-advisory","web","x-refsource-confirm","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpuapr2022.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://www.oracle.com/security-alerts/cpujul2022.html","tags":["advisory","patch","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://security.gentoo.org/glsa/202208-34","tags":["advisory","third-party-advisory","vendor-advisory","web","x-refsource-gentoo","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42340","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/apache/tomcat/commit/31d62426645824bdfe076a0c0eafa904d90b4fb9","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/80f1438ec45e77a07b96419808971838d259eb47","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/d27535bdee95d252418201eb21e9d29476aa6b6a","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat/commit/d5a6660cba7f51589468937bf3bbad4db7810371","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-9.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-8.html","tags":["web"],"sources":["ghsa"]},{"url":"https://tomcat.apache.org/security-10.html","tags":["web"],"sources":["ghsa"]},{"url":"https://security.netapp.com/advisory/ntap-20211104-0001","tags":["web"],"sources":["ghsa"]},{"url":"https://lists.apache.org/thread.html/r8097a2d1550aa78e585fc77e602b9046e6d4099d8d132497c5387784@%3Ccommits.myfaces.apache.org%3E","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/apache/tomcat","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-42340","url":"https://www.cve.org/CVERecord?id=CVE-2021-42340","licence":"CVE Terms of Use","modified":"2024-08-04T03:30:38.354Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-wph7-x527-w3h5","url":"https://github.com/advisories/GHSA-wph7-x527-w3h5","licence":"CC-BY-4.0","modified":"2024-03-11T16:46:20.172Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-42340","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-42340","licence":"Public domain","modified":"2026-06-17T04:09:40.450Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-TOMCAT-2021-42340","url":"https://osv.dev/vulnerability/BIT-TOMCAT-2021-42340","licence":"Apache-2.0","modified":"2026-09-08T08:48:20.829Z"}],"updatedAt":"2026-11-25T22:58:04.500Z","epss":{"score":0.10825,"percentile":0.96583,"date":"2026-11-30T12:00:22.000Z"}}