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.
Specifically, an application is vulnerable when both of the following are true:
RouterFunctions
to serve static resourcesFileSystemResource
locationHowever, malicious requests are blocked and rejected when any of the following is true:
Spring Framework
Users of affected versions should upgrade to the corresponding fixed version.
Affected version(s) | Fix version | Availability |
---|---|---|
5.3.x | 5.3.40 | Commercial |
6.0.x | 6.0.24 | Commercial |
6.1.x | 6.1.13 | OSS |
No other mitigation steps are necessary.
Users of older, unsupported versions could enable Spring Security's Firewall in their application, or switch to using Tomcat or Jetty as a Web server because they reject such malicious requests.
The issue was identified and responsibly reported by Gabor Legrady.
To report a security vulnerability for a project within the Spring portfolio, see the Security Policy