Skip to content
OpenAdvisories
Medium · 5.9 CVE-2021-24122 BIT-tomcat-2021-24122EUVD-2021-0906GHSA-2rvv-w9r2-rg7m

Apache Tomcat information disclosure

Published Jan 14, 2021 · Updated Oct 8, 2026 · Assigned by apache

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

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

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
Ubuntu Pro 14.04 LTS tomcat7 No fix yet —
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
Amazon Linux 2 tomcat +9 7.0.76-10.amzn2.0.10 ALAS2-2025-2812

Affected packages

EcosystemPackageAffectedFixedRecord
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

References