CVE-2024-56337 — Vulnerability in tomcat-catalina — CVE Details
Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability
What Should I Do?
Low-to-Moderate Risk
Exploitation probability is 14.44% in 30 days. Address in your next planned sprint.
Does your project use an affected org.apache.tomcat:tomcat-catalina version?
Paste your pom.xml to check it for CVE-2024-56337 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
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.
Advisory Timeline
- First published December 20, 2024 (706 days ago).
- Last revised September 10, 2026 — 628 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 10.1.34 for org.apache.tomcat:tomcat-catalina -->
<!-- Update pom.xml dependency version to 11.0.2 for org.apache.tomcat:tomcat-catalina -->
<!-- Update pom.xml dependency version to 11.0.2 for org.apache.tomcat.embed:tomcat-embed-core -->
<!-- Update pom.xml dependency version to 9.0.98 for org.apache.tomcat.embed:tomcat-embed-core -->
<!-- Update pom.xml dependency version to 10.1.34 for org.apache.tomcat.embed:tomcat-embed-core -->
<!-- Update pom.xml dependency version to 9.0.98 for org.apache.tomcat:tomcat-embed-core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Maven (3).
| Package | Fixed In |
|---|---|
| org.apache.tomcat:tomcat-catalina Maven · Affected: 10.1.0, 10.1.0-M1, 10.1.0-M10, 10.1.0-M11 (+39 more) | 10.1.34 |
| org.apache.tomcat:tomcat-catalina Maven · Affected: 11.0.0, 11.0.0-M1, 11.0.0-M10, 11.0.0-M11 (+21 more) | 11.0.2 |
| org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 11.0.0, 11.0.0-M1, 11.0.0-M10, 11.0.0-M11 (+21 more) | 11.0.2 |
| org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 9.0.0.M1, 9.0.0.M10, 9.0.0.M11, 9.0.0.M13 (+95 more) | 9.0.98 |
| org.apache.tomcat.embed:tomcat-embed-core Maven · Affected: 10.1.0, 10.1.0-M1, 10.1.0-M10, 10.1.0-M11 (+39 more) | 10.1.34 |
| org.apache.tomcat:tomcat-embed-core Maven · Affected: All versions | 9.0.98 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-367
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-56337ADVISORY
- https://github.com/apache/tomcatPACKAGE
- https://lists.apache.org/thread/b2b9qrgjrz1kvo4ym8y2wkfdvwoq6qbpWEB
- https://lists.debian.org/debian-lts-announce/2025/01/msg00009.htmlWEB
- https://security.netapp.com/advisory/ntap-20250103-0002WEB
- https://tomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.34WEB
- https://tomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.2WEB
- https://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.98WEB
- https://www.cve.org/CVERecord?id=CVE-2024-50379WEB
Frequently Asked Questions
- What is CVE-2024-56337?
- Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 9.3/10).
- How do I check if my project is affected by CVE-2024-56337?
- CVE-2024-56337 affects org.apache.tomcat:tomcat-catalina, org.apache.tomcat.embed:tomcat-embed-core and org.apache.tomcat:tomcat-embed-core. It has a 14.4% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-56337 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This places it in the top 5% of EPSS-scored vulnerabilities — 97.3% of tracked vulnerabilities score at or below it, so it is far more likely to be exploited than nearly all other tracked vulnerabilities.
Also Known As
Related CVEs
- CVE-2017-5648CRITICAL
Exposure of Resource to Wrong Sphere in Apache Tomcat
- CVE-2026-43515CRITICAL
Apache Tomcat - Security constraints not correctly applied
- CVE-2024-50379HIGH
Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability
- CVE-2026-34483HIGH
Apache Tomcat has an Improper Encoding or Escaping of Output vulnerability in the JsonAccessLogValve
- CVE-2025-55752HIGH
Apache Tomcat Vulnerable to Relative Path Traversal
- CVE-2025-52520HIGH
Apache Tomcat Catalina is vulnerable to DoS attack through bypassing of size limits
- CVE-2025-49124MEDIUM
Apache Tomcat installer for Windows has an untrusted search path vulnerability
- CVE-2025-55754LOW
Apache Tomcat Vulnerable to Improper Neutralization of Escape, Meta, or Control Sequences