CVE-2021-24122
Apache Tomcat information disclosure
5.9
MEDIUM
CVSS 3.1
EPSS 22.9%
Description
When serving resources from a network location using the NTFS file system, Apache Tomcat versions 9.0.0 through 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 to fix CVE-2021-24122
To remediate CVE-2021-24122, upgrade the affected package to a fixed version below.
- —upgrade to 7.0.107 or later
- —upgrade to 8.5.54-0+deb9u6 or later
- —upgrade to 9.0.40-1 or later
- —upgrade to 10.0.0-M10 or later
Is CVE-2021-24122 being exploited?
Moderate — EPSS is 22.9%. Track this CVE but it's not at the top of the prioritisation list.
Affected packages (4)
- >= 7.0.0, < 7.0.107, >= 8.5.0, < 8.5.60, >= 9.0.1, < 9.0.40
- from 0, < 8.5.54-0+deb9u6
- from 0, < 9.0.40-1
- >= 10.0.0-M1, < 10.0.0-M10
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | MEDIUM5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |