CVE-2021-24122: Apache Tomcat information disclosure
Vulnerability summary
CVE-2021-24122 is a medium (CVSS 5.9) vulnerability in apache software foundation apache tomcat. EPSS estimates a 22.85% chance of exploitation in the next 30 days, higher than 97.7% of scored vulnerabilities.
Not severe (CVSS 5.9, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 8 · Related 8Timeline
- 14-01-2021PublishedVulnerability first disclosed.
- 08-10-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
5 scores · 4 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- OSV · MavenEcosystem advisory · calculated5.9MediumCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS trend
Probability
22.85%
Chance of exploitation in the next 30 days
Percentile
98%
Versus all other CVEs
30-day change
No change 0.00 pp
From 22.85% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-200Exposure of Sensitive Information to an Unauthorized ActorThe product exposes sensitive information to an actor that is not explicitly authorized to have access to that information.
- CWE-706Use of Incorrectly-Resolved Name or ReferenceThe product uses a name or reference to access a resource, but the name/reference resolves to a resource that is outside of the intended control sphere.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Suse3 products
- tomcat&distro=SUSE Linux Enterprise Module for Web and Scripting 15 SP2< 9.0.36-3.21.1
- tomcat&distro=SUSE Linux Enterprise Server 12 SP5< 9.0.36-3.61.1
- tomcat&distro=SUSE Linux Enterprise Server for SAP Applications 12 SP5< 9.0.36-3.61.1
Ubuntu3 products
- tomcat7All versions (No fix recorded)
- tomcat8All versions (No fix recorded)
- tomcat9All versions (No fix recorded)
Debian2 products
- tomcat9< 9.0.40-1
- debian_linuxEOL9.0
Apache1 product
- tomcatEOL≥ 7.0.0, ≤ 7.0.106 | ≥ 8.5.0, ≤ 8.5.59 | ≥ 9.0.1, ≤ 9.0.39 | 9.0.0:milestone1 | 9.0.0:milestone10 | 9.0.0:milestone11 | 9.0.0:milestone12 | 9.0.0:milestone13 | 9.0.0:milestone14 | 9.0.0:milestone15 | 9.0.0:milestone16 | 9.0.0:milestone17 | 9.0.0:milestone18 | 9.0.0:milestone19 | 9.0.0:milestone2 | 9.0.0:milestone20 | 9.0.0:milestone21 | 9.0.0:milestone22 | 9.0.0:milestone23 | 9.0.0:milestone24 | 9.0.0:milestone25 | 9.0.0:milestone26 | 9.0.0:milestone27 | 9.0.0:milestone3 | 9.0.0:milestone4 | 9.0.0:milestone5 | 9.0.0:milestone6 | 9.0.0:milestone7 | 9.0.0:milestone8 | 9.0.0:milestone9 | 10.0.0:milestone1 | 10.0.0:milestone2 | 10.0.0:milestone3 | 10.0.0:milestone4 | 10.0.0:milestone5 | 10.0.0:milestone6 | 10.0.0:milestone7 | 10.0.0:milestone8 | 10.0.0:milestone9
Apache software foundation1 product
- 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
Mageia1 product
- tomcat< 9.0.39-1.1.mga7
Opensuse1 product
- tomcat&distro=openSUSE Leap 15.2< 9.0.36-lp152.2.19.1
Oracle1 product
- agile_product_lifecycle_management9.3.3 | 9.3.6
Org.apache.tomcat.embed1 product
- tomcat-embed-core≥ 10.0.0-M1, < 10.0.0-M10 | ≥ 9.0.0, < 9.0.40 | ≥ 8.5.0, < 8.5.60 | ≥ 7.0.0, < 7.0.107
9 vendors · 14 products
References
41 links- www.openwall.com/lists/oss-security/2021/01/14/1Mailing ListX Refsource MLISTWEBThird Party Advisory
- lists.debian.org/debian-lts-announce/2021/03/msg00018.htmlMailing ListX Refsource MLISTWEBThird Party Advisory
Show all 41 references
- lists.opensuse.org/archives/…Advisory
- github.com/apache/tomcatPACKAGE