VDB
Sign up
MEDIUM5.9

GHSA-6rxj-58jh-436r

Apache Tomcat unauthorized access vulnerability

Quick fix

GHSA-6rxj-58jh-436r — org.apache.tomcat.embed:tomcat-embed-core: upgrade to the fixed version with the command below.

# pom.xml: bump <version>9.0.5</version> for org.apache.tomcat.embed:tomcat-embed-core

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 9.0.0Fixed in: 9.0.5
Fix# pom.xml: bump <version>9.0.5</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 8.5.0Fixed in: 8.5.28
Fix# pom.xml: bump <version>8.5.28</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 8.0.0Fixed in: 8.0.51
Fix# pom.xml: bump <version>8.0.51</version> for org.apache.tomcat.embed:tomcat-embed-core
Maven/org.apache.tomcat.embed:tomcat-embed-core
Introduced in: 7.0.0Fixed in: 7.0.86
Fix# pom.xml: bump <version>7.0.86</version> for org.apache.tomcat.embed:tomcat-embed-core

References