Skip to content
Fencer Vulns
critical 9.8

CVE-2024-56337 json

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

published 2024-12-20 22 mo ago modified 2026-09-10 1 mo ago also BIT-tomcat-2024-56337 , EUVD-2024-3542 , GHSA-27hp-xhwr-wr2m

cvss
9.8
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
9.0%
EPSS 9.0% chance of exploitation in 30 days, percentile 95%
public exploits
0
none known

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

Patch / fix

  • maven org.apache.tomcat:tomcat-catalina 10.1.34, 11.0.2
  • maven org.apache.tomcat:tomcat-embed-core 9.0.98
  • maven org.apache.tomcat.embed:tomcat-embed-core 9.0.98, 10.1.34, 11.0.2
  • bitnami tomcat 9.0.98, 10.1.34, 11.0.2
  • apache tomcat-catalina 9.0.98, 10.1.34, 11.0.2
  • apache tomcat 9.0.98, 10.1.34, 11.0.2
  • org.apache.tomcat tomcat-catalina 9.0.98, 10.1.34, 11.0.2
  • apache tomcat-embed-core 9.0.98, 10.1.34, 11.0.2
  • org.apache.tomcat.embed tomcat-embed-core 9.0.98, 10.1.34, 11.0.2
  • tomcat9 Debian 14, Debian 13, Debian 12 9.0.70-2
  • tomcat10 Debian 12 10.1.34-0+deb12u1
  • tomcat10 Debian 14, Debian 13 10.1.34-1

debian advisories DEBIAN-CVE-2024-56337

  • tomcat RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-lib RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-webapps RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-el-3.0-api RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-docs-webapp RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-jsp-2.3-api RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-admin-webapps RHEL 9 1:9.0.87-3.el9_6.1
  • tomcat-servlet-4.0-api RHEL 9 1:9.0.87-3.el9_6.1

red hat advisories RHSA-2025:11381RHSA-2025:11382RHSA-2025:11334RHSA-2025:11335RHSA-2025:11332RHSA-2025:11333

  • tomcat SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 9.0.102-150200.78.1
  • tomcat10 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Module for Web and Scripting 15 SP6 +3 more 10.1.39-150200.5.36.1
  • tomcat SLES for SAP 15 SP5, SLES for SAP 15 SP4, SLES for SAP 15 SP3 +12 more 9.0.98-150200.74.1
  • tomcat10 SLES for SAP 15 SP5, SLES 15 SP5-LTSS, SLE Module for Web and Scripting 15 SP6 +3 more 10.1.34-150200.5.31.1

suse advisories SUSE-SU-2025:1126-1SUSE-SU-2025:1024-1SUSE-SU-2025:0058-1SUSE-SU-2025:0033-1

  • tomcat openSUSE Tumbleweed 9.0.99-1.1
  • tomcat10 openSUSE Tumbleweed 10.1.35-1.1

opensuse advisories openSUSE-SU-2025:14896-1openSUSE-SU-2025:14897-1

  • tomcat9 AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-lib AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-webapps AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-el-3.0-api AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-docs-webapp AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-jsp-2.3-api AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-admin-webapps AlmaLinux 10 1:9.0.87-5.el10_0.1
  • tomcat9-servlet-4.0-api AlmaLinux 10 1:9.0.87-5.el10_0.1

almalinux advisories ALSA-2025:11332ALSA-2025:11333ALSA-2025:11335

  • tomcat Rocky Linux 9 1:9.0.87-3.el9_6.1
  • tomcat9 Rocky Linux 10 1:9.0.87-5.el10_0.1
  • tomcat Rocky Linux 8 1:9.0.87-1.el8_10.4

rocky linux advisories RLSA-2025:11335RLSA-2025:11332RLSA-2025:11333

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-56337 updated cvss 8.1

tomcat: Incomplete fix for CVE-2024-50379 - RCE due to TOCTOU issue in JSP compilation

  • Red Hat Enterprise Linux 8 pki-servlet-engine, pki-servlet-4.0-api Red Hat Enterprise Linux 9 pki-servlet-engine, pki-servlet-4.0-api
    affected: workaround, no fix planned “Will not fix”
  • Red Hat JBoss Web Server 6 tomcat
    affected: workaround, no fix available “Fix deferred”
  • Red Hat Enterprise Linux AppStream (v. 8) tomcat 9.0.87-1.el8_10.4, tomcat-lib 9.0.87-1.el8_10.4, tomcat-webapps 9.0.87-1.el8_10.4, tomcat-el-3.0-api 9.0.87-1.el8_10.4, tomcat-docs-webapp 9.0.87-1.el8_10.4, tomcat-jsp-2.3-api 9.0.87-1.el8_10.4, +2 more
    fixed: vendor fix RHSA-2025:11333
  • Red Hat Enterprise Linux AppStream (v. 9) tomcat 9.0.87-3.el9_6.1, tomcat-lib 9.0.87-3.el9_6.1, tomcat-webapps 9.0.87-3.el9_6.1, tomcat-el-3.0-api 9.0.87-3.el9_6.1, tomcat-docs-webapp 9.0.87-3.el9_6.1, tomcat-jsp-2.3-api 9.0.87-3.el9_6.1, +2 more
    fixed: vendor fix RHSA-2025:11335
  • Red Hat Enterprise Linux AppStream (v. 10) tomcat 10.1.36-1.el10_0, tomcat9 9.0.87-5.el10_0.1, tomcat-lib 10.1.36-1.el10_0, tomcat9-lib 9.0.87-5.el10_0.1, tomcat-webapps 10.1.36-1.el10_0, tomcat9-webapps 9.0.87-5.el10_0.1, +10 more
    fixed: vendor fix RHSA-2025:7497
  • Red Hat Enterprise Linux AppStream E4S (v.8.8) tomcat 9.0.87-1.el8_8.5, tomcat-lib 9.0.87-1.el8_8.5, tomcat-webapps 9.0.87-1.el8_8.5, tomcat-el-3.0-api 9.0.87-1.el8_8.5, tomcat-docs-webapp 9.0.87-1.el8_8.5, tomcat-jsp-2.3-api 9.0.87-1.el8_8.5, +2 more
    fixed: vendor fix RHSA-2025:11382
  • Red Hat Enterprise Linux AppStream E4S (v.9.2) tomcat 9.0.87-1.el9_2.4, tomcat-lib 9.0.87-1.el9_2.4, tomcat-webapps 9.0.87-1.el9_2.4, tomcat-el-3.0-api 9.0.87-1.el9_2.4, tomcat-docs-webapp 9.0.87-1.el9_2.4, tomcat-jsp-2.3-api 9.0.87-1.el9_2.4, +2 more
    fixed: vendor fix RHSA-2025:11381
  • Red Hat Enterprise Linux AppStream EUS (v.9.4) tomcat 9.0.87-1.el9_4.4, tomcat-lib 9.0.87-1.el9_4.4, tomcat-webapps 9.0.87-1.el9_4.4, tomcat-el-3.0-api 9.0.87-1.el9_4.4, tomcat-docs-webapp 9.0.87-1.el9_4.4, tomcat-jsp-2.3-api 9.0.87-1.el9_4.4, +2 more
    fixed: vendor fix RHSA-2025:11334
