CVE Catalog

CVE-2021-24122

MediumCVSS 5.9
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Very high risk
22.85%

98th percentile - higher than 98% of all known CVEs

Summary

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 are susceptible to JSP source code disclosure in some configurations when serving resources from a network location on the NTFS file system. The root cause is the unexpected behavior of the JRE API File.getCanonicalPath(), caused by inconsistent behavior of the Windows API (FindFirstFileW).

Risk Assessment

The risk is the possibility of exposing sensitive application source code, which could help an attacker find other vulnerabilities or bypass security controls.

Recommendation

Update Apache Tomcat to a patched version. Also, avoid serving resources from network locations on NTFS systems if possible.

Original NVD description (English source)

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 data from NVD (NIST) · CISA KEV · EPSS