CVE-2021-24122 json
Apache Tomcat information disclosure
published 2021-01-14 5 y ago modified 2026-10-08 31 d ago also BIT-tomcat-2021-24122 , EUVD-2021-0906 , GHSA-2rvv-w9r2-rg7m
- cvss
- 5.9
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 22.9%
- EPSS 22.9% chance of exploitation in 30 days, percentile 97%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.apache.tomcat.embed:tomcat-embed-core 7.0.107, 8.5.60, 9.0.40, 10.0.0-M10
- bitnami tomcat 7.0.107, 8.5.60, 9.0.40
- Apache Software Foundation Apache Tomcat 7.0.106, 8.5.60, 9.0.40, 10.0.0-M10
- tomcat9 Debian 14, Debian 13, Debian 12 9.0.40-1
debian advisories DEBIAN-CVE-2021-24122
- jws5-tomcat jboss enterprise web server 5.4 9.0.36-9.redhat_8.1.el7jws
- jws5-tomcat jboss enterprise web server 5.4 9.0.36-9.redhat_8.1.el8jws
- jws5-tomcat-lib jboss enterprise web server 5.4 9.0.36-9.redhat_8.1.el7jws
- jws5-tomcat-lib jboss enterprise web server 5.4 9.0.36-9.redhat_8.1.el8jws
- jws5-tomcat-native jboss enterprise web server 5.4 1.2.25-3.redhat_3.el7jws
- jws5-tomcat-native jboss enterprise web server 5.4 1.2.25-3.redhat_3.el8jws
- jws5-tomcat-javadoc jboss enterprise web server 5.4 9.0.36-9.redhat_8.1.el7jws
- jws5-tomcat-javadoc jboss enterprise web server 5.4 9.0.36-9.redhat_8.1.el8jws
red hat advisories RHSA-2021:0494
- tomcat6 SLES 11 SP4-LTSS, SLE Point of Sale 11 SP3 6.0.53-0.57.19.1
- tomcat SLES for SAP 15 SP1, SLES 15 SP1-LTSS, SLES 15 SP1-BCL +6 more 9.0.36-4.58.1
- tomcat SLES for SAP 15, SLES 15-LTSS, SLE High Performance Computing 15-LTSS +1 more 9.0.36-3.79.1
- tomcat SLE Module for Web and Scripting 15 SP2 9.0.36-3.21.1
- tomcat SLES for SAP 12 SP5, SLES 12 SP5 9.0.36-3.61.1
- tomcat SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.0.115-3.160.1
suse advisories SUSE-SU-2026:1058-1SUSE-SU-2021:14705-1SUSE-SU-2021:1009-1SUSE-SU-2021:0989-1SUSE-SU-2021:0531-1SUSE-SU-2021:0530-1
- tomcat openSUSE Tumbleweed 9.0.36-8.4
- tomcat10 openSUSE Tumbleweed 10.1.14-1.1
- tomcat openSUSE Leap 15.2 9.0.36-lp152.2.19.1
opensuse advisories openSUSE-SU-2024:11468-1openSUSE-SU-2024:13441-1openSUSE-SU-2021:0330-1
- tomcat9 Arch Linux 9.0.40-1
arch linux advisories AVG-1452
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2021-24122 updated cvss 5.9
tomcat: Information disclosure when using NTFS file system
-
Red Hat JBoss Data Grid 6 jbossweb jbossweb Red Hat JBoss Data Virtualization 6 jbossweb jbossweb Red Hat JBoss Enterprise Application Platform 6 jbossweb jbossweb Red Hat JBoss Fuse 6 tomcataffected: no fix planned “Out of support scope”
-
Red Hat JBoss Web Server 3 tomcataffected: no fix planned “Will not fix”
-
Red Hat OpenStack Platform 10 (Newton) opendaylightaffected: no fix planned “Out of support scope”
-
Red Hat OpenStack Platform 13 (Queens) opendaylightaffected: no fix planned “Will not fix”
-
Red Hat support for Spring Boot tomcataffected: no fix available
-
Red Hat Fuse 7.11fixed: vendor fix RHSA-2022:5532
-
Red Hat JBoss Web Server 5fixed: vendor fix RHSA-2021:0495
-
Red Hat JBoss Web Server 5.4 for RHEL 7 Server jws5-tomcat 9.0.36-9.redhat_8.1.el7jws, jws5-tomcat-lib 9.0.36-9.redhat_8.1.el7jws, jws5-tomcat-native 1.2.25-3.redhat_3.el7jws, jws5-tomcat-javadoc 9.0.36-9.redhat_8.1.el7jws, jws5-tomcat-selinux 9.0.36-9.redhat_8.1.el7jws, jws5-tomcat-webapps 9.0.36-9.redhat_8.1.el7jws, +5 more Red Hat JBoss Web Server 5.4 for RHEL 8 jws5-tomcat 9.0.36-9.redhat_8.1.el8jws, jws5-tomcat-lib 9.0.36-9.redhat_8.1.el8jws, jws5-tomcat-native 1.2.25-3.redhat_3.el8jws, jws5-tomcat-javadoc 9.0.36-9.redhat_8.1.el8jws, jws5-tomcat-selinux 9.0.36-9.redhat_8.1.el8jws, jws5-tomcat-webapps 9.0.36-9.redhat_8.1.el8jws, +5 morefixed: vendor fix RHSA-2021:0494
show 2 moreshow fewer
-
Red Hat support for Spring Boot 2.3.10fixed: vendor fix RHSA-2021:3425
-
Red Hat Decision Manager 7 tomcat Red Hat Enterprise Linux 6 tomcat6, tomcat6-lib, tomcat6-log4j, tomcat6-javadoc, tomcat6-webapps, tomcat6-el-2.1-api, +4 more Red Hat Enterprise Linux 7 tomcat, tomcat-lib, tomcat-jsvc, tomcat-javadoc, tomcat-webapps, tomcat-el-2.2-api, +4 more Red Hat Enterprise Linux 8 pki-servlet-engine, pki-servlet-4.0-api Red Hat Enterprise Linux 9 tomcat, tomcat-lib, tomcat-webapps, tomcat-el-3.0-api, tomcat-docs-webapp, tomcat-jsp-2.3-api, +2 more Red Hat Process Automation 7 tomcatnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 31 d ago
Exploit prediction
22.85% chance of exploitation in the next 30 days, higher than 97% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
| OSV | 3.1 | 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.apache.tomcat.embed:tomcat-embed-core | >=10.0.0-M1, <10.0.0-M10 >=9.0.0, <9.0.40 >=8.5.0, <8.5.60 >=7.0.0, <7.0.107 |
10.0.0-M10 9.0.40 8.5.60 7.0.107 |
| bitnami | tomcat | >=7.0.0, <7.0.107 >=8.5.0, <8.5.60 >=9.0.1, <9.0.40 |
7.0.107 8.5.60 9.0.40 |
Affected products
- Apache Software Foundation Apache Tomcat
Classification
References
-
github.com
/apache/tomcat/commit/7f004ac4531c45f9a2a2d1470561fe135cf27bc2
web
-
github.com
/apache/tomcat/commit/800b03140e640f8892f27021e681645e8e320177
web
-
github.com
/apache/tomcat/commit/920dddbdb981f92e8d5872a4bb126a10af5ca8a9
web
-
github.com
/apache/tomcat/commit/935fc5582dc25ae10bab6f9d5629ff8d996cb533
web
-
lists.apache.org
/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.tomcat.apache.org%3E
mailing-list, web, vendor-advisory, advisory
-
lists.apache.org
/thread.html/rca833c6d42b7b9ce1563488c0929f29fcc95947d86e5e740258c8937%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r776c64337495bf28b7d5597268114a888e3fad6045c40a0da0c66d4d%40%3Cdev.tomee.apache.org%3E
mailing-list, web
-
openwall.com
/lists/oss-security/2021/01/14/1
mailing-list, web, third-party-advisory, advisory
-
lists.apache.org
/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52%40%3Cannounce.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r7e0bb9ea415724550e2b325e143b23e269579e54d66fcd7754bd0c20%40%3Cdev.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/rb32a73b7cb919d4f44a2596b6b951274c0004fc8b0e393d6829a45f9%40%3Cusers.tomcat.apache.org%3E
mailing-list, web
-
lists.apache.org
/thread.html/r7382e1e35b9bc7c8f320b90ad77e74c13172d08034e20c18000fe710%40%3Cdev.tomee.apache.org%3E
mailing-list, web
-
lists.debian.org
/debian-lts-announce/2021/03/msg00018.html
mailing-list, web, third-party-advisory, advisory
-
oracle.com
//security-alerts/cpujul2021.html
web, third-party-advisory, advisory
-
security.netapp.com
/advisory/ntap-20210212-0008/
third-party-advisory, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2021-24122
advisory, web
-
tomcat.apache.org
/security-9.html
web
-
tomcat.apache.org
/security-8.html
web
-
tomcat.apache.org
/security-7.html
web
-
tomcat.apache.org
/security-10.html
web
-
security.netapp.com
/advisory/ntap-20210212-0008
web
-
lists.apache.org
/thread.html/rca833c6d42b7b9ce1563488c0929f29fcc95947d86e5e740258c8937@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/rb32a73b7cb919d4f44a2596b6b951274c0004fc8b0e393d6829a45f9@%3Cusers.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r7e0bb9ea415724550e2b325e143b23e269579e54d66fcd7754bd0c20@%3Cdev.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r776c64337495bf28b7d5597268114a888e3fad6045c40a0da0c66d4d@%3Cdev.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/r7382e1e35b9bc7c8f320b90ad77e74c13172d08034e20c18000fe710@%3Cdev.tomee.apache.org%3E
web
-
lists.apache.org
/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52@%3Cannounce.tomcat.apache.org%3E
web
-
lists.apache.org
/thread.html/r1595889b083e05986f42b944dc43060d6b083022260b6ea64d2cec52@%3Cannounce.apache.org%3E
web
-
github.com
/apache/tomcat
package
Sources
- CVE List CVE-2021-24122
- GitHub Advisory GHSA-2rvv-w9r2-rg7m
- NVD CVE-2021-24122
- OSV BIT-tomcat-2021-24122
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.