Vulnerability · Published Dec 20, 2024 · Assigned by apache

CVE-2024-56337Apache Tomcat: RCE due to TOCTOU issue in JSP compilation - CVE-2024-50379 mitigation was incomplete

Critical 9.8

In plain English

A critical-severity security flaw in Apache Tomcat from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 9.0% (higher than 95% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)9.8Critical
Exploit odds (30 days)9.0%top 4.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8tomcat1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-admin-webapps1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-admin-webapps1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-docs-webapp1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-docs-webapp1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-el-3.0-api1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-el-3.0-api1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-jsp-2.3-api1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-jsp-2.3-api1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-lib1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-lib1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-servlet-4.0-api1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-servlet-4.0-api1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:8tomcat-webapps1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux:9tomcat-webapps1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux:10tomcat91:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-admin-webapps1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-docs-webapp1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-el-3.0-api1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-jsp-2.3-api1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-lib1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-servlet-4.0-api1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux:10tomcat9-webapps1:9.0.87-5.el10_0.1ALSA-2025:11332
Debian:12tomcat1010.1.34-0+deb12u1DEBIAN-CVE-2024-56337
Debian:12tomcat1010.1.34-0+deb12u1DSA-5845-1
Debian:13tomcat1010.1.34-1DEBIAN-CVE-2024-56337
Debian:14tomcat1010.1.34-1DEBIAN-CVE-2024-56337
Debian:12tomcat99.0.70-2DEBIAN-CVE-2024-56337
Debian:13tomcat99.0.70-2DEBIAN-CVE-2024-56337
Debian:14tomcat99.0.70-2DEBIAN-CVE-2024-56337
Mavenorg.apache.tomcat.embed:tomcat-embed-core10.1.34GHSA-27hp-xhwr-wr2m
Mavenorg.apache.tomcat.embed:tomcat-embed-core9.0.98GHSA-27hp-xhwr-wr2m
Mavenorg.apache.tomcat.embed:tomcat-embed-core11.0.2GHSA-27hp-xhwr-wr2m
Mavenorg.apache.tomcat:tomcat-catalina10.1.34GHSA-27hp-xhwr-wr2m
Mavenorg.apache.tomcat:tomcat-catalina11.0.2GHSA-27hp-xhwr-wr2m
Mavenorg.apache.tomcat:tomcat-embed-core9.0.98GHSA-27hp-xhwr-wr2m
Rocky Linux:8tomcat1:9.0.87-1.el8_10.4RLSA-2025:11333
Rocky Linux:9tomcat1:9.0.87-3.el9_6.1RLSA-2025:11335
Rocky Linux:10tomcat91:9.0.87-5.el10_0.1RLSA-2025:11332
Ubuntu:24.04:LTStomcat10no fix listedUBUNTU-CVE-2024-56337

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Tomcat 11.0.0-M1 – through 11.0.110.1.0-M1 – through 10.1.339.0.0.M1 – through 9.0.978.5.0 – through 8.5.100

Weakness: CWE-367 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

References