Skip to content
OpenAdvisories

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 products

VendorProductAffectedFixed
Apache Software Foundation Apache Tomcat 11.0.0-M1 – ≤ 11.0.1, 10.1.0-M1 – ≤ 10.1.33, 9.0.0.M1 – ≤ 9.0.97, 8.5.0 – ≤ 8.5.100 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 tomcat10 10.1.34-1 —
Debian 14 tomcat9 9.0.70-2 —
Debian 13 tomcat10 10.1.34-1 —
Debian 13 tomcat9 9.0.70-2 —
Debian 12 tomcat10 10.1.34-0+deb12u1 DSA-5845-1
Debian 12 tomcat9 9.0.70-2 —
Debian 11 tomcat9 9.0.43-2~deb11u11 DLA-4017-1
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS tomcat10 No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS tomcat9 No fix yet —
Ubuntu Pro 20.04 LTS tomcat9 No fix yet —
Ubuntu Pro 18.04 LTS tomcat8 +1 No fix yet —
Ubuntu Pro 16.04 LTS tomcat8 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 10 tomcat +7 1:10.1.36-1.el10_0 RHSA-2025:7497
RHEL 10 tomcat9 +7 1:9.0.87-5.el10_0.1 RHSA-2025:11332
RHEL 9 tomcat +7 1:9.0.87-3.el9_6.1 RHSA-2025:11335
RHEL 8 tomcat +7 1:9.0.87-1.el8_10.4 RHSA-2025:11333
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.4 EUS tomcat +7 1:9.0.87-1.el9_4.4 RHSA-2025:11334
RHEL 9.2 E4S tomcat +7 1:9.0.87-1.el9_2.4 RHSA-2025:11381
RHEL 8.8 TUS tomcat +7 1:9.0.87-1.el8_8.5 RHSA-2025:11382
RHEL 8.8 E4S tomcat +7 1:9.0.87-1.el8_8.5 RHSA-2025:11382
Red Hat JBoss Web Server 5 jws5-tomcat +11 9.0.87-11.redhat_00010.1.el7jws RHSA-2025:4521

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 tomcat9 +7 1:9.0.87-5.el10_0.1 ALSA-2025:11332
AlmaLinux 9 tomcat +7 1:9.0.87-3.el9_6.1 ALSA-2025:11335
AlmaLinux 8 tomcat +7 1:9.0.87-1.el8_10.4 ALSA-2025:11333

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 tomcat9 1:9.0.87-5.el10_0.1 RLSA-2025:11332
Rocky Linux 9 tomcat 1:9.0.87-3.el9_6.1 RLSA-2025:11335
Rocky Linux 8 tomcat 1:9.0.87-1.el8_10.4 RLSA-2025:11333
ReleasePackageFixed inAdvisory
SLES 15 SP6 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLES 15 SP6 tomcat10 10.1.34-150200.5.31.1 SUSE-SU-2025:1024-1, SUSE-SU-2025:0033-1
SLES 15 SP5 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLES 15 SP5 tomcat10 10.1.34-150200.5.31.1 SUSE-SU-2025:1024-1, SUSE-SU-2025:0033-1
SLES 15 SP4 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLES 15 SP3 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP5 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLES for SAP 15 SP5 tomcat10 10.1.34-150200.5.31.1 SUSE-SU-2025:1024-1, SUSE-SU-2025:0033-1
SLES for SAP 15 SP4 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLES for SAP 15 SP3 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLE HPC 15 SP5 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLE HPC 15 SP5 tomcat10 10.1.34-150200.5.31.1 SUSE-SU-2025:1024-1, SUSE-SU-2025:0033-1
SLE HPC 15 SP4 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SLE HPC 15 SP3 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SUSE Manager Server 4.3 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
SUSE Enterprise Storage 7.1 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed tomcat 9.0.99-1.1 openSUSE-SU-2025:14896-1
openSUSE Tumbleweed tomcat10 10.1.35-1.1 openSUSE-SU-2025:14897-1
openSUSE Leap 15.6 tomcat 9.0.98-150200.74.1 SUSE-SU-2025:1126-1, SUSE-SU-2025:0058-1
openSUSE Leap 15.6 tomcat10 10.1.34-150200.5.31.1 SUSE-SU-2025:1024-1, SUSE-SU-2025:0033-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 tomcat10 +7 1:10.1.34-1.amzn2023.0.1 ALAS2023-2025-814
Amazon Linux 2023 tomcat9 +7 1:9.0.98-1.amzn2023.0.1 ALAS2023-2025-813

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 tomcat9 +7 1:9.0.87-5.el10_0.1 ELSA-2025-11332
Oracle Linux 9 tomcat +7 1:9.0.87-3.el9_6.1 ELSA-2025-11335
Oracle Linux 8 tomcat +7 1:9.0.87-1.el8_10.4 ELSA-2025-11333

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling thingsboard +4 3.9-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.tomcat:tomcat-catalina >= 11.0.0-M1, < 11.0.2 11.0.2 GHSA-27hp-xhwr-wr2m
Maven org.apache.tomcat:tomcat-catalina >= 10.1.0-M1, < 10.1.34 10.1.34 GHSA-27hp-xhwr-wr2m
Maven org.apache.tomcat:tomcat-embed-core >= 9.0.0.M1, < 9.0.98 9.0.98 GHSA-27hp-xhwr-wr2m
Maven org.apache.tomcat.embed:tomcat-embed-core >= 11.0.0-M1, < 11.0.2 11.0.2 GHSA-27hp-xhwr-wr2m
Maven org.apache.tomcat.embed:tomcat-embed-core >= 10.1.0-M1, < 10.1.34 10.1.34 GHSA-27hp-xhwr-wr2m
Maven org.apache.tomcat.embed:tomcat-embed-core >= 9.0.0.M1, < 9.0.98 9.0.98 GHSA-27hp-xhwr-wr2m

Advisories 42

References