CVE Vulnerabilities

CVE-2021-25122

Exposure of Sensitive Information to an Unauthorized Actor

Published: Mar 01, 2021 | Modified: Nov 21, 2024
CVSS 3.x
7.5
HIGH
Source:
NVD
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS 2.x
5 MEDIUM
AV:N/AC:L/Au:N/C:P/I:N/A:N
RedHat/V2
RedHat/V3
7.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Ubuntu
MEDIUM

When responding to new h2c connection requests, Apache Tomcat versions 10.0.0-M1 to 10.0.0, 9.0.0.M1 to 9.0.41 and 8.5.0 to 8.5.61 could duplicate request headers and a limited amount of request body from one request to another meaning user A and user B could both see the results of user As request.

Weakness

The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.

Affected Software

Name Vendor Start Version End Version
Tomcat Apache 8.5.0 (including) 8.5.61 (including)
Tomcat Apache 9.0.0 (including) 9.0.41 (including)
Tomcat Apache 9.0.0-milestone1 (including) 9.0.0-milestone1 (including)
Tomcat Apache 9.0.0-milestone10 (including) 9.0.0-milestone10 (including)
Tomcat Apache 9.0.0-milestone11 (including) 9.0.0-milestone11 (including)
Tomcat Apache 9.0.0-milestone12 (including) 9.0.0-milestone12 (including)
Tomcat Apache 9.0.0-milestone13 (including) 9.0.0-milestone13 (including)
Tomcat Apache 9.0.0-milestone14 (including) 9.0.0-milestone14 (including)
Tomcat Apache 9.0.0-milestone15 (including) 9.0.0-milestone15 (including)
Tomcat Apache 9.0.0-milestone16 (including) 9.0.0-milestone16 (including)
Tomcat Apache 9.0.0-milestone17 (including) 9.0.0-milestone17 (including)
Tomcat Apache 9.0.0-milestone18 (including) 9.0.0-milestone18 (including)
Tomcat Apache 9.0.0-milestone19 (including) 9.0.0-milestone19 (including)
Tomcat Apache 9.0.0-milestone2 (including) 9.0.0-milestone2 (including)
Tomcat Apache 9.0.0-milestone20 (including) 9.0.0-milestone20 (including)
Tomcat Apache 9.0.0-milestone21 (including) 9.0.0-milestone21 (including)
Tomcat Apache 9.0.0-milestone22 (including) 9.0.0-milestone22 (including)
Tomcat Apache 9.0.0-milestone23 (including) 9.0.0-milestone23 (including)
Tomcat Apache 9.0.0-milestone24 (including) 9.0.0-milestone24 (including)
Tomcat Apache 9.0.0-milestone25 (including) 9.0.0-milestone25 (including)
Tomcat Apache 9.0.0-milestone26 (including) 9.0.0-milestone26 (including)
Tomcat Apache 9.0.0-milestone27 (including) 9.0.0-milestone27 (including)
Tomcat Apache 9.0.0-milestone3 (including) 9.0.0-milestone3 (including)
Tomcat Apache 9.0.0-milestone4 (including) 9.0.0-milestone4 (including)
Tomcat Apache 9.0.0-milestone5 (including) 9.0.0-milestone5 (including)
Tomcat Apache 10.0.0 (including) 10.0.0 (including)
Tomcat Apache 10.0.0-milestone1 (including) 10.0.0-milestone1 (including)
Tomcat Apache 10.0.0-milestone10 (including) 10.0.0-milestone10 (including)
Tomcat Apache 10.0.0-milestone2 (including) 10.0.0-milestone2 (including)
Tomcat Apache 10.0.0-milestone3 (including) 10.0.0-milestone3 (including)
Tomcat Apache 10.0.0-milestone4 (including) 10.0.0-milestone4 (including)
Tomcat Apache 10.0.0-milestone5 (including) 10.0.0-milestone5 (including)
Tomcat Apache 10.0.0-milestone6 (including) 10.0.0-milestone6 (including)
Tomcat Apache 10.0.0-milestone7 (including) 10.0.0-milestone7 (including)
Tomcat Apache 10.0.0-milestone8 (including) 10.0.0-milestone8 (including)
Tomcat Apache 10.0.0-milestone9 (including) 10.0.0-milestone9 (including)
Red Hat Fuse 7.11 RedHat tomcat *
Red Hat JBoss Web Server 5 RedHat tomcat *
Red Hat JBoss Web Server 5.5 on RHEL 7 RedHat jws5-ecj-0:4.12.0-3.redhat_2.2.el7jws *
Red Hat JBoss Web Server 5.5 on RHEL 7 RedHat jws5-mod_cluster-0:1.4.3-2.Final_redhat_00002.1.el7jws *
Red Hat JBoss Web Server 5.5 on RHEL 7 RedHat jws5-tomcat-0:9.0.43-11.redhat_00011.1.el7jws *
Red Hat JBoss Web Server 5.5 on RHEL 7 RedHat jws5-tomcat-native-0:1.2.26-3.redhat_3.el7jws *
Red Hat JBoss Web Server 5.5 on RHEL 7 RedHat jws5-tomcat-vault-0:1.1.8-2.Final_redhat_00003.1.el7jws *
Red Hat JBoss Web Server 5.5 on RHEL 8 RedHat jws5-ecj-0:4.12.0-3.redhat_2.2.el8jws *
Red Hat JBoss Web Server 5.5 on RHEL 8 RedHat jws5-mod_cluster-0:1.4.3-2.Final_redhat_00002.1.el8jws *
Red Hat JBoss Web Server 5.5 on RHEL 8 RedHat jws5-tomcat-0:9.0.43-11.redhat_00011.1.el8jws *
Red Hat JBoss Web Server 5.5 on RHEL 8 RedHat jws5-tomcat-native-0:1.2.26-3.redhat_3.el8jws *
Red Hat JBoss Web Server 5.5 on RHEL 8 RedHat jws5-tomcat-vault-0:1.1.8-2.Final_redhat_00003.1.el8jws *
Red Hat support for Spring Boot 2.3.10 RedHat tomcat *
Tomcat6 Ubuntu precise/esm *
Tomcat6 Ubuntu trusty *
Tomcat6 Ubuntu xenial *
Tomcat7 Ubuntu bionic *
Tomcat7 Ubuntu trusty *
Tomcat7 Ubuntu xenial *
Tomcat8 Ubuntu bionic *
Tomcat8 Ubuntu esm-apps/bionic *
Tomcat9 Ubuntu bionic *
Tomcat9 Ubuntu focal *
Tomcat9 Ubuntu groovy *
Tomcat9 Ubuntu hirsute *
Tomcat9 Ubuntu impish *
Tomcat9 Ubuntu kinetic *
Tomcat9 Ubuntu lunar *
Tomcat9 Ubuntu mantic *

Extended Description

There are many different kinds of mistakes that introduce information exposures. The severity of the error can range widely, depending on the context in which the product operates, the type of sensitive information that is revealed, and the benefits it may provide to an attacker. Some kinds of sensitive information include:

Information might be sensitive to different parties, each of which may have their own expectations for whether the information should be protected. These parties include:

Information exposures can occur in different ways:

It is common practice to describe any loss of confidentiality as an “information exposure,” but this can lead to overuse of CWE-200 in CWE mapping. From the CWE perspective, loss of confidentiality is a technical impact that can arise from dozens of different weaknesses, such as insecure file permissions or out-of-bounds read. CWE-200 and its lower-level descendants are intended to cover the mistakes that occur in behaviors that explicitly manage, store, transfer, or cleanse sensitive information.

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References