High

Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability

  • Disclosed: 20.12.2024
  • Updated: 11.10.2026 13:20

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.

Affected software

Click a technology to see all vulnerabilities affecting it.

PlatformPackageVulnerable versionsFixed in
Java / Kotlin (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
Java / Kotlin (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
Java / Kotlin (Maven) org.apache.tomcat:tomcat-embed-core >= 9.0.0.M1, < 9.0.98 9.0.98

References

CVSS score -
CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U
Weakness (CWE)
CWE-367
Platform
Java / Kotlin (Maven)
Package
org.apache.tomcat.embed:tomcat-embed-core, org.apache.tomcat:tomcat-catalina, org.apache.tomcat:tomcat-embed-core
Disclosed
20.12.2024
Updated
11.10.2026 13:20

Sources and licenses

OSV / GitHub Advisory Database - GHSA-27hp-xhwr-wr2m - CC BY 4.0

Vulnerability history: org.apache.tomcat:tomcat-catalina

All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.

All (41) in the archive
Total entries
41
First → latest
05.2019 08.2026
Without a fix
0
Exploited in attacks
3

Severity breakdown

  • Critical 9
  • High 16
  • Medium 11
  • Low 5

Disclosures per year

  1. 2019: 1
  2. 2020: 1
  3. 2021: 0
  4. 2022: 8
  5. 2023: 6
  6. 2024: 3
  7. 2025: 11
  8. 2026: 11
Severity:
  1. Critical · 9.8 CVE-2026-65905 >= 11.0.0-M1, < 11.0.25, >= 10.1.0-M1, < 10.1.58, >= 9.0.0.M1, < 9.0.121, >= 8.5.0, <= 8.5.100, >= 7.0.30, <= 7.0.109 11.0.25, 10.1.58, 9.0.121
  2. Critical · 9.1 CVE-2026-65182 >= 11.0.0-M1, < 11.0.25, >= 10.1.0-M1, < 10.1.58, >= 9.0.0-M1, < 9.0.121, >= 8.5.0, <= 8.5.100, >= 7.0.0, <= 7.0.109 11.0.25, 10.1.58, 9.0.121
  3. Critical · 9.1 CVE-2026-68525 >= 11.0.0-M1, < 11.0.25, >= 10.1.0-M1, < 10.1.58, >= 9.0.0-M1, < 9.0.121, >= 8.5.0, <= 8.5.100, >= 7.0.0, <= 7.0.109 11.0.25, 10.1.58, 9.0.121
  4. High · 7.5 CVE-2026-41284 < 9.0.118, >= 10.1.0-M1, < 10.1.55, >= 11.0.0-M1, < 11.0.22 9.0.118, 10.1.55, 11.0.22
  5. Critical · 9.8 CVE-2026-43512 < 9.0.118, >= 10.1.0-M1, < 10.1.55, >= 11.0.0-M1, < 11.0.22 9.0.118, 10.1.55, 11.0.22
  6. High · 7.5 CVE-2026-43513 < 9.0.118, >= 10.1.0-M1, < 10.1.55, >= 11.0.0-M1, < 11.0.22 9.0.118, 10.1.55, 11.0.22
  7. Critical · 9.1 CVE-2026-43515 < 9.0.118, >= 10.1.0-M1, < 10.1.55, >= 11.0.0-M1, < 11.0.22 9.0.118, 10.1.55, 11.0.22
  8. High · 7.3 CVE-2026-42498 < 9.0.118, >= 10.1.0-M1, < 10.1.55, >= 11.0.0-M1, < 11.0.22 9.0.118, 10.1.55, 11.0.22
  9. High · 7.5 CVE-2026-34483 >= 9.0.40, < 9.0.116, >= 10.1.0-M1, < 10.1.54, >= 11.0.0-M1, < 11.0.21 9.0.116, 10.1.54, 11.0.21
  10. High · 7.5 CVE-2025-55752 >= 11.0.0-M1, < 11.0.11, >= 10.1.0-M1, < 10.1.45, >= 9.0.0-M11, < 9.0.109, >= 8.5.6, <= 8.5.100 11.0.11, 10.1.45, 9.0.109
  11. High · 7.5 CVE-2025-52520 >= 11.0.0-M1, < 11.0.9, >= 10.1.0-M1, < 10.1.43, >= 9.0.0.M1, < 9.0.107, >= 8.5.0, <= 8.5.100 11.0.9, 10.1.43, 9.0.107
  12. High · 7.5 CVE-2025-48988 >= 11.0.0-M1, < 11.0.8, >= 10.1.0-M1, < 10.1.42, >= 9.0.0.M1, < 9.0.106, >= 8.5.0, <= 8.5.100 11.0.8, 10.1.42, 9.0.106
  13. Critical · 9.8 Exploited in attacks CVE-2025-24813 >= 11.0.0-M1, < 11.0.3, >= 10.1.0-M1, < 10.1.35, >= 9.0.0.M1, < 9.0.99, >= 8.5.0, <= 8.5.100 11.0.3, 10.1.35, 9.0.99
  14. Apache Tomcat Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability this entry
    High CVE-2024-56337 >= 11.0.0-M1, < 11.0.2, >= 10.1.0-M1, < 10.1.34 11.0.2, 10.1.34
  15. High · 9.8 CVE-2024-50379 >= 11.0.0-M1, < 11.0.2, >= 10.1.0-M1, < 10.1.34, >= 9.0.0.M1, < 9.0.98, >= 8.5.0, <= 8.5.100 11.0.2, 10.1.34, 9.0.98
  16. Critical · 9.8 CVE-2024-52316 < 9.0.96, >= 10.1.0-M1, < 10.1.30, >= 11.0.0-M1, < 11.0.1 9.0.96, 10.1.30, 11.0.1
  17. High · 7.5 CVE-2023-46589 >= 11.0.0-M1, < 11.0.0-M11, >= 10.1.0-M1, < 10.1.16, >= 9.0.0-M1, < 9.0.83, >= 8.5.0, < 8.5.96 11.0.0-M11, 10.1.16, 9.0.83, 8.5.96
  18. High · 7.5 CVE-2023-24998 >= 10.1.0-M1, < 10.1.5, >= 11.0.0-M2, < 11.0.0-M5, >= 8.5.85, < 8.5.88, >= 9.0.0-M1, < 9.0.71 10.1.5, 11.0.0-M5, 8.5.88, 9.0.71
  19. High · 7.5 CVE-2022-45143 >= 10.1.0, < 10.1.2 10.1.2
  20. High · 7.5 CVE-2017-12616 >= 7.0.0, < 7.0.81 7.0.81
  21. High · 8.1 Exploited in attacks CVE-2017-12617 >= 9.0.0.M1, < 9.0.1, >= 8.5.0, < 8.5.23, >= 8.0.0-RC1, < 8.0.47, >= 7.0.0, < 7.0.82 9.0.1, 8.5.23, 8.0.47, 7.0.82
  22. Critical · 9.1 CVE-2017-5648 >= 9.0.0.M1, < 9.0.0.M18, >= 8.5.0, < 8.5.13, >= 8.0.0, < 8.0.42, >= 7.0.0, < 7.0.76 9.0.0.M18, 8.5.13, 8.0.42, 7.0.76
  23. High · 8.1 CVE-2016-5388 >= 7.0.0, < 7.0.72, >= 8.0.0, < 8.5.5 7.0.72, 8.5.5
  24. Critical · 9.8 Exploited in attacks CVE-2016-8735 < 6.0.48, >= 7.0.0, < 7.0.73, >= 8.0.0, < 8.0.39, >= 8.5.0, < 8.5.7, >= 9.0.0.M1, < 9.0.0.M12 6.0.48, 7.0.73, 8.0.39, 8.5.7, 9.0.0.M12
  25. High · 7.0 CVE-2020-9484 >= 10.0.0-M1, < 10.0.0-M5, >= 9.0.0, < 9.0.35, >= 8.0.0, < 8.5.55, >= 7.0.0, < 7.0.104 10.0.0-M5, 9.0.35, 8.5.55, 7.0.104

Know which vulnerabilities affect your application

With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.

Connect your application
DockRay newsletter

Application security in your inbox

Important vulnerabilities, actionable guidance and practical advice for your applications. Choose your technologies and follow what matters to your project.

  • A daily digest of new vulnerabilities, critical ones included.
  • Notifications about important updates.
  • Practical advice on application security and monitoring.

Leave empty to receive updates for every technology.

Free to subscribe. Unsubscribe with one click in any email.