Path Traversal Affecting org.springframework:spring-webmvc package, versions [,6.1.13)
Threat Intelligence
Do your applications use this vulnerable package?
In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.
Test your applications- Snyk ID SNYK-JAVA-ORGSPRINGFRAMEWORK-7945490
- published 13 Sep 2024
- disclosed 13 Sep 2024
- credit Gabor Legrady
Introduced: 13 Sep 2024
CVE-2024-38816 Open this link in a new tabHow to fix?
Upgrade org.springframework:spring-webmvc
to version 6.1.13 or higher.
Overview
org.springframework:spring-webmvc is a package that provides Model-View-Controller (MVC) architecture and ready components that can be used to develop flexible and loosely coupled web applications.
Affected versions of this package are vulnerable to Path Traversal via the WebMvc.fn
and WebFlux.fn
frameworks. An attacker can access any file on the file system that is also accessible to the process in which the Spring application is running by crafting malicious HTTP requests.
Note:
This is only exploitable if the web application uses RouterFunctions
to serve static resources and resource handling is explicitly configured with a FileSystemResource
location.
Workaround
This vulnerability can be mitigated by using the Spring Security HTTP Firewall or running the application on Tomcat or Jetty.