Live threats

All CVEs / Apache

CVE-2021-24122Apache Tomcat

Medium 5.9 No auth neededHigh EPSS

Priority
53
CVSS 3.1
5.9
EPSS
22.5%
probability of exploitation in 30 days · percentile 98
Auth required
No
Published
Jan 14, 2021
Updated
Oct 8, 2026
Category
Server · Cross-platform
Weakness (CWE)
CWE-200, CWE-706
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Tomcat.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.apache.tomcat.embed:tomcat-embed-core ≥ 10.0.0-M1 < 10.0.0-M10 10.0.0-M10 —
Maven org.apache.tomcat.embed:tomcat-embed-core ≥ 9.0.0 < 9.0.40 9.0.40 —
Maven org.apache.tomcat.embed:tomcat-embed-core ≥ 8.5.0 < 8.5.60 8.5.60 —
Maven org.apache.tomcat.embed:tomcat-embed-core ≥ 7.0.0 < 7.0.107 7.0.107 —

Per OSV / GitHub Advisories (GHSA-2rvv-w9r2-rg7m). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
apachetomcat≥ 7.0.0 ≤ 7.0.106
apachetomcat≥ 8.5.0 ≤ 8.5.59
apachetomcat≥ 9.0.1 ≤ 9.0.39
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat9.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
apachetomcat10.0.0
debiandebian_linux9.0
oracleagile_product_lifecycle_management9.3.3
oracleagile_product_lifecycle_management9.3.6

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.