MODERATE 5.9

CVE-2021-24122

Information Disclosure in Apache Tomcat

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 Maven artifacts (1)

ArtifactAffected versionsFixed in
org.apache.tomcat.embed » tomcat-embed-core
>= 7.0.0, < 7.0.107>= 8.5.0, < 8.5.60>= 9.0.0, < 9.0.40>= 10.0.0-M1, < 10.0.0-M10
7.0.107, 8.5.60, 9.0.40, 10.0.0-M10

Blast radius

1affected artifacts
198affected versions
12,721dependent artifacts (est.)
317,089dependent versions

58% of the dependent artifacts (7,471) still pull an affected version in their latest release.

DepthDependent versions
Direct
9,815
2 hops
17,058
3 hops
135,051
4 hops
78,559
5 hops
58,539
6 hops
18,067

Most used dependents

Computed from the dependency graph of build 20261124.0621 (compile and runtime scopes, nearest version wins). Exclusions and dependency management in consuming projects are not applied, so dependents are potentially affected. When several artifacts are affected, a dependent version that pulls more than one of them is counted once per artifact.

References