CVE-2021-24122 | Apache Tomcat information disclosure

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.

Published: 2021-01-14 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2021-24122 is rated Moderate Risk (52.7/100): CVSS Medium severity, with high exploitation likelihood (EPSS 22.85%, 97th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2021-24122

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 61.38% 22.85% -38.53%
2 2026-05-24 61.00% 61.38% +0.38%
3 2026-05-20 61.00%

Full EPSS history (57 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2021-24122

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
5.9 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 3.6 [email protected]
4.3 2.0 MEDIUM
AV:N/AC:M/Au:N/C:P/I:N/A:N Click to expand
Access vector (AV:N)
Can be exploited remotely over network reachability.
Access complexity (AC:M)
Exploitation needs some favorable conditions, but not exceptional ones.
Authentication (AU:N)
No authentication is required.
Confidentiality impact (C:P)
Partial confidentiality impact.
Integrity impact (I:N)
No integrity impact.
Availability impact (A:N)
No availability impact.
8.6 2.9 [email protected]

Weakness enumeration for CVE-2021-24122

GitHub Security Advisory for CVE-2021-24122

GHSA-2rvv-w9r2-rg7m · Severity: medium · Ecosystem: maven — Information Disclosure in Apache Tomcat

OS Trackers for CVE-2021-24122

vendor priority summary link
debian unimportant CVE-2021-24122 unimportant priority: Debian including 1 source packages (tomcat9), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2021-24122
redhat medium https://access.redhat.com/security/cve/CVE-2021-24122
suse medium CVE-2021-24122 severity moderate: SUSE including 367 source package names (5.0.0-beta1.2.122:tomcat-9.0.36-3.21.1, 5.0.0-beta1.2.122:tomcat-el-3_0-api-9.0.36-3.21.1, …), 605 product×package rows across 53 product lines (Container containers/apache-tomcat, Container suse/manager/5.0/x86_64/server, … (53 product lines)): Fixed 374, Known Affected 231. https://www.suse.com/security/cve/CVE-2021-24122/
ubuntu negligible CVE-2021-24122 negligible priority: Ubuntu including 4 source packages (tomcat6, tomcat7, tomcat8, tomcat9), 64 status rows across 16 suites (bionic, focal, groovy, hirsute, impish, jammy, kinetic, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 40, ignored 8, needed 7, not-affected 4, released 3, needs-triage 2. https://ubuntu.com/security/CVE-2021-24122

Affected software / configurations for CVE-2021-24122

Vendor Product Version Raw CPE
apache tomcat >= 7.0.0, <= 7.0.106 cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
apache tomcat >= 8.5.0, <= 8.5.59 cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
apache tomcat >= 9.0.1, <= 9.0.39 cpe:2.3:a:apache:tomcat:*:*:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone1:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone10:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone11:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone12:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone13:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone14:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone15:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone16:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone17:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone18:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone19:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone2:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone20:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone21:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone22:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone23:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone24:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone25:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone26:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone27:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone3:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone4:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone5:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone6:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone7:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone8:*:*:*:*:*:*
apache tomcat 9.0.0 cpe:2.3:a:apache:tomcat:9.0.0:milestone9:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone1:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone2:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone3:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone4:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone5:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone6:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone7:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone8:*:*:*:*:*:*
apache tomcat 10.0.0 cpe:2.3:a:apache:tomcat:10.0.0:milestone9:*:*:*:*:*:*
debian debian_linux 9.0 cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*
oracle agile_plm 9.3.3 cpe:2.3:a:oracle:agile_plm:9.3.3:*:*:*:*:*:*:*
oracle agile_plm 9.3.6 cpe:2.3:a:oracle:agile_plm:9.3.6:*:*:*:*:*:*:*

References for CVE-2021-24122

URL Tags
http://www.openwall.com/lists/oss-security/2021/01/14/1 Mailing List Third Party Advisory
https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.apache.org%3E
https://lists.apache.org/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.tomcat.apache.org%3E Mailing List Vendor Advisory
https://lists.apache.org/thread.html/r7382e1e35b9bc7c8f320b90ad77e74c13172d08034e20c18000fe710%40%3Cdev.tomee.apache.org%3E
https://lists.apache.org/thread.html/r776c64337495bf28b7d5597268114a888e3fad6045c40a0da0c66d4d%40%3Cdev.tomee.apache.org%3E
https://lists.apache.org/thread.html/r7e0bb9ea415724550e2b325e143b23e269579e54d66fcd7754bd0c20%40%3Cdev.tomcat.apache.org%3E
https://lists.apache.org/thread.html/rb32a73b7cb919d4f44a2596b6b951274c0004fc8b0e393d6829a45f9%40%3Cusers.tomcat.apache.org%3E
https://lists.apache.org/thread.html/rca833c6d42b7b9ce1563488c0929f29fcc95947d86e5e740258c8937%40%3Cdev.tomcat.apache.org%3E
https://lists.debian.org/debian-lts-announce/2021/03/msg00018.html Mailing List Third Party Advisory
https://security.netapp.com/advisory/ntap-20210212-0008/ Third Party Advisory
https://www.oracle.com//security-alerts/cpujul2021.html Third Party Advisory
cvelogic Threat Intelligence