show 4 more
  • Red Hat Enterprise Linux AppStream TUS (v.8.8) tomcat 9.0.87-1.el8_8.5, tomcat-lib 9.0.87-1.el8_8.5, tomcat-webapps 9.0.87-1.el8_8.5, tomcat-el-3.0-api 9.0.87-1.el8_8.5, tomcat-docs-webapp 9.0.87-1.el8_8.5, tomcat-jsp-2.3-api 9.0.87-1.el8_8.5, +2 more
    fixed: vendor fix RHSA-2025:11382
  • Red Hat JBoss Web Server 5
    fixed: vendor fix RHSA-2025:4522
  • Red Hat JBoss Web Server 5.8 for RHEL 7 Server jws5-tomcat 9.0.87-11.redhat_00010.1.el7jws, jws5-tomcat-lib 9.0.87-11.redhat_00010.1.el7jws, jws5-tomcat-javadoc 9.0.87-11.redhat_00010.1.el7jws, jws5-tomcat-selinux 9.0.87-11.redhat_00010.1.el7jws, jws5-tomcat-webapps 9.0.87-11.redhat_00010.1.el7jws, jws5-tomcat-java-jdk8 9.0.87-11.redhat_00010.1.el7jws, +6 more Red Hat JBoss Web Server 5.8 for RHEL 8 jws5-tomcat 9.0.87-11.redhat_00010.1.el8jws, jws5-tomcat-lib 9.0.87-11.redhat_00010.1.el8jws, jws5-tomcat-javadoc 9.0.87-11.redhat_00010.1.el8jws, jws5-tomcat-selinux 9.0.87-11.redhat_00010.1.el8jws, jws5-tomcat-webapps 9.0.87-11.redhat_00010.1.el8jws, jws5-tomcat-el-3.0-api 9.0.87-11.redhat_00010.1.el8jws, +4 more Red Hat JBoss Web Server 5.8 for RHEL 9 jws5-tomcat 9.0.87-11.redhat_00010.1.el9jws, jws5-tomcat-lib 9.0.87-11.redhat_00010.1.el9jws, jws5-tomcat-javadoc 9.0.87-11.redhat_00010.1.el9jws, jws5-tomcat-selinux 9.0.87-11.redhat_00010.1.el9jws, jws5-tomcat-webapps 9.0.87-11.redhat_00010.1.el9jws, jws5-tomcat-el-3.0-api 9.0.87-11.redhat_00010.1.el9jws, +4 more
    fixed: vendor fix RHSA-2025:4521
  • Red Hat Enterprise Linux 6 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-2.1-api, +4 more Red Hat Enterprise Linux 7 tomcat, tomcat-lib, tomcat-jsvc, tomcat-javadoc, tomcat-webapps, tomcat-el-2.2-api, +4 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
yes
Technical impact
total
Assessed
14 mo ago

Exploit prediction

8.97% chance of exploitation in the next 30 days, higher than 95% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CISA ADP 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CNA 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV 3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Affected packages

ecosystem package affected fixed in
maven org.apache.tomcat:tomcat-catalina
>=11.0.0-M1, <11.0.2
>=10.1.0-M1, <10.1.34
11.0.2
10.1.34
maven org.apache.tomcat:tomcat-embed-core
>=9.0.0.M1, <9.0.98
9.0.98
maven org.apache.tomcat.embed:tomcat-embed-core
>=11.0.0-M1, <11.0.2
>=10.1.0-M1, <10.1.34
>=9.0.0.M1, <9.0.98
11.0.2
10.1.34
9.0.98
bitnami tomcat
<9.0.98
>=10.0.0, <10.1.34
>=11.0.0, <11.0.2
9.0.98
10.1.34
11.0.2

Affected products

  • Apache Software Foundation Apache Tomcat

Classification

Weakness
  • CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.

CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.