Apache Tomcat information disclosure

Summary

CVECVE-2021-24122
StatePUBLISHED
Assignerapache
Source PriorityCVE Program / NVD first with legacy fallback
Published2021-01-14 15:15:13 UTC
Updated2026-08-25 16:28:27 UTC
DescriptionWhen 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.

Risk And Classification

Primary CVSS: v3.1 5.9 MEDIUM from [email protected]

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS: 0.228520000 probability, percentile 0.975600000 (date 2026-08-25)

Problem Types: CWE-200 | CWE-706 | CWE-200 CWE-200 Information Exposure


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary5.9MEDIUMCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
2.0[email protected]Primary4.3AV:N/AC:M/Au:N/C:P/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

CVSS v2.0 Breakdown

Access Vector
Network
Access Complexity
Medium
Authentication
None
Confidentiality
Partial
Integrity
None
Availability
None

AV:N/AC:M/Au:N/C:P/I:N/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Apache Tomcat 10.0.0 milestone1 All All
Application Apache Tomcat 10.0.0 milestone2 All All
Application Apache Tomcat 10.0.0 milestone3 All All
Application Apache Tomcat 10.0.0 milestone4 All All
Application Apache Tomcat 10.0.0 milestone5 All All
Application Apache Tomcat 10.0.0 milestone6 All All
Application Apache Tomcat 10.0.0 milestone7 All All
Application Apache Tomcat 10.0.0 milestone8 All All
Application Apache Tomcat 10.0.0 milestone9 All All
Application Apache Tomcat 9.0.0 milestone1 All All
Application Apache Tomcat 9.0.0 milestone10 All All
Application Apache Tomcat 9.0.0 milestone11 All All
Application Apache Tomcat 9.0.0 milestone12 All All
Application Apache Tomcat 9.0.0 milestone13 All All
Application Apache Tomcat 9.0.0 milestone14 All All
Application Apache Tomcat 9.0.0 milestone15 All All
Application Apache Tomcat 9.0.0 milestone16 All All
Application Apache Tomcat 9.0.0 milestone17 All All
Application Apache Tomcat 9.0.0 milestone18 All All
Application Apache Tomcat 9.0.0 milestone19 All All
Application Apache Tomcat 9.0.0 milestone2 All All
Application Apache Tomcat 9.0.0 milestone20 All All
Application Apache Tomcat 9.0.0 milestone21 All All
Application Apache Tomcat 9.0.0 milestone22 All All
Application Apache Tomcat 9.0.0 milestone23 All All
Application Apache Tomcat 9.0.0 milestone24 All All
Application Apache Tomcat 9.0.0 milestone25 All All
Application Apache Tomcat 9.0.0 milestone26 All All
Application Apache Tomcat 9.0.0 milestone27 All All
Application Apache Tomcat 9.0.0 milestone3 All All
Application Apache Tomcat 9.0.0 milestone4 All All
Application Apache Tomcat 9.0.0 milestone5 All All
Application Apache Tomcat 9.0.0 milestone6 All All
Application Apache Tomcat 9.0.0 milestone7 All All
Application Apache Tomcat 9.0.0 milestone8 All All
Application Apache Tomcat 9.0.0 milestone9 All All
Application Apache Tomcat All All All All
Application Apache Tomcat All All All All
Application Apache Tomcat All All All All
Operating System Debian Debian Linux 9.0 All All All
Application Oracle Agile Product Lifecycle Management 9.3.3 All All All
Application Oracle Agile Product Lifecycle Management 9.3.6 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 10 10.0.0-M10 custom Not specified
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 9 9.0.40 custom Not specified
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 8.5 8.5.60 custom Not specified
CNA Apache Software Foundation Apache Tomcat affected Apache Tomcat 7 7.0.106 custom Not specified

References

ReferenceSourceLinkTags
lists.apache.org/thread.html/rca833c6d42b7b9ce1563488c0929f29fcc95947d86e5e740... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
CVE-2021-24122 Apache Tomcat Vulnerability in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
lists.apache.org/thread.html/rb32a73b7cb919d4f44a2596b6b951274c0004fc8b0e393d6... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
Oracle Critical Patch Update Advisory - July 2021 af854a3a-2127-422b-91ae-364da2661108 www.oracle.com Third Party Advisory
oss-security - [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure af854a3a-2127-422b-91ae-364da2661108 www.openwall.com Mailing List, Third Party Advisory
[SECURITY] [DLA 2596-1] tomcat8 security update af854a3a-2127-422b-91ae-364da2661108 lists.debian.org Mailing List, Third Party Advisory
lists.apache.org/thread.html/r7e0bb9ea415724550e2b325e143b23e269579e54d66fcd77... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
lists.apache.org/thread.html/r7382e1e35b9bc7c8f320b90ad77e74c13172d08034e20c18... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
Pony Mail! af854a3a-2127-422b-91ae-364da2661108 lists.apache.org Mailing List, Vendor Advisory
lists.apache.org/thread.html/r776c64337495bf28b7d5597268114a888e3fad6045c40a0d... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea6... af854a3a-2127-422b-91ae-364da2661108 lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
Pony Mail! MITRE lists.apache.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

Discovery Credit

CNA: This issue was identified by Ilja Brander. (en)

Legacy QID Mappings

  • 150533 Apache Tomcat Information Disclosure Vulnerability (CVE-2021-24122)
  • 174906 SUSE Enterprise Linux Security Update for tomcat (SUSE-SU-2021:0989-1)
  • 174912 SUSE Enterprise Linux Security Update for tomcat (SUSE-SU-2021:1009-1)
  • 178492 Debian Security Update for tomcat8 (DLA 2596-1)
  • 179896 Debian Security Update for tomcat9 (CVE-2021-24122)
  • 239735 Red Hat Update for red hat jboss web server 5.4.1 (RHSA-2021:0494)
  • 356178 Amazon Linux Security Advisory for tomcat : ALASTOMCAT8.5-2023-010
  • 670219 EulerOS Security Update for tomcat (EulerOS-SA-2021-1856)
  • 670309 EulerOS Security Update for tomcat (EulerOS-SA-2021-1915)
  • 670677 EulerOS Security Update for tomcat (EulerOS-SA-2021-2435)
  • 750350 OpenSUSE Security Update for tomcat (openSUSE-SU-2021:0330-1)
  • 982594 Java (maven) Security Update for org.apache.tomcat.embed:tomcat-embed-core (GHSA-2rvv-w9r2-rg7m)

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report