{
    "CVE_data_meta": {
        "ASSIGNER": "security@apache.org",
        "ID": "CVE-2021-42340",
        "STATE": "PUBLIC",
        "TITLE": "DoS via memory leak with WebSocket connections"
    },
    "affects": {
        "vendor": {
            "vendor_data": [
                {
                    "product": {
                        "product_data": [
                            {
                                "product_name": "Apache Tomcat",
                                "version": {
                                    "version_data": [
                                        {
                                            "version_affected": "=",
                                            "version_name": "Apache Tomcat 10",
                                            "version_value": "10.0.0-M10 to 10.0.11"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_name": "Apache Tomcat 10",
                                            "version_value": "10.1.0-M1 to 10.1.0-M5"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_name": "Apache Tomcat 9",
                                            "version_value": "9.0.40 to 9.0.53"
                                        },
                                        {
                                            "version_affected": "=",
                                            "version_name": "Apache Tomcat 8",
                                            "version_value": "8.5.60 to 8.5.71"
                                        }
                                    ]
                                }
                            }
                        ]
                    },
                    "vendor_name": "Apache Software Foundation"
                }
            ]
        }
    },
    "data_format": "MITRE",
    "data_type": "CVE",
    "data_version": "4.0",
    "description": {
        "description_data": [
            {
                "lang": "eng",
                "value": "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."
            }
        ]
    },
    "generator": {
        "engine": "Vulnogram 0.0.9"
    },
    "impact": [
        {}
    ],
    "problemtype": {
        "problemtype_data": [
            {
                "description": [
                    {
                        "lang": "eng",
                        "value": "CWE-772 Missing Release of Resource after Effective Lifetime"
                    }
                ]
            }
        ]
    },
    "references": {
        "reference_data": [
            {
                "refsource": "MISC",
                "url": "https://lists.apache.org/thread.html/r83a35be60f06aca2065f188ee542b9099695d57ced2e70e0885f905c%40%3Cannounce.tomcat.apache.org%3E",
                "name": "https://lists.apache.org/thread.html/r83a35be60f06aca2065f188ee542b9099695d57ced2e70e0885f905c%40%3Cannounce.tomcat.apache.org%3E"
            },
            {
                "refsource": "MLIST",
                "name": "[myfaces-commits] 20211021 [myfaces-tobago] branch tobago-5.x updated: build: workaround for CVE-2021-42340",
                "url": "https://lists.apache.org/thread.html/r8097a2d1550aa78e585fc77e602b9046e6d4099d8d132497c5387784@%3Ccommits.myfaces.apache.org%3E"
            },
            {
                "refsource": "DEBIAN",
                "name": "DSA-5009",
                "url": "https://www.debian.org/security/2021/dsa-5009"
            },
            {
                "url": "https://www.oracle.com/security-alerts/cpujan2022.html",
                "refsource": "MISC",
                "name": "https://www.oracle.com/security-alerts/cpujan2022.html"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://security.netapp.com/advisory/ntap-20211104-0001/",
                "url": "https://security.netapp.com/advisory/ntap-20211104-0001/"
            },
            {
                "refsource": "CONFIRM",
                "name": "https://kc.mcafee.com/corporate/index?page=content&id=SB10379",
                "url": "https://kc.mcafee.com/corporate/index?page=content&id=SB10379"
            },
            {
                "url": "https://www.oracle.com/security-alerts/cpuapr2022.html",
                "refsource": "MISC",
                "name": "https://www.oracle.com/security-alerts/cpuapr2022.html"
            },
            {
                "url": "https://www.oracle.com/security-alerts/cpujul2022.html",
                "refsource": "MISC",
                "name": "https://www.oracle.com/security-alerts/cpujul2022.html"
            },
            {
                "refsource": "GENTOO",
                "name": "GLSA-202208-34",
                "url": "https://security.gentoo.org/glsa/202208-34"
            }
        ]
    },
    "source": {
        "discovery": "UNKNOWN"
    }
}