GHSA-cx7f-g6mp-7hqm
Path traversal vulnerability in functional web frameworks
Quick fix
GHSA-cx7f-g6mp-7hqm — org.springframework:spring-webmvc: upgrade to the fixed version with the command below.
# pom.xml: bump <version>6.1.13</version> for org.springframework:spring-webmvcDetails
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
Are you affected?
Enter the version of the package you're using.
Affected packages
6.1.0Fixed in: 6.1.13# pom.xml: bump <version>6.1.13</version> for org.springframework:spring-webmvc6.1.0Fixed in: 6.1.13# pom.xml: bump <version>6.1.13</version> for org.springframework:spring-webflux6.0.0No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.
6.0.0No fixed version published yet for org.springframework:spring-webflux (maven). Pin to a known-safe version or switch to an alternative.
5.3.0No fixed version published yet for org.springframework:spring-webmvc (maven). Pin to a known-safe version or switch to an alternative.
5.3.0No fixed version published yet for org.springframework:spring-webflux (maven). Pin to a known-safe version or switch to an alternative.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-38816[ADVISORY]
- https://github.com/spring-projects/spring-framework/commit/d86bf8b2056429edf5494456cffcb2b243331c49[WEB]
- https://github.com/spring-projects/spring-framework[PACKAGE]
- https://security.netapp.com/advisory/ntap-20241227-0001[WEB]
- https://spring.io/security/cve-2024-38816[WEB]