CVE Vulnerabilities

CVE-2022-23181

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

Published: Jan 27, 2022 | Modified: Nov 21, 2024
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
7 MODERATE
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
Ubuntu
LOW

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)
JWS 5.7.0 RedHat tomcat *
Red Hat Fuse 7.11 RedHat tomcat *
Red Hat JBoss Web Server 5.7 on RHEL 7 RedHat jws5-tomcat-0:9.0.62-9.redhat_00005.1.el7jws *
Red Hat JBoss Web Server 5.7 on RHEL 8 RedHat jws5-tomcat-0:9.0.62-9.redhat_00005.1.el8jws *
Red Hat JBoss Web Server 5.7 on RHEL 9 RedHat jws5-tomcat-0:9.0.62-9.redhat_00005.1.el9jws *
Spring Boot 2.7.2.SP1 RedHat tomcat *
Tomcat8 Ubuntu bionic *
Tomcat8 Ubuntu esm-apps/bionic *
Tomcat8 Ubuntu esm-infra/xenial *
Tomcat8 Ubuntu trusty *
Tomcat8 Ubuntu xenial *
Tomcat9 Ubuntu bionic *
Tomcat9 Ubuntu esm-apps/bionic *
Tomcat9 Ubuntu focal *
Tomcat9 Ubuntu impish *
Tomcat9 Ubuntu kinetic *
Tomcat9 Ubuntu lunar *
Tomcat9 Ubuntu mantic *
Tomcat9 Ubuntu trusty *
Tomcat9 Ubuntu xenial *

Potential Mitigations

References