Amazon Linux 2 Security Advisory: ALASTOMCAT9-2025-015
Advisory Release Date: 2025-01-21 20:23 Pacific
Advisory Updated Date: 2025-01-24 11:44 Pacific
FAQs regarding Amazon Linux ALAS/CVE Severity
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. (CVE-2024-50379)
Unchecked Error Condition vulnerability in Apache Tomcat. If Tomcat is configured to use a custom Jakarta Authentication (formerly JASPIC) ServerAuthContext component which may throw an exception during the authentication process without explicitly setting an HTTP status to indicate failure, the authentication may not fail, allowing the user to bypass the authentication process. There are no known Jakarta Authentication components that behave in this way.
This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.0-M26, from 10.1.0-M1 through 10.1.30, from 9.0.0-M1 through 9.0.95.
Users are recommended to upgrade to version 11.0.0, 10.1.31 or 9.0.96, which fix the issue. (CVE-2024-52316)
Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in Apache Tomcat.
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.
The mitigation for CVE-2024-50379 was incomplete.
Users running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialisation
parameter set to the non-default value of false) may need additional configuration to fully mitigate CVE-2024-50379 depending on which version of Java they are using with Tomcat:
- running on Java 8 or Java 11: the system property sun.io.useCanonCaches must be explicitly set to false (it defaults to true)
- running on Java 17: the system property sun.io.useCanonCaches, if set, must be set to false (it defaults to false)
- running on Java 21 onwards: no further configuration is required (the system property and the problematic cache have been removed)
Tomcat 11.0.3, 10.1.35 and 9.0.99 onwards will include checks that sun.io.useCanonCaches is set appropriately before allowing the default servlet to be write enabled on a case insensitive file system. Tomcat will also set sun.io.useCanonCaches to false by default where it can. (CVE-2024-56337)
Affected Packages:
tomcat
Note:
This advisory is applicable to Amazon Linux 2 - Tomcat9 Extra. Visit this page to learn more about Amazon Linux 2 (AL2) Extras and this FAQ section for the difference between AL2 Core and AL2 Extras advisories.
Issue Correction:
Run yum update tomcat to update your system.
noarch:
tomcat-9.0.98-1.amzn2.0.1.noarch
tomcat-admin-webapps-9.0.98-1.amzn2.0.1.noarch
tomcat-docs-webapp-9.0.98-1.amzn2.0.1.noarch
tomcat-jsvc-9.0.98-1.amzn2.0.1.noarch
tomcat-jsp-2.3-api-9.0.98-1.amzn2.0.1.noarch
tomcat-lib-9.0.98-1.amzn2.0.1.noarch
tomcat-servlet-4.0-api-9.0.98-1.amzn2.0.1.noarch
tomcat-el-3.0-api-9.0.98-1.amzn2.0.1.noarch
tomcat-webapps-9.0.98-1.amzn2.0.1.noarch
src:
tomcat-9.0.98-1.amzn2.0.1.src