5.9medium
Apache Tomcat information disclosure
- Severity
- 5.9medium CVSS:3.1 by NVD
- Exploit likelihood
- 22.5% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- apache
- Also known as
- GHSA-2rvv-w9r2-rg7mBIT-TOMCAT-2021-24122
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Apache Software Foundation Apache Tomcat | from Apache Tomcat 10 before 10.0.0-M10, from Apache Tomcat 9 before 9.0.40, from Apache Tomcat 8.5 before 8.5.60, from Apache Tomcat 7 before 7.0.106 | CVE List |
| org.apache.tomcat.embed:tomcat-embed-core (Maven) | from 10.0.0-M1 before 10.0.0-M10, from 9.0.0 before 9.0.40, from 8.5.0 before 8.5.60, from 7.0.0 before 7.0.107 | GitHub Advisory Database |
| apache tomcat | from 7.0.0 up to 7.0.106, from 8.5.0 up to 8.5.59, from 9.0.1 up to 9.0.39, 9.0.0, 10.0.0 | NVD |
| debian debian_linux | 9.0 | NVD |
| oracle agile_product_lifecycle_management | 9.3.3, 9.3.6 | NVD |
| tomcat (Bitnami) | from 7.0.0 before 7.0.107, from 8.5.0 before 8.5.60, from 9.0.1 before 9.0.40 | Bitnami Vulnerability Database |
All scores
| GitHub | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 4.3medium CVSS:2.0 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
What each source says
CVE List
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.
NVD (es)
Cuando se sirven recursos desde una ubicación de red usando el sistema de archivos NTFS, Apache Tomcat versiones 10.0.0-M1 hasta 10.0.0-M9, versiones 9.0.0.M1 hasta 9.0.39, versiones 8.5.0 hasta 8.5.59 y versiones 7.0.0 hasta 7.0.106, fueron susceptibles a una divulgación del código fuente JSP en algunas configuraciones. La causa raíz fue el comportamiento inesperado de la función File.getCanonicalPath() de la API JRE que a su vez fue causado por el comportamiento incoherente de la API de Windows (FindFirstFileW) en algunas circunstancias
Bitnami Vulnerability Database
When serving resources from a network location using the NTFS file system, Apache Tomcat versions 9.0.0 through 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.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-24122 changed 2026-10-08 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-2rvv-w9r2-rg7m changed 2026-08-07 | CC-BY-4.0 |
| NVD | CVE-2021-24122 changed 2026-10-08 | Public domain |
| Bitnami Vulnerability Database | BIT-TOMCAT-2021-24122 changed 2026-09-08 | Apache-2.0 |