CVE-2021-24122

MEDIUMCVSS 5.9/10EPSS 22.85%

Last modified

CVE-2021-24122 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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.. EPSS estimates a 22.85% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
5.9/10

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

EPSS Probability
22.85%

97.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersionsUpdate
ApacheTomcat>= 7.0.0, <= 7.0.106
ApacheTomcat>= 8.5.0, <= 8.5.59
ApacheTomcat>= 9.0.1, <= 9.0.39
ApacheTomcat9.0.0Milestone1
ApacheTomcat10.0.0Milestone1
DebianDebian Linux9.0
OracleAgile Plm9.3.3
OracleAgile Plm9.3.6

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2021-24122?
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.
How severe is CVE-2021-24122?
CVE-2021-24122 has a CVSS score of 5.9/10 (MEDIUM severity). The EPSS model estimates a 22.85% probability of exploitation in the next 30 days.
How do I fix CVE-2021-24122?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2021-24122?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST