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 following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. 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.
The vulnerability affects systems where Apache Tomcat runs on case-insensitive file systems and the default servlet has write mode enabled (initialization parameter 'readonly' set to 'false'). In such configurations, depending on the Java version, the system property 'sun.io.useCanonCaches' can cause incorrect caching of canonical file paths, opening a race condition window between access verification and actual resource use. An attacker can substitute a malicious resource within this time window and bypass access control mechanisms. The mitigation applied for CVE-2024-50379 proved insufficient without additional JVM property configuration.
Successful exploitation of the vulnerability may enable an attacker to achieve remote code execution (RCE) or unauthorized file writing on the server, leading to complete system takeover, data confidentiality and integrity breaches, and loss of service availability.
Apache Tomcat should be updated to version 11.0.3, 10.1.35, 9.0.99 or later, which contain appropriate configuration verification mechanisms. Until the update is applied, additional version-dependent Java configuration is required: on Java 8 and Java 11, the system property 'sun.io.useCanonCaches=false' must be explicitly set (default is 'true'); on Java 17, ensure this property is set to 'false' or left at the default value ('false'); on Java 21 and later, no additional configuration is required. Alternatively, if write mode is not required, leave the 'readonly' parameter at its default value ('true').
Apache Tomcat in versions: 11.0.0-M1 to 11.0.1, 10.1.0-M1 to 10.1.33, 9.0.0.M1 to 9.0.97, and 8.5.0 to 8.5.100 (EOL versions). The vulnerability affects only installations running on case-insensitive file systems with write mode enabled for the default servlet. NetApp Bootstrap OS and NetApp HCI Compute Node products are also affected.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HApache Tomcat
APPApache9.0.0 – 9.0.98 (excl.)10.1.0 – 10.1.34 (excl.)11.0.0 – 11.0.2 (excl.)Netapp Bootstrap Os
OSNetappall versionsNetapp Hci Compute Node
HWNetappall versions
Related vulnerabilities
Apache Tomcat: Path Equivalence prowadzący do RCE i ujawnienia danych
Apache Tomcat AJP Connector — odczyt plików i RCE (Ghostcat)
Apache Tomcat RCE przez JmxRemoteLifecycleListener (JMX)
Improper Access Control, Incorrect Authorization vulnerability in Apache Tomcat leads to security constraint b...
Improper Input Validation vulnerability in Apache Tomcat due to incomplete fix for CVE-2026-32990. This iss...