CVE-2024-38816
Description
Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. An attacker can craft malicious HTTP requests and obtain any file on the file system that is also accessible to the process in which the Spring application is running. Specifically, an application is vulnerable when both of the following are true: * the web application uses RouterFunctions to serve static resources * resource handling is explicitly configured with a FileSystemResource location However, malicious requests are blocked and rejected when any of the following is true: * the Spring Security HTTP Firewall https://docs.spring.io/spring-security/reference/servlet/exploits/firewall.html is in use * the application runs on Tomcat or Jetty
How to fix
- org.springframework:spring-webmvc6.1.13 or later
- org.springframework:spring-webflux6.1.13 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| org.springframework:spring-webmvcMaven | 6.1.0 ≤ v < 6.1.13, 6.0.0 ≤ v ≤ 6.0.23, 5.3.0 ≤ v ≤ 5.3.39 | 6.1.13 |
| org.springframework:spring-webfluxMaven | 6.1.0 ≤ v < 6.1.13, 6.0.0 ≤ v ≤ 6.0.23, 5.3.0 ≤ v ≤ 5.3.39 | 6.1.13 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.