CVE-2021-24122

MEDIUM CVSS 3.1: 5.9 EPSS 22.9%
Updated Oct 09, 2026
Apache
Parameter Value
CVSS 5.9 (MEDIUM)
Affected Versions 7.0.0 — 9.0.39
Type CWE-200 (Information Exposure), CWE-706
Vendor Apache
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
High
Difficult to exploit
Privileges Required
None
No privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
High
Complete data leak
Integrity
None
No data modification
Availability
None
No disruption

CVSS Vector v3.1

Vulnerable Products 42

Configuration From (including) Up to (excluding)
Apache Tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
7.0.0 <= 7.0.106
Apache Tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
8.5.0 <= 8.5.59
Apache Tomcat
cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
9.0.1 <= 9.0.39
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone1:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone10:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone11:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone12:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone13:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone14:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone15:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone16:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone17:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone18:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone19:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone2:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone20:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone21:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone22:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone23:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone24:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone25:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone26:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone27:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone3:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone4:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone5:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone6:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone7:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone8:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:9.0.0:milestone9:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone1:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone2:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone3:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone4:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone5:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone6:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone7:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone8:*:*:*:*:*:*
— —
Apache Tomcat
cpe:2.3:a:apache:tomcat:10.0.0:milestone9:*:*:*:*:*:*
— —
Debian Debian_Linux
cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
— —
Oracle Agile_Product_Lifecycle_Management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.3:*:*:*:*:*:*:*
— —
Oracle Agile_Product_Lifecycle_Management
cpe:2.3:a:oracle:agile_product_lifecycle_management:9.3.6:*:*:*:*:*:*:*
— —