CVE Vulnerabilities

CVE-2022-23181

Time-of-check Time-of-use (TOCTOU) Race Condition

Published: Jan 27, 2022 | Modified: Nov 07, 2022
CVSS 3.x
7
HIGH
Source:
NVD
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
CVSS 2.x
3.7 LOW
AV:L/AC:H/Au:N/C:P/I:P/A:P
RedHat/V2
RedHat/V3
Ubuntu

The fix for bug CVE-2020-9484 introduced a time of check, time of use vulnerability into Apache Tomcat 10.1.0-M1 to 10.1.0-M8, 10.0.0-M5 to 10.0.14, 9.0.35 to 9.0.56 and 8.5.55 to 8.5.73 that allowed a local attacker to perform actions with the privileges of the user that the Tomcat process is using. This issue is only exploitable when Tomcat is configured to persist sessions using the FileStore.

Weakness

The product checks the state of a resource before using that resource, but the resource’s state can change between the check and the use in a way that invalidates the results of the check. This can cause the product to perform invalid actions when the resource is in an unexpected state.

Affected Software

Name Vendor Start Version End Version
Tomcat Apache 8.5.55 (including) 8.5.73 (including)
Tomcat Apache 9.0.35 (including) 9.0.56 (including)
Tomcat Apache 10.0.1 (including) 10.0.14 (including)
Tomcat Apache 10.0.0-milestone10 (including) 10.0.0-milestone10 (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)
Tomcat Apache 10.1.0-milestone1 (including) 10.1.0-milestone1 (including)
Tomcat Apache 10.1.0-milestone2 (including) 10.1.0-milestone2 (including)
Tomcat Apache 10.1.0-milestone3 (including) 10.1.0-milestone3 (including)
Tomcat Apache 10.1.0-milestone4 (including) 10.1.0-milestone4 (including)
Tomcat Apache 10.1.0-milestone5 (including) 10.1.0-milestone5 (including)
Tomcat Apache 10.1.0-milestone6 (including) 10.1.0-milestone6 (including)
Tomcat Apache 10.1.0-milestone7 (including) 10.1.0-milestone7 (including)
Tomcat Apache 10.1.0-milestone8 (including) 10.1.0-milestone8 (including)

Potential Mitigations

References