First published: Fri Sep 13 2024(Updated: )
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
Credit: security@vmware.com security@vmware.com
Affected Software | Affected Version | How to fix |
---|---|---|
maven/org.springframework:spring-webflux | >=5.3.0<=5.3.39 | |
maven/org.springframework:spring-webmvc | >=5.3.0<=5.3.39 | |
maven/org.springframework:spring-webflux | >=6.0.0<=6.0.23 | |
maven/org.springframework:spring-webmvc | >=6.0.0<=6.0.23 | |
maven/org.springframework:spring-webflux | >=6.1.0<6.1.13 | 6.1.13 |
maven/org.springframework:spring-webmvc | >=6.1.0<6.1.13 | 6.1.13 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2024-38816 is classified as a high severity vulnerability due to its potential for path traversal attacks.
To fix CVE-2024-38816, upgrade your Spring WebFlux or Spring WebMVC to version 6.1.13 or later.
CVE-2024-38816 affects Spring WebFlux and Spring WebMVC versions between 5.3.0 and 5.3.39, as well as versions between 6.0.0 and 6.0.23.
CVE-2024-38816 allows attackers to perform path traversal attacks, potentially accessing any file in the filesystem accessible to the Spring process.
There are no documented temporary workarounds for CVE-2024-38816; upgrading to the fixed version is the recommended solution.