CVE-2021-24122 - CVE House
Back to Database
Status published Medium CVE-2021-24122

Apache Tomcat information disclosure

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2021-24122

Credits & Attribution

The following person or organization is credited with identifying this vulnerability, as recorded in the NVD database:

  • This issue was identified by Ilja Brander.

Affected Vendor

Apache Software Foundation

View all reports →

Affected Software

Apache Tomcat
Vulnerable Versions:
Apache Tomcat 10, Apache Tomcat 9, Apache Tomcat 8.5, Apache Tomcat 7

Timeline

Official Publish: January 14th, 2021
Last Modified: February 13th, 2025
Added to House: July 21st, 2026

CVSS Vectors

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

Weaknesses (CWE)