{"id":"UBUNTU-CVE-2024-56337","details":"Time-of-check Time-of-use (TOCTOU) Race Condition vulnerability in Apache Tomcat. This issue affects Apache Tomcat: from 11.0.0-M1 through 11.0.1, from 10.1.0-M1 through 10.1.33, from 9.0.0.M1 through 9.0.97. The following versions were EOL at the time the CVE was created but are known to be affected: 8.5.0 though 8.5.100. Other, older, EOL versions may also be affected. The mitigation for CVE-2024-50379 was incomplete. Users running Tomcat on a case insensitive file system with the default servlet write enabled (readonly initialisation parameter set to the non-default value of false) may need additional configuration to fully mitigate CVE-2024-50379 depending on which version of Java they are using with Tomcat: - running on Java 8 or Java 11: the system property sun.io.useCanonCaches must be explicitly set to false (it defaults to true) - running on Java 17: the system property sun.io.useCanonCaches, if set, must be set to false (it defaults to false) - running on Java 21 onwards: no further configuration is required (the system property and the problematic cache have been removed) Tomcat 11.0.3, 10.1.35 and 9.0.99 onwards will include checks that sun.io.useCanonCaches is set appropriately before allowing the default servlet to be write enabled on a case insensitive file system. Tomcat will also set sun.io.useCanonCaches to false by default where it can.","modified":"2026-03-20T07:27:32.206179Z","published":"2024-12-20T16:15:00Z","upstream":["CVE-2024-56337"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2024-56337"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-56337"},{"type":"REPORT","url":"https://lists.apache.org/thread/b2b9qrgjrz1kvo4ym8y2wkfdvwoq6qbp"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2024-50379"}],"affected":[{"package":{"name":"tomcat6","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/tomcat6@6.0.39-1ubuntu0.1+esm2?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.37-1","6.0.39-1","6.0.39-1ubuntu0.1","6.0.39-1ubuntu0.1+esm1","6.0.39-1ubuntu0.1+esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"libservlet2.4-java"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"libservlet2.5-java"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"libtomcat6-java"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6-admin"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6-common"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6-docs"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6-examples"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6-extras"},{"binary_version":"6.0.39-1ubuntu0.1+esm2","binary_name":"tomcat6-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat7","ecosystem":"Ubuntu:Pro:14.04:LTS","purl":"pkg:deb/ubuntu/tomcat7@7.0.52-1ubuntu0.16+esm1?arch=source&distro=esm-infra-legacy/trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0.42-1","7.0.47-1","7.0.50-1","7.0.52-1","7.0.52-1ubuntu0.1","7.0.52-1ubuntu0.3","7.0.52-1ubuntu0.6","7.0.52-1ubuntu0.7","7.0.52-1ubuntu0.8","7.0.52-1ubuntu0.9","7.0.52-1ubuntu0.10","7.0.52-1ubuntu0.11","7.0.52-1ubuntu0.13","7.0.52-1ubuntu0.14","7.0.52-1ubuntu0.15","7.0.52-1ubuntu0.16","7.0.52-1ubuntu0.16+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"libservlet3.0-java"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"libtomcat7-java"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"tomcat7"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"tomcat7-admin"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"tomcat7-common"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"tomcat7-docs"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"tomcat7-examples"},{"binary_version":"7.0.52-1ubuntu0.16+esm1","binary_name":"tomcat7-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat8","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/tomcat8@8.0.32-1ubuntu1.13+esm1?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.0.26-1","8.0.28-1","8.0.30-1","8.0.32-1","8.0.32-1ubuntu1","8.0.32-1ubuntu1.1","8.0.32-1ubuntu1.2","8.0.32-1ubuntu1.3","8.0.32-1ubuntu1.4","8.0.32-1ubuntu1.5","8.0.32-1ubuntu1.6","8.0.32-1ubuntu1.7","8.0.32-1ubuntu1.8","8.0.32-1ubuntu1.9","8.0.32-1ubuntu1.10","8.0.32-1ubuntu1.11","8.0.32-1ubuntu1.13","8.0.32-1ubuntu1.13+esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"libservlet3.1-java"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"libtomcat8-java"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"tomcat8"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"tomcat8-admin"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"tomcat8-common"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"tomcat8-docs"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"tomcat8-examples"},{"binary_version":"8.0.32-1ubuntu1.13+esm1","binary_name":"tomcat8-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat6","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/tomcat6@6.0.45+dfsg-1ubuntu0.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.41-4","6.0.45+dfsg-1","6.0.45+dfsg-1ubuntu0.1","6.0.45+dfsg-1ubuntu0.2"],"ecosystem_specific":{"binaries":[{"binary_version":"6.0.45+dfsg-1ubuntu0.2","binary_name":"libservlet2.5-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat7","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/tomcat7@7.0.68-1ubuntu0.4+esm3?arch=source&distro=esm-apps/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0.64-1","7.0.68-1","7.0.68-1ubuntu0.1","7.0.68-1ubuntu0.3","7.0.68-1ubuntu0.4","7.0.68-1ubuntu0.4+esm1","7.0.68-1ubuntu0.4+esm2","7.0.68-1ubuntu0.4+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"libservlet3.0-java"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"libtomcat7-java"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"tomcat7"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"tomcat7-admin"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"tomcat7-common"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"tomcat7-docs"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"tomcat7-examples"},{"binary_version":"7.0.68-1ubuntu0.4+esm3","binary_name":"tomcat7-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat7","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/tomcat7@7.0.78-1ubuntu0.1~esm1?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.0.78-1","7.0.78-1ubuntu0.1~esm1"],"ecosystem_specific":{"binaries":[{"binary_version":"7.0.78-1ubuntu0.1~esm1","binary_name":"libservlet3.0-java"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat8","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/tomcat8@8.5.39-1ubuntu1~18.04.3+esm5?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["8.5.21-1ubuntu1","8.5.29-1","8.5.30-1","8.5.30-1ubuntu1","8.5.30-1ubuntu1.2","8.5.30-1ubuntu1.3","8.5.30-1ubuntu1.4","8.5.39-1ubuntu1~18.04.1","8.5.39-1ubuntu1~18.04.2","8.5.39-1ubuntu1~18.04.3","8.5.39-1ubuntu1~18.04.3+esm1","8.5.39-1ubuntu1~18.04.3+esm2","8.5.39-1ubuntu1~18.04.3+esm3","8.5.39-1ubuntu1~18.04.3+esm4","8.5.39-1ubuntu1~18.04.3+esm5"],"ecosystem_specific":{"binaries":[{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"libtomcat8-embed-java"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"libtomcat8-java"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"tomcat8"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"tomcat8-admin"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"tomcat8-common"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"tomcat8-docs"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"tomcat8-examples"},{"binary_version":"8.5.39-1ubuntu1~18.04.3+esm5","binary_name":"tomcat8-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat9","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/tomcat9@9.0.16-3ubuntu0.18.04.2+esm7?arch=source&distro=esm-apps/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0.16-3~18.04.1","9.0.16-3ubuntu0.18.04.1","9.0.16-3ubuntu0.18.04.2","9.0.16-3ubuntu0.18.04.2+esm1","9.0.16-3ubuntu0.18.04.2+esm2","9.0.16-3ubuntu0.18.04.2+esm3","9.0.16-3ubuntu0.18.04.2+esm4","9.0.16-3ubuntu0.18.04.2+esm5","9.0.16-3ubuntu0.18.04.2+esm6","9.0.16-3ubuntu0.18.04.2+esm7"],"ecosystem_specific":{"binaries":[{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"libtomcat9-embed-java"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"libtomcat9-java"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"tomcat9"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"tomcat9-admin"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"tomcat9-common"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"tomcat9-docs"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"tomcat9-examples"},{"binary_version":"9.0.16-3ubuntu0.18.04.2+esm7","binary_name":"tomcat9-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat9","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/tomcat9@9.0.31-1ubuntu0.9+esm2?arch=source&distro=esm-apps/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0.24-1","9.0.27-1","9.0.31-1","9.0.31-1ubuntu0.1","9.0.31-1ubuntu0.2","9.0.31-1ubuntu0.3","9.0.31-1ubuntu0.4","9.0.31-1ubuntu0.5","9.0.31-1ubuntu0.6","9.0.31-1ubuntu0.7","9.0.31-1ubuntu0.8","9.0.31-1ubuntu0.9","9.0.31-1ubuntu0.9+esm1","9.0.31-1ubuntu0.9+esm2"],"ecosystem_specific":{"binaries":[{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"libtomcat9-embed-java"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"libtomcat9-java"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"tomcat9"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"tomcat9-admin"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"tomcat9-common"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"tomcat9-docs"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"tomcat9-examples"},{"binary_version":"9.0.31-1ubuntu0.9+esm2","binary_name":"tomcat9-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat9","ecosystem":"Ubuntu:Pro:22.04:LTS","purl":"pkg:deb/ubuntu/tomcat9@9.0.58-1ubuntu0.2+esm3?arch=source&distro=esm-apps/jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.0.43-3","9.0.54-1","9.0.55-1","9.0.58-1","9.0.58-1ubuntu0.1","9.0.58-1ubuntu0.1+esm1","9.0.58-1ubuntu0.1+esm2","9.0.58-1ubuntu0.1+esm3","9.0.58-1ubuntu0.1+esm4","9.0.58-1ubuntu0.2","9.0.58-1ubuntu0.2+esm1","9.0.58-1ubuntu0.2+esm2","9.0.58-1ubuntu0.2+esm3"],"ecosystem_specific":{"binaries":[{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"libtomcat9-embed-java"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"libtomcat9-java"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"tomcat9"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"tomcat9-admin"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"tomcat9-common"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"tomcat9-docs"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"tomcat9-examples"},{"binary_version":"9.0.58-1ubuntu0.2+esm3","binary_name":"tomcat9-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat10","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/tomcat10@10.1.16-1?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.1.10-1","10.1.14-1","10.1.15-1","10.1.16-1"],"ecosystem_specific":{"binaries":[{"binary_version":"10.1.16-1","binary_name":"libtomcat10-embed-java"},{"binary_version":"10.1.16-1","binary_name":"libtomcat10-java"},{"binary_version":"10.1.16-1","binary_name":"tomcat10"},{"binary_version":"10.1.16-1","binary_name":"tomcat10-admin"},{"binary_version":"10.1.16-1","binary_name":"tomcat10-common"},{"binary_version":"10.1.16-1","binary_name":"tomcat10-docs"},{"binary_version":"10.1.16-1","binary_name":"tomcat10-examples"},{"binary_version":"10.1.16-1","binary_name":"tomcat10-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}},{"package":{"name":"tomcat11","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/tomcat11@11.0.6-1?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["11.0.6-1"],"ecosystem_specific":{"binaries":[{"binary_version":"11.0.6-1","binary_name":"libtomcat11-embed-java"},{"binary_version":"11.0.6-1","binary_name":"libtomcat11-java"},{"binary_version":"11.0.6-1","binary_name":"tomcat11"},{"binary_version":"11.0.6-1","binary_name":"tomcat11-admin"},{"binary_version":"11.0.6-1","binary_name":"tomcat11-common"},{"binary_version":"11.0.6-1","binary_name":"tomcat11-docs"},{"binary_version":"11.0.6-1","binary_name":"tomcat11-examples"},{"binary_version":"11.0.6-1","binary_name":"tomcat11-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2024/UBUNTU-CVE-2024-56337.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}