CVE-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.
How to fix
- org.apache.tomcat.embed:tomcat-embed-core10.0.0-M10, 9.0.40, 8.5.60, 7.0.107 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| apache tomcat | 7.0.0 ≤ v ≤ 7.0.106, 8.5.0 ≤ v ≤ 8.5.59, 9.0.1 ≤ v ≤ 9.0.39, 9.0.0, 10.0.0 | — |
| debian debian_linux | 9.0 | — |
| oracle agile_product_lifecycle_management | 9.3.3, 9.3.6 | — |
| org.apache.tomcat.embed:tomcat-embed-coreMaven | 10.0.0-M1 ≤ v < 10.0.0-M10, 9.0.0 ≤ v < 9.0.40, 8.5.0 ≤ v < 8.5.60, 7.0.0 ≤ v < 7.0.107 | 10.0.0-M10, 9.0.40, 8.5.60, 7.0.107 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.