CRITICAL✓ PATCH🇵🇱 Wersja polska

CVE-2024-56337

CVSS 9.8v3.1pub. 2024-12-20upd. 2025-11-03

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.

🤖 AI Analysis
How it works

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.

Impact

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.

Mitigation & patch

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').

Who is affected

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.

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Apache Tomcat

    APP
    Apache
    9.0.0 – 9.0.98 (excl.)10.1.0 – 10.1.34 (excl.)11.0.0 – 11.0.2 (excl.)
  • Netapp Bootstrap Os

    OS
    Netapp
    all versions
  • Netapp Hci Compute Node

    HW
    Netapp
    all versions
🟢
PATCH AVAILABLE
Vendor update available. Deploy in standard maintenance cycle.
Tags
Race Condition
CWE
References

Related vulnerabilities

CVE-2025-24813CRITICAL9.8⚠ KEVPL ✓same product

Apache Tomcat: Path Equivalence prowadzący do RCE i ujawnienia danych

CVE-2020-1938CRITICAL9.8⚠ KEVPL ✓same product

Apache Tomcat AJP Connector — odczyt plików i RCE (Ghostcat)

CVE-2016-8735CRITICAL9.8⚠ KEVPL ✓same product

Apache Tomcat RCE przez JmxRemoteLifecycleListener (JMX)

CVE-2026-65182CRITICAL9.1same product

Improper Access Control, Incorrect Authorization vulnerability in Apache Tomcat leads to security constraint b...

CVE-2026-65637CRITICAL9.8same product

Improper Input Validation vulnerability in Apache Tomcat due to incomplete fix for CVE-2026-32990. This iss...