Get ahead
VMware offers training and certification to turbo-charge your progress.
Learn moreApplications 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.
This is similar to CVE-2024-38816, but with different input.
Similarly, an application is vulnerable when both of the following are true:
RouterFunctions
to serve static resourcesFileSystemResource
locationMalicious requests are blocked and rejected whe the Spring Security HTTP Firewall is in use. Unlike CVE-2024-38816, applications deployed on Tomcat or Jetty are vulnerable.
Spring Framework:
Users of affected versions should upgrade to the corresponding fixed version.
Affected version(s) | Fix version | Availability |
---|---|---|
5.3.x | 5.3.41 | Commercial |
6.0.x | 6.0.25 | Commercial |
6.1.x | 6.1.14 | OSS |
No further mitigation steps are necessary.
The issue was reported responsibly by Masato Anzai of Aeye Security Lab, Inc, and also by a second, anonymous reporter.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy