Stackurity Start free trial

CVEs / CVE-2024-56337

CVE-2024-56337: Apache Software Foundation Apache Tomcat vulnerability

Are you affected? Check your servers with Stackurity: it lists the software on each server and the vulnerabilities to fix first.

Check your servers with Stackurity Already using Stackurity? Search for CVE-2024-56337

Description

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 CVE record, via NVD · published 20 Dec 2024 · NVD status: Modified

Affected and fixed versions

As stated by the CVE record (from the CNA)
ProductAffectedFixed in
Apache Software Foundation Apache Tomcatfrom 11.0.0-M1, up to and including 11.0.1—
Apache Software Foundation Apache Tomcatfrom 10.1.0-M1, up to and including 10.1.33—
Apache Software Foundation Apache Tomcatfrom 9.0.0.M1, up to and including 9.0.97—
Apache Software Foundation Apache Tomcatfrom 8.5.0, up to and including 8.5.100—
As stated by OSV
ProductAffectedFixed in
org.apache.tomcat:tomcat-catalina (Maven)from 11.0.0-M1, before 11.0.211.0.2
org.apache.tomcat:tomcat-catalina (Maven)from 10.1.0-M1, before 10.1.3410.1.34
org.apache.tomcat:tomcat-embed-core (Maven)from 9.0.0.M1, before 9.0.989.0.98
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 11.0.0-M1, before 11.0.211.0.2
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 10.1.0-M1, before 10.1.3410.1.34
org.apache.tomcat.embed:tomcat-embed-core (Maven)from 9.0.0.M1, before 9.0.989.0.98

Package versions from GHSA-27hp-xhwr-wr2m.

Exploitation

Not in the CISA Known Exploited Vulnerabilities catalog as of 13 Nov 2026.

Severity

CVSS 3.19.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Scored by the CNA (134c704f-9b21-4f2e-91b3-4a467353bcc0)
WeaknessCWE-367

References

Sources

Exploitation status from the CISA Known Exploited Vulnerabilities catalog. EPSS scores from FIRST. Descriptions, severity and references from the National Vulnerability Database. Open-source package versions from OSV (CC-BY 4.0). Text is shown as each source states it; Stackurity does not edit it. Check the vendor's advisory before acting.

This product uses data from the NVD API but is not endorsed or certified by the NVD.