QID 150471

Date Published: 2022-02-18

QID 150471: Apache Tomcat Remote Code Execution Vulnerability (CVE-2021-25329)

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

In affected versions of Apache Tomcat, the fix for CVE-2020-9484 was incomplete when the server is using a highly unlikely configuration edge case, as a result the Tomcat instance was still vulnerable to CVE-2020-9494. Using a specifically crafted request, the attacker will be able to trigger remote code execution via deserialization of the file under their control.

Affected Versions:
Apache Tomcat 10.0.0-M1 to 10.0.0
Apache Tomcat 9.0.0.M1 to 9.0.41
Apache Tomcat 8.5.0 to 8.5.61
Apache Tomcat 7.0.0 to 7.0.107

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

Successful exploitation of this vulnerability could allow a remote attacker to compromise data confidentiality, integrity, and availability of the affected system.

  • CVSS V3 rated as High - 7 severity.
  • CVSS V2 rated as Medium - 4.4 severity.
  • Solution
    Customers are advised to upgrade to Apache Tomcat 10.0.2, 9.0.43, 8.5.63, 7.0.18 or later version to remediate this vulnerability. For more information please refer to Apache Tomcat Security Advisory.

    Vendor References

    CVEs related to QID 150471

    Software Advisories
    Advisory ID Software Component Link
    Apache Tomcat Security URL Logo tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.0.2