Skip to content
VulniPulse
UnratedApache Software Foundation

CVE-2021-24122: Apache Tomcat information disclosure

This Apache advisory covers CVE-2021-24122 in Apache Tomcat.

Open the Apache advisory

Key facts

CISA KEV
Not listed (catalogue checked )
Affected
Apache Tomcat Apache Tomcat 10 before 10.0.0-M10; Apache Tomcat Apache Tomcat 9 before 9.0.40; Apache Tomcat Apache Tomcat 8.5 before 8.5.60 and 1 more below
Fixed in
10.0.0-M10, 9.0.40, 8.5.60 and 1 more below
Source published
Source revised
Listed by VulniPulse

Compiled by VulniPulse from the linked sources. How records are collected and checked.

Affected products & platforms

Apache Software FoundationTomcat

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.

Text from the source record.

Affected versions
  • Apache Tomcat Apache Tomcat 10 before 10.0.0-M10
  • Apache Tomcat Apache Tomcat 9 before 9.0.40
  • Apache Tomcat Apache Tomcat 8.5 before 8.5.60
  • Apache Tomcat Apache Tomcat 7 before 7.0.106

Official advisory · medium-confidence parse· fetched ·verify at source

How to fix CVE-2021-24122

Upgrade to a fixed release named by Apache:

  • 10.0.0-M10
  • 9.0.40
  • 8.5.60
  • 7.0.106

Support dates for the fixed release lines

All end-of-life dates for Apache Tomcat

Apache Software Foundation advisories, January 2021All Apache Software Foundation advisories

Get an email when Apache Tomcat publishes the next one.

See Apache Tomcat's last 90 days of advisories first. Then choose one product with live alerts free for life, or a free month of real-time alerts on everything with the severity, the fixed version and the vendor's link (card needed, then US$15/month; we email you before the first charge).

Alert me about Apache Tomcat

iPhone and Android apps · New on the App Store

Monitor future Apache Software Foundation CVEs from your phone.

Choose a whole vendor or a precise platform, then receive matching security advisories by phone notification, email, or both. Coverage follows 34 official vendor sources and 160+ reviewed platform categories.