WaratekVRT Sign in

CVE-2021-24122 Apache Tomcat

Affected softwareApache Tomcat
Severity5.9 Medium CVSS 3.1 2 scores
Fixed in10.0.0-M10, 9.0.40, 8.5.60, 7.0.107
WeaknessInformation exposure (CWE-200)
Published14 Jan 2021
Updated8 Oct 2026

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.

CWE-706

Exploitation status

No public exploit

No exploit has been reported in the sources we check. Published 5 years ago.

  • CISA KEV not listed
  • VulnCheck KEV not listed
  • CISA Vulnrichment exploitation: none
  • Indexed PoC none indexed
  • EPSS 23% chance in 30 days A model's forecast, not a report of exploitation. Higher than 98% of all scored CVEs.

Waratek protection

No exploit published

Within Waratek scope. In the sources we check, nobody has published exploit code for this CVE or reported it being exploited.

A public code fix exists: apache/tomcat 7f004ac.

  • Protection none
  • Action unverified
  • Review automated Upstream data
  • Record active
Decided by Exploit code for this candidate, published in a reviewed catalogue or a GitHub repository with 5 or more stars, or in use per CISA or VulnCheck; not only a CISA verdict, a forecast, or nothing at all
Finding This CVE is not listed in CISA KEV or VulnCheck KEV, CISA Vulnrichment records no active exploitation, no reviewed exploit catalogue carries an entry for it, and no GitHub PoC repository for it has 5 or more stars. Nobody has published exploit code worth tracing, so it is not a candidate for a rule ahead of the ones where somebody has; an upstream fix path does exist, so the remediation half of the candidacy still holds. This is a statement about what has been published, not about whether the defect is reachable or serious.

CVSS

5.9 MEDIUM v3.1 CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N 2 metrics

We show the highest score from the newest CVSS version. Scores from different versions can't be compared, and the first score listed is sometimes a 0.0 placeholder.

VersionScoreBandVectorAssignerType
CVSS 3.1 5.9 MEDIUM CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N NVD Primary published
CVSS 2.0 4.3 none AV:N/AC:M/Au:N/C:P/I:N/A:N NVD Primary

Affected software and releases

Oracle advisories

AdvisoryTypeQuarterProducts Oracle names in its risk matrix
Oracle Critical Patch Update April 2025 ↗ CPU 2025-Q2 Oracle Autonomous Health Framework / Trace File Analyzer (Apache Tomcat) (23.8.0-23.11.0, 24.1.0-24.11.0, 25.1.0, 25.2.0)
Oracle Critical Patch Update July 2021 ↗ CPU 2021-Q3 Oracle Supply Chain / Folders, Files & Attachments (Apache Tomcat) (9.3.3, 9.3.6)

Oracle components and versions

FamilyComponentVersions, as Oracle lists themRead as
Oracle Autonomous Health Framework Trace File Analyzer (Apache Tomcat) 23.8.0-23.11.0, 24.1.0-24.11.0, 25.1.0, 25.2.0 25.1.0 · 25.2.0
Oracle Supply Chain Folders, Files & Attachments (Apache Tomcat) 9.3.3, 9.3.6 9.3.3 · 9.3.6

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast affected
org.apache.tomcat.embed:tomcat-embed-core 10.0.0-M1 10.0.0-M10 unbounded
org.apache.tomcat.embed:tomcat-embed-core 9.0.0 9.0.40 unbounded
org.apache.tomcat.embed:tomcat-embed-core 8.5.0 8.5.60 unbounded
org.apache.tomcat.embed:tomcat-embed-core 7.0.0 7.0.107 unbounded

Products and versions

4 products, 46 version entries
SourceVendorProductSchemeAffected versions
nvd apache tomcat generic ≥ 7.0.0 and ≤ 7.0.106 · ≥ 8.5.0 and ≤ 8.5.59 · 9.0.0:milestone1 · 9.0.0:milestone10 · 9.0.0:milestone11 · 9.0.0:milestone12 · 9.0.0:milestone13 · 9.0.0:milestone14 · 9.0.0:milestone15 · 9.0.0:milestone16 · 9.0.0:milestone17 · 9.0.0:milestone18 · 9.0.0:milestone19 · 9.0.0:milestone2 · 9.0.0:milestone20 · 9.0.0:milestone21 · 9.0.0:milestone22 · 9.0.0:milestone23 · 9.0.0:milestone24 · 9.0.0:milestone25 · 9.0.0:milestone26 · 9.0.0:milestone27 · 9.0.0:milestone3 · 9.0.0:milestone4 · 9.0.0:milestone5 · 9.0.0:milestone6 · 9.0.0:milestone7 · 9.0.0:milestone8 · 9.0.0:milestone9 · ≥ 9.0.1 and ≤ 9.0.39 · 10.0.0:milestone1 · 10.0.0:milestone2 · 10.0.0:milestone3 · 10.0.0:milestone4 · 10.0.0:milestone5 · 10.0.0:milestone6 · 10.0.0:milestone7 · 10.0.0:milestone8 · 10.0.0:milestone9
nvd debian debian linux generic 9.0
nvd oracle agile product lifecycle management generic 9.3.3 · 9.3.6
osv org.apache.tomcat.embed tomcat-embed-core generic ≥ 7.0.0 and < 7.0.107 · ≥ 8.5.0 and < 8.5.60 · ≥ 9.0.0 and < 9.0.40 · ≥ 10.0.0 and < 10.0.0

References

URLTags
https://github.com/apache/tomcat/commit/7f004ac4531c45f9a2a2d1470561fe135cf27bc2 WEB
https://github.com/apache/tomcat/commit/800b03140e640f8892f27021e681645e8e320177 WEB
https://github.com/apache/tomcat/commit/920dddbdb981f92e8d5872a4bb126a10af5ca8a9 WEB
https://github.com/apache/tomcat/commit/935fc5582dc25ae10bab6f9d5629ff8d996cb533 WEB
https://www.oracle.com//security-alerts/cpujul2021.html WEB
https://tomcat.apache.org/security-9.html WEB
https://tomcat.apache.org/security-8.html WEB
https://tomcat.apache.org/security-7.html WEB
https://tomcat.apache.org/security-10.html WEB
https://security.netapp.com/advisory/ntap-20210212-0008 WEB

Timeline

Published2021-01-14By the CVE Program.
NVD record modified2026-10-08NVD's own last-modified date for this record.