Vulnerabilities

CVE-2021-24122

Medium 5.9 CVSS 3.1

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.

Description as published by the source, in English.

Key facts

Published
2021-01-14
Last modified
2026-10-08
Assigned by
security@apache.org
CVSS vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Scored by
nvd@nist.gov (NVD Primary)
Probability of exploitation
22.9 % higher than 98 % of all known vulnerabilities
EPSS, next 30 days, model v2026.06.15
Fix available
Not registered in the sources

Affected products

Vendor Product Versions Status
Apache Tomcat 10.0.0 Affected
Apache Tomcat 9.0.0 Affected
Apache Tomcat ≥ 7.0.0, ≤ 7.0.106 Affected
Apache Tomcat ≥ 8.5.0, ≤ 8.5.59 Affected
Apache Tomcat ≥ 9.0.1, ≤ 9.0.39 Affected
Debian Debian Linux 9.0 Affected
Oracle Agile Product Lifecycle Management 9.3.3 Affected
Oracle Agile Product Lifecycle Management 9.3.6 Affected

Weakness type

Attack techniques

Derived through the weakness type: CVE to CWE to CAPEC to ATT&CK. This shows which techniques the weakness class is historically used for. It does not assert that this vulnerability has been exploited that way.

  • T1007: System Service Discovery discovery
  • T1016: System Network Configuration Discovery discovery
  • T1018: Remote System Discovery discovery
  • T1033: System Owner/User Discovery discovery
  • T1036: Masquerading stealth
  • T1036.005: Match Legitimate Resource Name or Location stealth
  • T1046: Network Service Discovery discovery
  • T1049: System Network Connections Discovery discovery
  • T1057: Process Discovery discovery
  • T1069: Permission Groups Discovery discovery
  • T1082: System Information Discovery discovery
  • T1083: File and Directory Discovery discovery
  • T1087: Account Discovery discovery
  • T1111: Multi-Factor Authentication Interception credential-access
  • T1120: Peripheral Device Discovery discovery
  • T1124: System Time Discovery discovery
  • T1134.001: Token Impersonation/Theft stealth, privilege-escalation
  • T1135: Network Share Discovery discovery
  • T1217: Browser Information Discovery discovery
  • T1550.004: Web Session Cookie lateral-movement

References

Related at Berigo

Articles

Does this affect you?

A vulnerability matters only if you run the product, in an affected version, somewhere an attacker can reach.

Check your asset list Browse all vulnerabilities