CVE-2024-38816
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
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Vendor advisory: debian — https://security-tracker.debian.org/tracker/CVE-2024-38816
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | affected | |
| debian | bullseye | affected | |
| debian | forky | affected | |
| debian | sid | affected | |
| debian | trixie | affected | |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| Maven | org.springframework:spring-webmvc | >=6.1.0,<6.1.13 | 6.1.13 |
| Maven | org.springframework:spring-webflux | >=6.1.0,<6.1.13 | 6.1.13 |
| Maven | org.springframework:spring-webmvc | >=6.0.0,<=6.0.23 | |
| Maven | org.springframework:spring-webflux | >=6.0.0,<=6.0.23 | |
| Maven | org.springframework:spring-webmvc | >=5.3.0,<=5.3.39 | |
| Maven | org.springframework:spring-webflux | >=5.3.0,<=5.3.39 | |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-38816
- https://github.com/spring-projects/spring-framework/commit/d86bf8b2056429edf5494456cffcb2b243331c49
- https://github.com/spring-projects/spring-framework
- https://security.netapp.com/advisory/ntap-20241227-0001
- https://spring.io/security/cve-2024-38816
- https://security-tracker.debian.org/tracker/CVE-2024-38816
Verify integrity in audit chain (admin only). AS-IS.