CVE-2024-38816
HIGH 7.5CVSS 3.1Path traversal vulnerability in functional web frameworks
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
- Published
- 13 Sep 2024
- Last modified
- 10 Sep 2026
- Assigned by
- security@vmware.com
- NVD status
- Deferred
- Weakness
- CWE-22
- Also known as
- GHSA-cx7f-g6mp-7hqm
- Sources
- NVDJSONOSV GHSA-cx7f-g6mp-7hqmJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.springframework:spring-webmvc | >= 6.1.0, < 6.1.13 | 6.1.13 |
| OSV | Maven | org.springframework:spring-webflux | >= 6.1.0, < 6.1.13 | 6.1.13 |
| OSV | Maven | org.springframework:spring-webmvc | >= 6.0.0, <= 6.0.23 | |
| OSV | Maven | org.springframework:spring-webflux | >= 6.0.0, <= 6.0.23 | |
| OSV | Maven | org.springframework:spring-webmvc | >= 5.3.0, <= 5.3.39 | |
| OSV | Maven | org.springframework:spring-webflux | >= 5.3.0, <= 5.3.39 |
References
- https://spring.io/security/cve-2024-38816 · WEB
- https://security.netapp.com/advisory/ntap-20241227-0001/ · WEB
- 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
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 13 Sep 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 13 Sep 2024)