{"id":"UBUNTU-CVE-2018-1304","details":"The URL pattern of \"\" (the empty string) which exactly maps to the context root was not correctly handled in Apache Tomcat 9.0.0.M1 to 9.0.4, 8.5.0 to 8.5.27, 8.0.0.RC1 to 8.0.49 and 7.0.0 to 7.0.84 when used as part of a security constraint definition. This caused the constraint to be ignored. It was, therefore, possible for unauthorised users to gain access to web application resources that should have been protected. Only security constraints with a URL pattern of the empty string were affected.","modified":"2026-02-04T02:35:59.266861Z","published":"2018-02-28T00:00:00Z","related":["USN-3665-1"],"upstream":["CVE-2018-1304"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2018-1304"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3665-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2018-1304"}],"affected":[{"package":{"name":"tomcat7","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/tomcat7@7.0.52-1ubuntu0.14?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.0.52-1ubuntu0.14"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"libservlet3.0-java"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"libtomcat7-java"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"tomcat7"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"tomcat7-admin"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"tomcat7-common"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"tomcat7-docs"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"tomcat7-examples"},{"binary_version":"7.0.52-1ubuntu0.14","binary_name":"tomcat7-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1304.json"}},{"package":{"name":"tomcat8","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/tomcat8@8.0.32-1ubuntu1.6?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.0.32-1ubuntu1.6"}]}],"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"],"ecosystem_specific":{"availability":"No subscription required","binaries":[{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"libservlet3.1-java"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"libtomcat8-java"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"tomcat8"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"tomcat8-admin"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"tomcat8-common"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"tomcat8-docs"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"tomcat8-examples"},{"binary_version":"8.0.32-1ubuntu1.6","binary_name":"tomcat8-user"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2018/UBUNTU-CVE-2018-1304.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/2018/UBUNTU-CVE-2018-1304.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"},{"type":"Ubuntu","score":"medium"}]}