CVE-2021-24122: Apache Tomcat information disclosure
CVE-2021-24122 affects 12 listed versions of Apache Tomcat in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
Apache Tomcat
12 of 185 listed versions are affected. Fixed in 7.0.106. The newest release, 11.0.29, is not affected.
7.0.106 7.0.105 7.0.104 7.0.103 7.0.102 7.0.101 7.0.100 7.0.99 7.0.98 7.0.97 7.0.96 7.0.95
What it is
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.
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N (NVD)
Published by Apache Software Foundation on 14 January 2021. Last changed 8 October 2026.
Sources
Check one version you run: look CVE-2021-24122 up, or pick a product and version in the quick lookup.
Updated 2 December 2026.