Path Traversal Affecting org.springframework:spring-webflux 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-7945491
- 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-webflux
to version 6.1.13 or higher.
Overview
org.springframework:spring-webflux is a Spring Framework module that contains support for reactive HTTP and WebSocket clients as well as for reactive server web applications including REST, HTML browser, and WebSocket style interactions.
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.