Skip to content
Fencer Vulns
medium 5.9

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 tomcat
    affected: no fix planned “Out of support scope”
  • Red Hat JBoss Web Server 3 tomcat
    affected: no fix planned “Will not fix”
  • Red Hat OpenStack Platform 10 (Newton) opendaylight
    affected: no fix planned “Out of support scope”
  • Red Hat OpenStack Platform 13 (Queens) opendaylight
    affected: no fix planned “Will not fix”
  • Red Hat support for Spring Boot tomcat
    affected: no fix available
  • Red Hat Fuse 7.11
    fixed: vendor fix RHSA-2022:5532
  • Red Hat JBoss Web Server 5
    fixed: 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 more
    fixed: vendor fix RHSA-2021:0494
show 2 more
  • Red Hat support for Spring Boot 2.3.10
    fixed: 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 tomcat
    not 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

Weakness
  • CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
  • CWE-706 Use of Incorrectly-Resolved Name or Reference

References

Sources

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.