Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability
Published 20 Dec 2024 · Updated 10 Sept 2026
Is your project on an affected org.apache.tomcat:tomcat-catalina?
Look after several Java apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected packages
- Affected
- >=11.0.0-M1 <11.0.2
- Fixed in
- 11.0.2
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=11.0.2 -DforceVersion=true- Affected
- >=10.1.0-M1 <10.1.34
- Fixed in
- 10.1.34
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-catalina -DdepVersion=10.1.34 -DforceVersion=true- Affected
- >=9.0.0.M1 <9.0.98
- Fixed in
- 9.0.98
mvn versions:use-dep-version -Dincludes=org.apache.tomcat:tomcat-embed-core -DdepVersion=9.0.98 -DforceVersion=true- Affected
- >=11.0.0-M1 <11.0.2
- Fixed in
- 11.0.2
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=11.0.2 -DforceVersion=true- Affected
- >=10.1.0-M1 <10.1.34
- Fixed in
- 10.1.34
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=10.1.34 -DforceVersion=true- Affected
- >=9.0.0.M1 <9.0.98
- Fixed in
- 9.0.98
mvn versions:use-dep-version -Dincludes=org.apache.tomcat.embed:tomcat-embed-core -DdepVersion=9.0.98 -DforceVersion=trueDetails
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 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.
Is GHSA-27hp-xhwr-wr2m in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected org.apache.tomcat:tomcat-catalina, and gives you the command that fixes it.
More advisories for org.apache.tomcat:tomcat-catalina
- CriticalCVE-2026-65905Apache Tomcat's DIGEST authenticator has an Authentication Bypass by Capture-replay vulnerability · 26 Aug 2026
- CriticalCVE-2026-65182Apache Tomcat has an Improper Access Control, Incorrect Authorization vulnerability · 26 Aug 2026
- CriticalCVE-2026-68525Apache Tomcat's FORM authentication process has an Incorrect Authorization vulnerability · 26 Aug 2026
- HighCVE-2026-55957Apache Tomcat has a Missing Critical Step in Authentication vulnerability · 29 Jun 2026
- HighCVE-2026-53404Apache Tomcat's rewrite valve has an Always-Incorrect Control Flow Implementation vulnerability · 29 Jun 2026
- MediumCVE-2026-55956Apache Tomcat has an Improper Authorization vulnerability · 29 Jun 2026
References
- Advisorynvd.nist.gov/vuln/detail/CVE-2024-56337
- Packagegithub.com/apache/tomcat
- Linklists.apache.org/thread/b2b9qrgjrz1kvo4ym8y2wkfdvwoq6qbp
- Linklists.debian.org/debian-lts-announce/2025/01/msg00009.html
- Linksecurity.netapp.com/advisory/ntap-20250103-0002
- Linktomcat.apache.org/security-10.html#Fixed_in_Apache_Tomcat_10.1.34
- Linktomcat.apache.org/security-11.html#Fixed_in_Apache_Tomcat_11.0.2
- Linktomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.98
- Linkwww.cve.org/CVERecord?id=CVE-2024-50379
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.