Time-of-check Time-of-use (TOCTOU) Affecting tomcat9-el-3.0-api package, versions <1:9.0.64-1.amzn2023.0.2


Severity

Recommended
medium

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-TOMCAT9EL30API-3345554
  • published7 Mar 2023
  • disclosed27 Jan 2022

Introduced: 27 Jan 2022

CVE-2022-23181  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 tomcat9-el-3.0-api to version 1:9.0.64-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2023-059.

NVD Description

Note: Versions mentioned in the description apply only to the upstream tomcat9-el-3.0-api package and not the tomcat9-el-3.0-api package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Scores

version 3.1