CVEfocus › CVE database › CVE-2024-56337

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

CVSS 9.8 CriticalEPSS 14.4% (higher than 97% of CVEs)Published 2024-12-20Updated 2025-11-04Assigner: apache

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.

CWE-367

What to do

Likely to be exploited: EPSS gives a 14% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.

Fixed builds are available from AlmaLinux, Debian, Maven, Red Hat, Rocky Linux: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

68Fixed
6Fix pending
4Will not fix
25Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04tomcat10Not affected
vulnerable_code_not_present
Ubuntu 26.04tomcat9Not affected
vulnerable_code_not_present
Ubuntu 25.10tomcat10Not affected
vulnerable_code_not_present
Ubuntu 25.10tomcat11Not affected
vulnerable_code_not_present
Ubuntu 25.10tomcat9Not affected
vulnerable_code_not_present
Ubuntu 24.04tomcat10Fix pendingUBUNTU-CVE-2024-56337
Ubuntu 22.04tomcat9Fix pendingUBUNTU-CVE-2024-56337
Ubuntu 20.04tomcat9Fix pendingUBUNTU-CVE-2024-56337
Ubuntu 18.04tomcat8Fix pendingUBUNTU-CVE-2024-56337
Ubuntu 18.04tomcat9Fix pendingUBUNTU-CVE-2024-56337
Ubuntu 16.04tomcat8Fix pendingUBUNTU-CVE-2024-56337
Debian 14tomcat10Fixed10.1.34-1DEBIAN-CVE-2024-56337
Debian 14tomcat9Fixed9.0.70-2DEBIAN-CVE-2024-56337
Debian 13tomcat10Fixed10.1.34-1DEBIAN-CVE-2024-56337
Debian 13tomcat9Fixed9.0.70-2DEBIAN-CVE-2024-56337
Debian 12tomcat10Fixed10.1.34-0+deb12u1DEBIAN-CVE-2024-56337
Debian 12tomcat9Fixed9.0.70-2DEBIAN-CVE-2024-56337
Red Hat Enterprise Linux 10tomcatFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-admin-webappsFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-docs-webappFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-el-5.0-apiFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-jsp-3.1-apiFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-libFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-servlet-6.0-apiFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat-webappsFixed1:10.1.36-1.el10_0RHSA-2025:7497
Red Hat Enterprise Linux 10tomcat9Fixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-admin-webappsFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-docs-webappFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-el-3.0-apiFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-jsp-2.3-apiFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-libFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-servlet-4.0-apiFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 10tomcat9-webappsFixed1:9.0.87-5.el10_0.1RHSA-2025:11332
Red Hat Enterprise Linux 9pki-servlet-4.0-apiWill not fix
Will not fix
Red Hat Enterprise Linux 9pki-servlet-engineWill not fix
Will not fix
Red Hat Enterprise Linux 9tomcatFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-admin-webappsFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-docs-webappFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-el-3.0-apiFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-jsp-2.3-apiFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-libFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-servlet-4.0-apiFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 9tomcat-webappsFixed1:9.0.87-3.el9_6.1RHSA-2025:11335
Red Hat Enterprise Linux 8pki-servlet-4.0-apiWill not fix
Will not fix
Red Hat Enterprise Linux 8pki-servlet-engineWill not fix
Will not fix
Red Hat Enterprise Linux 8tomcatFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-admin-webappsFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-docs-webappFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-el-3.0-apiFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-jsp-2.3-apiFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-libFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-servlet-4.0-apiFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 8tomcat-webappsFixed1:9.0.87-1.el8_10.4RHSA-2025:11333
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 7tomcat-admin-webappsNot affected
Red Hat Enterprise Linux 7tomcat-docs-webappNot affected
Red Hat Enterprise Linux 7tomcat-el-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-javadocNot affected
Red Hat Enterprise Linux 7tomcat-jsp-2.2-apiNot affected
Red Hat Enterprise Linux 7tomcat-jsvcNot affected
Red Hat Enterprise Linux 7tomcat-libNot affected
Red Hat Enterprise Linux 7tomcat-servlet-3.0-apiNot affected
Red Hat Enterprise Linux 7tomcat-webappsNot affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 6tomcat6-admin-webappsNot affected
Red Hat Enterprise Linux 6tomcat6-docs-webappNot affected
Red Hat Enterprise Linux 6tomcat6-el-2.1-apiNot affected
Red Hat Enterprise Linux 6tomcat6-javadocNot affected
Red Hat Enterprise Linux 6tomcat6-jsp-2.1-apiNot affected
Red Hat Enterprise Linux 6tomcat6-libNot affected
Red Hat Enterprise Linux 6tomcat6-log4jNot affected
Red Hat Enterprise Linux 6tomcat6-servlet-2.5-apiNot affected
Red Hat Enterprise Linux 6tomcat6-webappsNot affected
AlmaLinux 10tomcat9Fixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-admin-webappsFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-docs-webappFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-el-3.0-apiFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-jsp-2.3-apiFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-libFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-servlet-4.0-apiFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 10tomcat9-webappsFixed1:9.0.87-5.el10_0.1ALSA-2025:11332
AlmaLinux 9tomcatFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-admin-webappsFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-docs-webappFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-el-3.0-apiFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-jsp-2.3-apiFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-libFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-servlet-4.0-apiFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 9tomcat-webappsFixed1:9.0.87-3.el9_6.1ALSA-2025:11335
AlmaLinux 8tomcatFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-admin-webappsFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-docs-webappFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-el-3.0-apiFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-jsp-2.3-apiFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-libFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-servlet-4.0-apiFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
AlmaLinux 8tomcat-webappsFixed1:9.0.87-1.el8_10.4ALSA-2025:11333
Rocky Linux 10tomcat9Fixed1:9.0.87-5.el10_0.1RLSA-2025:11332
Rocky Linux 9tomcatFixed1:9.0.87-3.el9_6.1RLSA-2025:11335
Rocky Linux 8tomcatFixed1:9.0.87-1.el8_10.4RLSA-2025:11333
Maven libraryorg.apache.tomcat.embed:tomcat-embed-coreFixed10.1.34GHSA-27hp-xhwr-wr2m
Maven libraryorg.apache.tomcat:tomcat-catalinaFixed10.1.34GHSA-27hp-xhwr-wr2m
Maven libraryorg.apache.tomcat:tomcat-embed-coreFixed9.0.98GHSA-27hp-xhwr-wr2m

What the vendor says

As published in the CVE record by apache, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.