CVE-2024-38816: Path traversal vulnerability in functional web frameworks
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
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2024-38816?
CVE-2024-38816 is classified as a high severity vulnerability due to its potential for path traversal attacks.
How do I fix CVE-2024-38816?
To fix CVE-2024-38816, upgrade your Spring WebFlux or Spring WebMVC to version 6.1.13 or later.
Which versions of Spring are affected by CVE-2024-38816?
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.
What type of attack does CVE-2024-38816 enable?
CVE-2024-38816 allows attackers to perform path traversal attacks, potentially accessing any file in the filesystem accessible to the Spring process.
Is there a temporary workaround for CVE-2024-38816?
There are no documented temporary workarounds for CVE-2024-38816; upgrading to the fixed version is the recommended solution.