CVE-2021-24122Apache Tomcat
Medium 5.9 No auth neededHigh EPSS
Follow: this CVE · Apache · Apache Tomcat We alert you by email or Slack (account required).
- 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
- 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.
What to do
- Apply the vendor's security update for Tomcat.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How 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)
| Vendor | Product | Versions |
|---|---|---|
| apache | tomcat | ≥ 7.0.0 ≤ 7.0.106 |
| apache | tomcat | ≥ 8.5.0 ≤ 8.5.59 |
| apache | tomcat | ≥ 9.0.1 ≤ 9.0.39 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 9.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| apache | tomcat | 10.0.0 |
| debian | debian_linux | 9.0 |
| oracle | agile_product_lifecycle_management | 9.3.3 |
| oracle | agile_product_lifecycle_management | 9.3.6 |
Official advisories
- Security update for tomcat · SUSE · SUSE-SU-2026:1058-1 · Mar 26, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- www.openwall.com Mailing List Third Party Advisory
- lists.apache.org
- lists.apache.org Mailing List Vendor Advisory
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.apache.org
- lists.debian.org Mailing List Third Party Advisory
- security.netapp.com Third Party Advisory
- www.oracle.com Third Party Advisory