CVE-2021-24122: Apache Tomcat information disclosure
This Apache advisory covers CVE-2021-24122 in Apache Tomcat.
- CVE-2021-24122
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
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.
- 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
- Apache Tomcat 10.0: support ended
- Apache Tomcat 9.0: support ends
- Apache Tomcat 8.5: support ended
- Apache Tomcat 7: support ended
More Apache Software Foundation advisories
CVE-2026-103119Oct 20, 2026Buffer under-read vulnerability in Apache Tomcat meantCVE-2026-101356Oct 20, 2026Incorrect object recycling and re-use vulnerability in Apache TomcatCVE-2026-101296Oct 20, 2026Apache Tomcat: JNDIRealm bind credential validation fails open for non-GSSAPI SASLCVE-2026-93446Oct 20, 2026Apache Tomcat: Possible TLS 1.3 connection failuresCVE-2026-88041Oct 20, 2026Apache Tomcat: HTTP/2 trailer header cross-contaminationCVE-2026-80353Oct 20, 2026Apache Tomcat: TOCTOU
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).
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.