CVE-2018-1304

NameCVE-2018-1304
DescriptionThe 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-1301-1, DLA-1400-1, DLA-1450-1, DSA-4281-1

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
tomcat9 (PTS)bullseye (security), bullseye9.0.43-2~deb11u10fixed
bookworm9.0.70-2fixed
sid, trixie9.0.95-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
tomcat7sourcewheezy7.0.28-4+deb7u18DLA-1301-1
tomcat7sourcejessie7.0.56-3+really7.0.88-1DLA-1400-1
tomcat7source(unstable)7.0.72-3
tomcat8sourcejessie8.0.14-1+deb8u12DLA-1450-1
tomcat8sourcestretch8.5.14-1+deb9u3DSA-4281-1
tomcat8source(unstable)8.5.28-1
tomcat8.0source(unstable)(unfixed)unimportant
tomcat9source(unstable)(not affected)

Notes

- tomcat9 <not-affected> (Fixed before initial upload to Debian)
tomcat8.0 builds only tomcat8.0-user and libtomcat8.0-java
Since 7.0.72-3, src:tomcat7 only builds the Servlet API
https://svn.apache.org/r1823307 (8.5.x)
https://svn.apache.org/r1823308 (8.0.x)
https://svn.apache.org/r1823309 (7.0.x)
https://bz.apache.org/bugzilla/show_bug.cgi?id=62067

Search for package or bug name: Reporting problems