Cyber Resilience

CVE-2024-56337

Race Condition in Apache Tomcat 9.0.0 – 9.0.98

Published
20 December 2024
Modified
03 November 2025
Patch / advisory
CVSS Score v3.1 9.8
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.090 95th percentile
Risk Priority 91 floored blend · peak EPSS

Summary

CVE-2024-56337 is a critical-severity Time-of-check Time-of-use (TOCTOU) Race Condition (CWE-367) vulnerability in Apache Tomcat. Its CVSS base score is 9.8 (Critical).

Operationally, exploitation aligns with the MITRE ATT&CK technique Path Interception (T1034); ranked in the top 5% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog.

The strongest mitigations our analysis identified map to AC-25 (Reference Monitor) and AC-3 (Access Enforcement) — see the control section below for these in your framework.

Deeper analysis AI-assisted summary

Synthesised by an AI model from the NVD description and linked references — a reading aid, not an authoritative source.

CVE-2024-56337 is a Time-of-check Time-of-use (TOCTOU) race condition vulnerability in Apache Tomcat that stems from an incomplete fix for the related CVE-2024-50379. It affects Tomcat versions 11.0.0-M1 through 11.0.1, 10.1.0-M1 through 10.1.33, and 9.0.0.M1 through 9.0.97, as well as end-of-life releases from 8.5.0 through 8.5.100. The flaw manifests when Tomcat runs on a case-insensitive file system with the default servlet configured for write access by setting the readonly initialization parameter to false.

Remote attackers without authentication can exploit the race condition to achieve arbitrary file writes or other impacts that lead to full confidentiality, integrity, and availability compromise, reflected in the CVSS 9.8 score. Exploitation requires specific environmental conditions around file-system case sensitivity and servlet write permissions, but no user interaction is needed once those are met.

Advisories recommend upgrading to Tomcat 11.0.3, 10.1.35, or 9.0.99 and later, which add runtime checks for the sun.io.useCanonCaches system property and set it to false by default where possible. On Java 8 or 11, the property must be explicitly disabled; on Java 17 it must remain unset or false; and on Java 21 and newer no additional action is required because the problematic cache was removed.

The EPSS score rose from a low baseline to a peak of 0.4819 before receding to the current value of 0.1286, indicating increased exploitation interest after disclosure.

EU & UK References

Vulnerability Data

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…

more

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.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

T1034 Path Interception Persistence
**This technique has been deprecated.
T1548 Abuse Elevation Control Mechanism Privilege Escalation
Adversaries may circumvent mechanisms designed to control privilege elevation to gain higher-level permissions.
T1574 Hijack Execution Flow Stealth
Adversaries may execute their own malicious payloads by hijacking the way operating systems run programs.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2024-50379Same product: Apache Tomcat
CVE-2024-54677Same product: Apache Tomcat
CVE-2025-24813Same product: Apache Tomcat
CVE-2023-1295Same product class: NAS / storage appliance
CVE-2024-34750Same product: Apache Tomcat
CVE-2024-38286Same product: Apache Tomcat
CVE-2024-47814Same product: Netapp Bootstrap Os
CVE-2024-38477Same product class: NAS / storage appliance
CVE-2024-43790Same product: Netapp Bootstrap Os
CVE-2019-0192Same product class: NAS / storage appliance

Affected Assets

apache
tomcat
9.0.0 — 9.0.98 · 10.1.0 — 10.1.34 · 11.0.0 — 11.0.2
netapp
bootstrap os
all versions

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

Detect
Catch it (NIST detect / respond)

Harden
Shrink the surface (DISA STIG)

Validate
Prove the fix (OWASP ASVS)
  • V15.4.2
  • V17.2.6

Mitigating Controls (NIST 800-53 r5) AI

A reference monitor that is always invoked and analyzable structurally eliminates the non-atomic check-then-use pattern underlying TOCTOU.

Access enforcement that performs an atomic check-and-use decision directly stops the window in which a TOCTOU race can be exploited.

Process isolation limits the blast radius of a successful TOCTOU exploitation but does not remove the race itself.

Mitigating Controls (NIST CSF 2.0) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→CSF cross-walk (authority under review) — links open the control.

PR.PS-06 mostly match
prevents

Secure SDLC practices directly include coding standards and reviews that prevent TOCTOU race conditions.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

none

Reliable, synchronized time across systems narrows the exploitable window in which a resource state can change between a security check and its use.

References