Skip to main content

CVE-2024-56337 — Vulnerability in tomcat-catalina — CVE Details

HIGH

Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability

Published December 20, 2024Updated September 10, 2026Source: OSV

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.

Check my pom.xml

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.

Maven
Update org.apache.tomcat:tomcat-catalina to 10.1.34 or later
<!-- Update pom.xml dependency version to 10.1.34 for org.apache.tomcat:tomcat-catalina -->
Maven
Update org.apache.tomcat:tomcat-catalina to 11.0.2 or later
<!-- Update pom.xml dependency version to 11.0.2 for org.apache.tomcat:tomcat-catalina -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 11.0.2 or later
<!-- Update pom.xml dependency version to 11.0.2 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 9.0.98 or later
<!-- Update pom.xml dependency version to 9.0.98 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat.embed:tomcat-embed-core to 10.1.34 or later
<!-- Update pom.xml dependency version to 10.1.34 for org.apache.tomcat.embed:tomcat-embed-core -->
Maven
Update org.apache.tomcat:tomcat-embed-core to 9.0.98 or later
<!-- 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).

PackageFixed 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 versions9.0.98

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 9.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
—
Confidentiality
—
Integrity
—
Availability
—

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

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

CVSS Score
9.3

Maximum impact if exploited, often with little effort or access required.

EPSS Score (30-day exploit probability)
14.44%
EPSS percentile: 97.3

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

GHSA-27hp-xhwr-wr2m
BIT-tomcat-2024-56337

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my pom.xml