Vulnerability · Published Jan 14, 2021 · Assigned by apache

CVE-2021-24122Apache Tomcat information disclosure

Medium 5.9

In plain English

A medium-severity information exposure in Apache Tomcat from Apache Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 22.9% (higher than 98% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS NVD)5.9Medium
Exploit odds (30 days)22.9%top 2.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12tomcat99.0.40-1DEBIAN-CVE-2021-24122
Debian:13tomcat99.0.40-1DEBIAN-CVE-2021-24122
Debian:14tomcat99.0.40-1DEBIAN-CVE-2021-24122
Mavenorg.apache.tomcat.embed:tomcat-embed-core10.0.0-M10GHSA-2rvv-w9r2-rg7m
Mavenorg.apache.tomcat.embed:tomcat-embed-core7.0.107GHSA-2rvv-w9r2-rg7m
Mavenorg.apache.tomcat.embed:tomcat-embed-core9.0.40GHSA-2rvv-w9r2-rg7m
Mavenorg.apache.tomcat.embed:tomcat-embed-core8.5.60GHSA-2rvv-w9r2-rg7m

Affected products (as reported)

VendorProductVersions
Apache Software Foundation Apache Tomcat Apache Tomcat 10 – before 10.0.0-M10Apache Tomcat 9 – before 9.0.40Apache Tomcat 8.5 – before 8.5.60Apache Tomcat 7 – before 7.0.106

Weakness: CWE-200

References