Description
When serving resources from a network location using the NTFS file system, Apache Tomcat versions 10.0.0-M1 to 10.0.0-M9, 9.0.0.M1 to 9.0.39, 8.5.0 to 8.5.59 and 7.0.0 to 7.0.106 were susceptible to JSP source code disclosure in some configurations. The root cause was the unexpected behaviour of the JRE API File.getCanonicalPath() which in turn was caused by the inconsistent behaviour of the Windows API (FindFirstFileW) in some circumstances.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Apache Software Foundation | Apache Tomcat | Apache Tomcat 10 – < 10.0.0-M10, Apache Tomcat 9 – < 9.0.40, Apache Tomcat 8.5 – < 8.5.60, Apache Tomcat 7 – < 7.0.106 | 10.0.0-M10 |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | tomcat9 | 9.0.40-1 | — |
| Debian 13 | tomcat9 | 9.0.40-1 | — |
| Debian 12 | tomcat9 | 9.0.40-1 | — |
| Debian 9 | tomcat8 | 8.5.54-0+deb9u6 | DLA-2594-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | tomcat9 | No fix yet | — |
| Ubuntu Pro 18.04 LTS | tomcat8 +1 | No fix yet | — |
| Ubuntu Pro 16.04 LTS | tomcat7 +1 | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 14.04 LTS | tomcat7 | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat JBoss Web Server 5 | jws5-tomcat +9 | 9.0.36-9.redhat_8.1.el7jws | RHSA-2021:0494 |
| Red Hat JBoss Web Server 5 | jws5-tomcat-native | 1.2.25-3.redhat_3.el7jws | RHSA-2021:0494 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP2 | tomcat | 9.0.36-3.21.1 | SUSE-SU-2021:0531-1 |
| SLES 15 SP1 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
| SLES 15 | tomcat | 9.0.36-3.79.1 | SUSE-SU-2021:0989-1 |
| SLES 12 SP5 | tomcat | 9.0.36-3.61.1 | SUSE-SU-2026:1058-1, SUSE-SU-2021:0530-1 |
| SLES 11 SP4 | tomcat6 | 6.0.53-0.57.19.1 | SUSE-SU-2021:14705-1 |
Show 10 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 15 SP1 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
| SLES for SAP 15 | tomcat | 9.0.36-3.79.1 | SUSE-SU-2021:0989-1 |
| SLES for SAP 12 SP5 | tomcat | 9.0.36-3.61.1 | SUSE-SU-2021:0530-1 |
| SLE HPC 15 SP1 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
| SLE HPC 15 | tomcat | 9.0.36-3.79.1 | SUSE-SU-2021:0989-1 |
| SUSE Manager Server 4.0 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
| SUSE Manager Retail Branch Server 4.0 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
| SUSE Manager Proxy 4.0 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | tomcat6 | 6.0.53-0.57.19.1 | SUSE-SU-2021:14705-1 |
| SUSE Enterprise Storage 6 | tomcat | 9.0.36-4.58.1 | SUSE-SU-2021:1009-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | tomcat | 9.0.36-8.4 | openSUSE-SU-2024:11468-1 |
| openSUSE Tumbleweed | tomcat10 | 10.1.14-1.1 | openSUSE-SU-2024:13441-1 |
| openSUSE Leap 15.2 | tomcat | 9.0.36-lp152.2.19.1 | openSUSE-SU-2021:0330-1 |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2 | tomcat +9 | 7.0.76-10.amzn2.0.10 | ALAS2-2025-2812 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 10.0.0-M1, < 10.0.0-M10 | 10.0.0-M10 | GHSA-2rvv-w9r2-rg7m |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 9.0.0, < 9.0.40 | 9.0.40 | GHSA-2rvv-w9r2-rg7m |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 8.5.0, < 8.5.60 | 8.5.60 | GHSA-2rvv-w9r2-rg7m |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | >= 7.0.0, < 7.0.107 | 7.0.107 | GHSA-2rvv-w9r2-rg7m |
Advisories 15
- RHSA-2021:0494 Red Hat Security Advisory: Red Hat JBoss Web Server 5.4.1 Security Update Red Hat Security Advisories (RHSA) · Oct 2, 2026
- WID-SEC-2022-0607 Red Hat FUSE: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 9, 2026
- SUSE-SU-2026:1058-1 Security update for tomcat SUSE / openSUSE Security Updates · Mar 27, 2026
- WID-SEC-2023-2465 Apache Tomcat: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Mar 26, 2026
- DLA-2594-1 tomcat8 - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2021:0531-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:11468-1 tomcat-9.0.36-8.4 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:1009-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2024:13441-1 tomcat10-10.1.14-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0530-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2021:0330-1 Security update for tomcat SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:14705-1 Security update for tomcat6 SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2021:0989-1 Security update for tomcat SUSE / openSUSE Security Updates · May 2, 2025
- NCSC-2025-0123 Kwetsbaarheden verholpen in Oracle Database Producten NCSC-NL (Netherlands) · Apr 16, 2025
- ALAS2-2025-2812 Important: tomcat security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Apr 1, 2025
References
- https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.tomcat.apache.org%3E
- [tomcat-dev] 20210114 svn commit: r1885488 - in /tomcat/site/trunk: docs/security-10.html docs/security-7.html docs/security-8.html docs/security-9.html xdocs/security-10.xml xdocs/security-7.xml xdocs/security-8.xml xdocs/security-9.xml mailing-list
- [tomee-dev] 20210114 Re: Releases? mailing-list
- [oss-security] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure mailing-list
- [announce] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure mailing-list
- [tomcat-dev] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure mailing-list
- [tomcat-users] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure mailing-list
- [tomee-dev] 20210115 CVE-2021-24122 NTFS Information Disclosure Bug mailing-list
- [debian-lts-announce] 20210316 [SECURITY] [DLA 2596-1] tomcat8 security update mailing-list
- https://www.oracle.com//security-alerts/cpujul2021.html
- https://security.netapp.com/advisory/ntap-20210212-0008/