GHSA-r936-gwx5-v52f
Spring Framework MVC Applications Path Traversal Vulnerability
Quick fix
GHSA-r936-gwx5-v52f — org.springframework:spring-webmvc: upgrade to the fixed version with the command below.
# pom.xml: bump <version>6.2.10</version> for org.springframework:spring-webmvcDetails
Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant Servlet container.
An application can be vulnerable when all the following are true:
* the application is deployed as a WAR or with an embedded Servlet container * the Servlet container does not reject suspicious sequences https://jakarta.ee/specifications/servlet/6.1/jakarta-servlet-spec-6.1.html#uri-path-canonicalization * the application serves static resources https://docs.spring.io/spring-framework/reference/web/webmvc/mvc-config/static-resources.html#page-title with Spring resource handling
We have verified that applications deployed on Apache Tomcat or Eclipse Jetty are not vulnerable, as long as default security features are not disabled in the configuration. Because we cannot check exploits against all Servlet containers and configuration variants, we strongly recommend upgrading your application.
Are you affected?
Enter the version of the package you're using.
Affected packages
6.2.0Fixed in: 6.2.10# pom.xml: bump <version>6.2.10</version> for org.springframework:spring-webmvc6.1.0No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.
6.0.0No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.
5.3.0No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.