cve.bz

CVE-2021-24122

5.9 mediumEPSS 23%Fix available

Medium (5.9). EPSS 23% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.tomcat.embed:tomcat-embed-core 10.0.0-M10, 7.0.107, 8.5.60.

On this page
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.

Severity

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
EPSS
23% (unchanged from 23% a week ago; 23% 30 days ago) estimated probability of exploitation activity in the next 30 days; 98th percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-10-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-706 Use of Incorrectly-Resolved Name or Reference
CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-24122 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-24122?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-24122?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-24122 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2021-24122

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2021-24122](https://cve.bz/cve/badge/CVE-2021-24122.svg)](https://cve.bz/cve/CVE-2021-24122)

HTML:

<a href="https://cve.bz/cve/CVE-2021-24122"><img src="https://cve.bz/cve/badge/CVE-2021-24122.svg" alt="CVE-2021-24122"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Tomcatfrom Apache Tomcat 10 before 10.0.0-M10
Apache Software Foundation Apache Tomcatfrom Apache Tomcat 9 before 9.0.40
Apache Software Foundation Apache Tomcatfrom Apache Tomcat 8.5 before 8.5.60
Apache Software Foundation Apache Tomcatfrom Apache Tomcat 7 before 7.0.106

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2rvv-w9r2-rg7mMavenorg.apache.tomcat.embed:tomcat-embed-core>=10.0.0-M1 <10.0.0-M1010.0.0-M10
GHSA-2rvv-w9r2-rg7mMavenorg.apache.tomcat.embed:tomcat-embed-core>=9.0.0 <9.0.409.0.40
GHSA-2rvv-w9r2-rg7mMavenorg.apache.tomcat.embed:tomcat-embed-core>=8.5.0 <8.5.608.5.60
GHSA-2rvv-w9r2-rg7mMavenorg.apache.tomcat.embed:tomcat-embed-core>=7.0.0 <7.0.1077.0.107

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian9tomcat88.5.54-0+deb9u6DLA-2594-1
Debian12, 13, 14tomcat99.0.40-1DEBIAN-CVE-2021-24122
UbuntuPro:14.04:LTStomcat7no fix listedUBUNTU-CVE-2021-24122
UbuntuPro:16.04:LTStomcat7, tomcat8no fix listedUBUNTU-CVE-2021-24122
UbuntuPro:18.04:LTStomcat8, tomcat9no fix listedUBUNTU-CVE-2021-24122
UbuntuPro:20.04:LTStomcat9no fix listedUBUNTU-CVE-2021-24122
Red Hatjboss_enterprise_web_server:5.4::el7jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.36-9.redhat_8.1.el7jwsRHSA-2021:0494
Red Hatjboss_enterprise_web_server:5.4::el7jws5-tomcat-native, jws5-tomcat-native-debuginfo0:1.2.25-3.redhat_3.el7jwsRHSA-2021:0494
Red Hatjboss_enterprise_web_server:5.4::el8jws5-tomcat, jws5-tomcat-lib, jws5-tomcat-javadoc and 7 more0:9.0.36-9.redhat_8.1.el8jwsRHSA-2021:0494
Red Hatjboss_enterprise_web_server:5.4::el8jws5-tomcat-native, jws5-tomcat-native-debuginfo0:1.2.25-3.redhat_3.el8jwsRHSA-2021:0494
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 6 moretomcat9.0.36-4.58.1SUSE-SU-2021:1009-1
SUSELinux Enterprise High Performance Computing 15-ESPOS, Linux Enterprise High Performance Computing 15-LTSS, Linux Enterprise Server 15-LTSS and 1 moretomcat9.0.36-3.79.1SUSE-SU-2021:0989-1
SUSELinux Enterprise Module for Web and Scripting 15 SP2tomcat9.0.36-3.21.1SUSE-SU-2021:0531-1
SUSELinux Enterprise Point of Sale 11 SP3, Linux Enterprise Server 11 SP4-LTSStomcat66.0.53-0.57.19.1SUSE-SU-2021:14705-1
SUSELinux Enterprise Server 12 SP5, Linux Enterprise Server for SAP Applications 12 SP5tomcat9.0.36-3.61.1SUSE-SU-2021:0530-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5tomcat9.0.115-3.160.1SUSE-SU-2026:1058-1
openSUSELeap 15.2tomcat9.0.36-lp152.2.19.1openSUSE-SU-2021:0330-1
openSUSETumbleweedtomcat9.0.36-8.4openSUSE-SU-2024:11468-1
openSUSETumbleweedtomcat1010.1.14-1.1openSUSE-SU-2024:13441-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

In Red Hat OpenStack Platform's OpenDaylight, tomcat is disabled by default. Further, ODL deployments are not supported on untrusted administrator networks; even if tomcat is enabled, if random users can access it, this would be in an unsupported configuration. For this reason, the RHOSP impact has been reduced and no update will be provided at this time for the ODL tomcat package.

This flaw does not affect tomcat or pki-servlet-engine as shipped with Red Hat Enterprise Linux 6, 7, or 8 because the functionality involving FindFirstFileW() is specific to the Windows native code. Additionally, RHEL is not shipped with NTFS support.

ProductPackageStateAdvisory
Red Hat Fuse 7.11tomcatFixed 2022-07-07RHSA-2022:5532
Red Hat JBoss Web Server 5tomcatFixed 2021-02-11RHSA-2021:0495
Red Hat JBoss Web Server 5.4 on RHEL 7jws5-tomcat-0:9.0.36-9.redhat_8.1.el7jwsFixed 2021-02-11RHSA-2021:0494
Red Hat JBoss Web Server 5.4 on RHEL 7jws5-tomcat-native-0:1.2.25-3.redhat_3.el7jwsFixed 2021-02-11RHSA-2021:0494
Red Hat JBoss Web Server 5.4 on RHEL 8jws5-tomcat-0:9.0.36-9.redhat_8.1.el8jwsFixed 2021-02-11RHSA-2021:0494
Red Hat JBoss Web Server 5.4 on RHEL 8jws5-tomcat-native-0:1.2.25-3.redhat_3.el8jwsFixed 2021-02-11RHSA-2021:0494
Red Hat support for Spring Boot 2.3.10Fixed 2021-09-09RHSA-2021:3425
Red Hat Decision Manager 7tomcatNot affected
Red Hat Enterprise Linux 6tomcat6Not affected
Red Hat Enterprise Linux 7tomcatNot affected
Red Hat Enterprise Linux 8pki-deps:10.6/pki-servlet-engineNot affected
Red Hat Enterprise Linux 9tomcatNot affected
Red Hat JBoss Data Grid 6jbosswebOut of support scope
Red Hat JBoss Data Virtualization 6jbosswebOut of support scope
Red Hat JBoss Enterprise Application Platform 6jbosswebOut of support scope
Red Hat JBoss Fuse 6tomcatOut of support scope
Red Hat JBoss Web Server 3tomcatWill not fix
Red Hat OpenStack Platform 10 (Newton)opendaylightOut of support scope
Red Hat OpenStack Platform 13 (Queens)opendaylightWill not fix
Red Hat Process Automation 7tomcatNot affected
1 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-24122.

Attack patterns (CAPEC)

  • CAPEC-48 Passing Local Filenames to Functions That Expect a URL Likelihood: High · Severity: High
  • CAPEC-159 Redirect Access to Libraries Likelihood: High · Severity: Very High
  • CAPEC-177 Create files with the same name as files protected with a higher classification Severity: Very High
  • CAPEC-641 DLL Side-Loading Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-200 (59).

References

Check your stackJSON