Time-of-check Time-of-use (TOCTOU) Affecting tomcat9-webapps package, versions <1:9.0.98-1.amzn2023.0.1


Severity

Recommended
0.0
high
0
10

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-TOMCAT9WEBAPPS-8662805
  • published25 Jan 2025
  • disclosed17 Dec 2024

Introduced: 17 Dec 2024

CVE-2024-50379  (opens in a new tab)
CWE-367  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 tomcat9-webapps to version 1:9.0.98-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2025-813.

NVD Description

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

Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability during JSP compilation in Apache Tomcat permits an RCE on case insensitive file systems when the default servlet is enabled for write (non-default configuration).

This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.1, from 10.1.0-M1 through 10.1.33, from 9.0.0.M1 through 9.0.97.

Users are recommended to upgrade to version 11.0.2, 10.1.34 or 9.0.98, which fixes the issue.

CVSS Scores

version 3.1