Bug 1917209 (CVE-2021-24122) - CVE-2021-24122 tomcat: Information disclosure when using NTFS file system
Summary: CVE-2021-24122 tomcat: Information disclosure when using NTFS file system
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2021-24122
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1917234
Blocks: 1917185
TreeView+ depends on / blocked
 
Reported: 2021-01-18 02:24 UTC by Ted Jongseok Won
Modified: 2021-09-23 14:23 UTC (History)
80 users (show)

Fixed In Version: tomcat 9.0.40, tomcat 8.5.60, tomcat 7.0.107
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in Apache Tomcat. When serving resources from a network location using the NTFS file system, it was possible to bypass security constraints and view the source code for JSPs in some configurations. The root cause was the unexpected behavior of the JRE API File.getCanonicalPath(), which was caused by the inconsistent behavior of the Windows API (FindFirstFileW) in some circumstances. The highest threat from this vulnerability is to confidentiality.
Clone Of:
Environment:
Last Closed: 2021-02-11 16:10:12 UTC


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2021:0494 0 None None None 2021-02-11 13:50:34 UTC
Red Hat Product Errata RHSA-2021:0495 0 None None None 2021-02-11 13:51:57 UTC
Red Hat Product Errata RHSA-2021:3425 0 None None None 2021-09-09 06:19:14 UTC

Description Ted Jongseok Won 2021-01-18 02:24:45 UTC
When serving resources from a network location using the NTFS file system it was possible to bypass security constraints and/or view the source code for JSPs 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.

Upstream commits:
Tomcat 9.0: https://github.com/apache/tomcat/commit/935fc5582dc25ae10bab6f9d5629ff8d996cb533
Tomcat 8.5: https://github.com/apache/tomcat/commit/920dddbdb981f92e8d5872a4bb126a10af5ca8a9
Tomcat 7.0: https://github.com/apache/tomcat/commit/800b03140e640f8892f27021e681645e8e320177

Reference:
http://mail-archives.apache.org/mod_mbox/tomcat-announce/202101.mbox/%3Cf3765f21-969d-7f21-e34a-efc106175373%40apache.org%3E
http://tomcat.apache.org/security-9.html#Fixed_in_Apache_Tomcat_9.0.40
http://tomcat.apache.org/security-8.html#Fixed_in_Apache_Tomcat_8.5.60
http://tomcat.apache.org/security-7.html#Fixed_in_Apache_Tomcat_7.0.107

Comment 4 Summer Long 2021-01-18 06:35:38 UTC
Created tomcat tracking bugs for this issue:

Affects: fedora-all [bug 1917234]

Comment 5 Ted Jongseok Won 2021-01-18 07:03:16 UTC
This vulnerability is out of security support scope for the following products:
 * Red Hat Enterprise Application Platform 6
 * Red Hat Data Grid 6
 * Red Hat JBoss Data Virtualization 6
 * Red Hat JBoss Fuse 6

Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.

Comment 6 Jonathan Christison 2021-01-18 17:46:21 UTC
Red Hat Jboss Fuse 6 ships some of the vulnerable artifacts as bundled artifacts in ops4j pax web, however there is no use of these artifacts in Fuse itself, the artifacts are also prevented from loading with a deny list in karaf, for these reasons we believe the impact upon Fuse 6.3 is low.

The same also applies to Red Hat Fuse 7.

This vulnerability is out of security support scope for the following products:
 * Red Hat JBoss Fuse 6

Please refer to https://access.redhat.com/support/policy/updates/jboss_notes for more details.

Comment 15 Todd Cullum 2021-01-27 22:16:28 UTC
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.

Comment 16 errata-xmlrpc 2021-02-11 13:50:30 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Web Server 5.4 on RHEL 7
  Red Hat JBoss Web Server 5.4 on RHEL 8

Via RHSA-2021:0494 https://access.redhat.com/errata/RHSA-2021:0494

Comment 17 errata-xmlrpc 2021-02-11 13:51:54 UTC
This issue has been addressed in the following products:

  Red Hat JBoss Web Server

Via RHSA-2021:0495 https://access.redhat.com/errata/RHSA-2021:0495

Comment 18 Product Security DevOps Team 2021-02-11 16:10:12 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2021-24122

Comment 19 errata-xmlrpc 2021-09-09 06:19:10 UTC
This issue has been addressed in the following products:

  Red Hat support for Spring Boot 2.3.10

Via RHSA-2021:3425 https://access.redhat.com/errata/RHSA-2021:3425


Note You need to log in before you can comment on or make changes to this bug.