CVE-2024-38819 Spring Framework Path Traversal vulnerability
Attackers can read arbitrary files on the server via path traversal in Spring functional web frameworks, exposing sensitive data.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-38819?
CVE-2024-38819 is a high-severity path traversal vulnerability in Spring Framework, published on 19 Dec 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-22
Which versions are affected by CVE-2024-38819?
12 open source packages ship an affected version, including org.springframework:spring-webflux and org.springframework:spring-webmvc.
| Package | Affected | Fixed in |
|---|---|---|
org.springframework:spring-webflux Maven | All versions to 5.3.40 | None |
org.springframework:spring-webflux Maven | All versions to 5.3.40 | None |
org.springframework:spring-webflux Maven | From 6.0.0 to 6.0.24 | None |
org.springframework:spring-webflux Maven | From 6.0.0 to 6.0.24 | None |
org.springframework:spring-webflux Maven | From 6.1.0 | 6.1.14 |
org.springframework:spring-webflux Maven | From 6.1.0 | 6.1.14 |
6 more packages
org.springframework:spring-webmvc Maven | All versions to 5.3.40 | None |
org.springframework:spring-webmvc Maven | All versions to 5.3.40 | None |
org.springframework:spring-webmvc Maven | From 6.0.0 to 6.0.24 | None |
org.springframework:spring-webmvc Maven | From 6.0.0 to 6.0.24 | None |
org.springframework:spring-webmvc Maven | From 6.1.0 | 6.1.14 |
org.springframework:spring-webmvc Maven | From 6.1.0 | 6.1.14 |
How do I fix CVE-2024-38819?
Upgrade org.springframework:spring-webflux to 6.1.14 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2024-38819 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-38819 exists.
Public exploit code: 1 Nuclei template and 5 proofs of concept on GitHub.
Sources
Also known as CLEANSTART-2026-TE96968, CLSA-2025-1742342444, DEBIAN-CVE-2024-38819, ECHO-9581-aff6-f7db, GHSA-g5vr-rgqm-vf78, ROOT-APP-MAVEN-CVE-2024-38819 and 1 more.