CVE-2021-24122
Fixed in a distro release EPSS 23%
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.
Products: Apache Software Foundation Apache Tomcat
Fixed upstream
| Ecosystem | Package | Fixed in |
|---|---|---|
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 10.0.0-M10 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 9.0.40 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 8.5.60 |
| Maven | org.apache.tomcat.embed:tomcat-embed-core | 7.0.107 |
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Arch Linux | tomcat9 | 9.0.40-1 |
| Chainguard | spark-3.5.0-compat | 3.5.0-r2 |
| Debian 12 | tomcat9 | 9.0.40-1 |
| Debian 13 | tomcat9 | 9.0.40-1 |
| Debian 14 | tomcat9 | 9.0.40-1 |
| Debian 9 | tomcat8 | 8.5.54-0+deb9u6 |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-admin-webapps | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-admin-webapps | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-docs-webapp | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-docs-webapp | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-el-3.0-api | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-el-3.0-api | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-javadoc | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-javadoc | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-jsp-2.3-api | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-jsp-2.3-api | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-lib | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-lib | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-native | 0:1.2.25-3.redhat_3.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-native | 0:1.2.25-3.redhat_3.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-native-debuginfo | 0:1.2.25-3.redhat_3.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-native-debuginfo | 0:1.2.25-3.redhat_3.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-selinux | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-selinux | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-servlet-4.0-api | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-servlet-4.0-api | 0:9.0.36-9.redhat_8.1.el8jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-webapps | 0:9.0.36-9.redhat_8.1.el7jws |
| Red Hat jboss enterprise web server 5.4 | jws5-tomcat-webapps | 0:9.0.36-9.redhat_8.1.el8jws |
| SUSE Enterprise Storage 6 | tomcat | 9.0.36-4.58.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-ESPOS | tomcat | 9.0.36-4.58.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP1-LTSS | tomcat | 9.0.36-4.58.1 |
| SUSE Linux Enterprise High Performance Computing 15-ESPOS | tomcat | 9.0.36-3.79.1 |
| SUSE Linux Enterprise High Performance Computing 15-LTSS | tomcat | 9.0.36-3.79.1 |
| SUSE Linux Enterprise Module for Web and Scripting 15 SP2 | tomcat | 9.0.36-3.21.1 |
| SUSE Linux Enterprise Point of Sale 11 SP3 | tomcat6 | 6.0.53-0.57.19.1 |
| SUSE Linux Enterprise Server 11 SP4-LTSS | tomcat6 | 6.0.53-0.57.19.1 |
| SUSE Linux Enterprise Server 12 SP5 | tomcat | 9.0.36-3.61.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | tomcat | 9.0.115-3.160.1 |
| SUSE Linux Enterprise Server 15 SP1-BCL | tomcat | 9.0.36-4.58.1 |
| SUSE Linux Enterprise Server 15 SP1-LTSS | tomcat | 9.0.36-4.58.1 |
| SUSE Linux Enterprise Server 15-LTSS | tomcat | 9.0.36-3.79.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | tomcat | 9.0.115-3.160.1 |
| SUSE Linux Enterprise Server for SAP Applications 12 SP5 | tomcat | 9.0.36-3.61.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 | tomcat | 9.0.36-3.79.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP1 | tomcat | 9.0.36-4.58.1 |
| SUSE Manager Proxy 4.0 | tomcat | 9.0.36-4.58.1 |
| SUSE Manager Retail Branch Server 4.0 | tomcat | 9.0.36-4.58.1 |
| SUSE Manager Server 4.0 | tomcat | 9.0.36-4.58.1 |
| Ubuntu Pro 14.04 LTS | tomcat7 | no fix |
| Ubuntu Pro 16.04 LTS | tomcat7 | no fix |
| Ubuntu Pro 16.04 LTS | tomcat8 | no fix |
| Ubuntu Pro 18.04 LTS | tomcat8 | no fix |
| Ubuntu Pro 18.04 LTS | tomcat9 | no fix |
| Ubuntu Pro 20.04 LTS | tomcat9 | no fix |
| openSUSE Leap 15.2 | tomcat | 9.0.36-lp152.2.19.1 |
| openSUSE Tumbleweed | tomcat | 9.0.36-8.4 |
| openSUSE Tumbleweed | tomcat10 | 10.1.14-1.1 |