GitHub Advisoryadvisory · Maven
GHSA-cx7f-g6mp-7hqm Path traversal vulnerability in functional web frameworks
HIGH
Official page ↗
- Aliases
- CVE-2024-38816
- Ecosystem
- Maven
- Packages
- org.springframework:spring-webmvc, org.springframework:spring-webflux
- Severity
- High
- CVSS vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Weaknesses
- CWE-22
- Reviewed
- 2024-09-13
Affected packages
• Maven org.springframework:spring-webmvc: >= 6.1.0, < 6.1.13 → fixed in 6.1.13
• Maven org.springframework:spring-webflux: >= 6.1.0, < 6.1.13 → fixed in 6.1.13
• Maven org.springframework:spring-webmvc: >= 6.0.0, <= 6.0.23 (no fix yet)
• Maven org.springframework:spring-webflux: >= 6.0.0, <= 6.0.23 (no fix yet)
• Maven org.springframework:spring-webmvc: >= 5.3.0, <= 5.3.39 (no fix yet)
• Maven org.springframework:spring-webflux: >= 5.3.0, <= 5.3.39 (no fix yet)
Description
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
Related
Alias · CVE (1)
- CVE-2024-38816 Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal… vulnerability
Weakness · CWE (1)
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness
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