Security vulnerability; Race condition in Apache Tomcat (CVE-2024-56337, CVE-2024-50379)
This document (000021699) is provided subject to the disclaimer at the end of this document.
Environment
For a comprehensive list of affected products, please review the SUSE CVE announcement.
Situation
The
CVE-2024-50379 security issues references an issue that could happen during JSP compilation on case-insensitive filesystems, when the default servlet is enabled for write (not the default setting).
Users running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialization 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)
Resolution
Future tomcat versions 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.
Status
Security Alert
Additional Information
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000021699
- Creation Date:
07-Feb-2025
- Modified Date:07-Feb-2025
-
- SUSE Linux Enterprise Server
- SUSE Linux Enterprise Server for SAP Applications
- SUSE Manager
< Back to Support Search
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com