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
root.io logo minimus.io logo echo.ai logo

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.

Affected Software

NameVendorStart VersionEnd Version
TomcatApache8.5.55 (including)8.5.73 (including)
TomcatApache9.0.35 (including)9.0.56 (including)
TomcatApache10.0.1 (including)10.0.14 (including)
TomcatApache10.0.0-milestone10 (including)10.0.0-milestone10 (including)
TomcatApache10.0.0-milestone5 (including)10.0.0-milestone5 (including)
TomcatApache10.0.0-milestone6 (including)10.0.0-milestone6 (including)
TomcatApache10.0.0-milestone7 (including)10.0.0-milestone7 (including)
TomcatApache10.0.0-milestone8 (including)10.0.0-milestone8 (including)
TomcatApache10.0.0-milestone9 (including)10.0.0-milestone9 (including)
TomcatApache10.1.0-milestone1 (including)10.1.0-milestone1 (including)
TomcatApache10.1.0-milestone2 (including)10.1.0-milestone2 (including)
TomcatApache10.1.0-milestone3 (including)10.1.0-milestone3 (including)
TomcatApache10.1.0-milestone4 (including)10.1.0-milestone4 (including)
TomcatApache10.1.0-milestone5 (including)10.1.0-milestone5 (including)
TomcatApache10.1.0-milestone6 (including)10.1.0-milestone6 (including)
TomcatApache10.1.0-milestone7 (including)10.1.0-milestone7 (including)
TomcatApache10.1.0-milestone8 (including)10.1.0-milestone8 (including)
JWS 5.7.0RedHattomcat*
Red Hat Fuse 7.11RedHattomcat*
Red Hat JBoss Web Server 5.7 on RHEL 7RedHatjws5-tomcat-0:9.0.62-9.redhat_00005.1.el7jws*
Red Hat JBoss Web Server 5.7 on RHEL 8RedHatjws5-tomcat-0:9.0.62-9.redhat_00005.1.el8jws*
Red Hat JBoss Web Server 5.7 on RHEL 9RedHatjws5-tomcat-0:9.0.62-9.redhat_00005.1.el9jws*
Spring Boot 2.7.2.SP1RedHattomcat*
Tomcat8Ubuntubionic*
Tomcat8Ubuntuesm-apps/bionic*
Tomcat8Ubuntuesm-infra/xenial*
Tomcat8Ubuntutrusty*
Tomcat8Ubuntuxenial*
Tomcat9Ubuntubionic*
Tomcat9Ubuntuesm-apps/bionic*
Tomcat9Ubuntuesm-apps/focal*
Tomcat9Ubuntufocal*
Tomcat9Ubuntuimpish*
Tomcat9Ubuntukinetic*
Tomcat9Ubuntulunar*
Tomcat9Ubuntumantic*
Tomcat9Ubuntutrusty*
Tomcat9Ubuntuxenial*

Potential Mitigations

References