VDB
KO
MEDIUM 5.9

GHSA-2rvv-w9r2-rg7m

Information Disclosure in Apache Tomcat

Quick fix

GHSA-2rvv-w9r2-rg7m — org.apache.tomcat.embed:tomcat-embed-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>10.0.0-M10</version> for org.apache.tomcat.embed:tomcat-embed-core

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven / org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 10.0.0-M1 Fixed in: 10.0.0-M10
Fix # pom.xml: bump <version>10.0.0-M10</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven / org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 9.0.0 Fixed in: 9.0.40
Fix # pom.xml: bump <version>9.0.40</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven / org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 8.5.0 Fixed in: 8.5.60
Fix # pom.xml: bump <version>8.5.60</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven / org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 7.0.0 Fixed in: 7.0.107
Fix # pom.xml: bump <version>7.0.107</version> for org.apache.tomcat.embed:tomcat-embed-core

References