CVE-2021-24122
Java vulnerability analysis and mitigation

Overview

CVE-2021-24122 is a vulnerability discovered in Apache Tomcat affecting 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. The vulnerability was disclosed on January 14, 2021, and involves JSP source code disclosure when serving resources from a network location using the NTFS file system (Apache Security).

Technical details

The vulnerability stems from unexpected behavior of the JRE API File.getCanonicalPath() which was caused by inconsistent behavior of the Windows API (FindFirstFileW) in certain circumstances. This could lead to security constraint bypasses and exposure of JSP source code when specific configurations are used (Apache Security, Rapid7).

Impact

When successfully exploited, the vulnerability allows attackers to bypass security constraints and view the source code for JSPs in certain configurations. This information disclosure vulnerability could potentially expose sensitive application logic and security mechanisms (Apache Security).

Mitigation and workarounds

Users should upgrade to Apache Tomcat versions 10.0.0-M10 or later, 9.0.40 or later, 8.5.60 or later, or 7.0.107 or later. These versions contain the necessary security fixes to address the vulnerability (Apache Security).

Additional resources


SourceThis report was generated using AI

Related Java vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-62249MEDIUM6.9
  • JavaJava
  • cpe:2.3:a:liferay:liferay_portal
NoYesOct 21, 2025
CVE-2025-62250MEDIUM6.9
  • JavaJava
  • com.liferay:com.liferay.portal.cluster.multiple
NoYesOct 21, 2025
GHSA-gr7h-xw4f-wh86LOW2.6
  • JavaJava
  • org.sakaiproject.kernel:sakai-kernel-impl
NoNoOct 22, 2025
CVE-2025-11965N/AN/A
  • JavaJava
  • io.vertx:vertx-web
NoYesOct 22, 2025
CVE-2025-11966N/AN/A
  • JavaJava
  • io.vertx:vertx-web
NoYesOct 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management