Vulnerability · Published Sep 13, 2024 · Assigned by vmware
CVE-2024-38816CVE-2024-38816: Path traversal vulnerability in functional web frameworks
High 7.5
In plain English
A high-severity path traversal in Spring from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 21.3% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.
Official 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
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libspring-java | no fix listed | DEBIAN-CVE-2024-38816 |
| Debian:13 | libspring-java | no fix listed | DEBIAN-CVE-2024-38816 |
| Debian:14 | libspring-java | no fix listed | DEBIAN-CVE-2024-38816 |
| Maven | org.springframework:spring-webflux | no fix listed | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webflux | 6.1.13 | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webflux | no fix listed | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webmvc | 6.1.13 | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webmvc | no fix listed | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webmvc | no fix listed | GHSA-cx7f-g6mp-7hqm |
| Ubuntu:25.10 | libspring-java | no fix listed | UBUNTU-CVE-2024-38816 |
| Ubuntu:26.04:LTS | libspring-java | no fix listed | UBUNTU-CVE-2024-38816 |
| Ubuntu:26.10 | libspring-java | no fix listed | UBUNTU-CVE-2024-38816 |
Affected products (as reported)
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N