CVE-2021-24122Apache Tomcat information disclosure
- 5.9MediumCVSS base score
- 22.9%Exploitation in 30 daysEPSS · top 2.2% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By apache
Published
- 6 years later
· 6 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.1 | Medium5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 22.9% · top 2.2% of all CVEs (19 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Affected products
Apache Software Foundation · Apache Tomcat
- affected Apache Tomcat 10 – < 10.0.0-M10
- affected Apache Tomcat 9 – < 9.0.40
- affected Apache Tomcat 8.5 – < 8.5.60
- affected Apache Tomcat 7 – < 7.0.106
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.apache.tomcat.embed:tomcat-embed-coreGHSA-2rvv-w9r2-rg7m (opens in a new tab)
References
References11
- https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.tomcat.apache.org%3E (opens in a new tab)x_refsource_MISCmailing-listx_refsource_MLISTx_transferred
- [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 (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-dev] 20210114 Re: Releases? (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [oss-security] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [announce] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-dev] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomcat-users] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [tomee-dev] 20210115 CVE-2021-24122 NTFS Information Disclosure Bug (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- [debian-lts-announce] 20210316 [SECURITY] [DLA 2596-1] tomcat8 security update (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- https://www.oracle.com//security-alerts/cpujul2021.html (opens in a new tab)x_refsource_MISCx_transferred
- https://security.netapp.com/advisory/ntap-20210212-0008/ (opens in a new tab)x_refsource_CONFIRMx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2021-0906 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-2rvv-w9r2-rg7m (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-24122)Record last updated .