Information disclosure in Apache Tomcat
CVE-2021-24122
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.
Vulnerability class: Information Disclosure
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.229, 97.8th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Apache Tomcat — versions 9.0.0, 10.0.0
- Apache Software Foundation Tomcat — versions Apache Tomcat 10, Apache Tomcat 9, Apache Tomcat 8.5
- Oracle Agile Product Lifecycle Management — versions 9.3.3, 9.3.6
- Debian Linux — versions 9.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 15 other repositories (0day404/vulnerability-poc, ARPSyndicate/cvemon, ArrestX/--POC, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64… (Mailing List, Vendor Advisory)
- [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 (mailing-list)
- [tomee-dev] 20210114 Re: Releases? (mailing-list)
- [oss-security] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (mailing-list, Mailing List, Third Party Advisory)
- [announce] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (mailing-list)
- [tomcat-dev] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (mailing-list)
- [tomcat-users] 20210114 [SECURITY] CVE-2021-24122 Apache Tomcat Information Disclosure (mailing-list)
- [tomee-dev] 20210115 CVE-2021-24122 NTFS Information Disclosure Bug (mailing-list)
- [debian-lts-announce] 20210316 [SECURITY] [DLA 2596-1] tomcat8 security update (mailing-list, Mailing List, Third Party Advisory)
- www.oracle.com//security-alerts/cpujul2021.html (Third Party Advisory)