QID 730661

Date Published: 2022-11-24

QID 730661: Apache Tomcat Denial of Service (DoS) Vulnerability (CVE-2021-42340)

Apache Tomcat is an open source web server and servlet container developed by the Apache Software Foundation.

The fix for bug 63362 introduced a memory leak. The object introduced to collect metrics for HTTP upgrade connections was not released for WebSocket connections once the WebSocket connection was closed. This created a memory leak that, over time, could lead to a denial of service via an OutOfMemoryError.

Affected versions:
Apache Tomcat 8.5.60 to 8.5.71

QID Detection Logic (Unauthenticated):
This QID sends a HTTP GET request to an invalid URL and based on the response confirms the vulnerable instance of Apache Tomcat running on the host.

Successful exploitation of this vulnerability could reveal sensitive information to an unauthorized attacker.

  • CVSS V3 rated as High - 7.5 severity.
  • CVSS V2 rated as Medium - 5 severity.
  • Solution
    Customers are advised to upgrade Apache Tomcat to the new version to remediate this vulnerability. For more information please refer to Apache Tomcat Security Advisory.

    CVEs related to QID 730661

    Software Advisories
    Advisory ID Software Component Link
    Apache Tomcat URL Logo tomcat.apache.org/security-8.html#Fixed_in_Apache_Tomcat_8.5.72