CVE-2024-38819 Spring Framework Path Traversal vulnerability

High 7.5 Published Updated

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.

PackageAffectedFixed in
org.springframework:spring-webflux MavenAll versions to 5.3.40None
org.springframework:spring-webflux MavenAll versions to 5.3.40None
org.springframework:spring-webflux MavenFrom 6.0.0 to 6.0.24None
org.springframework:spring-webflux MavenFrom 6.0.0 to 6.0.24None
org.springframework:spring-webflux MavenFrom 6.1.06.1.14
org.springframework:spring-webflux MavenFrom 6.1.06.1.14
6 more packages
org.springframework:spring-webmvc MavenAll versions to 5.3.40None
org.springframework:spring-webmvc MavenAll versions to 5.3.40None
org.springframework:spring-webmvc MavenFrom 6.0.0 to 6.0.24None
org.springframework:spring-webmvc MavenFrom 6.0.0 to 6.0.24None
org.springframework:spring-webmvc MavenFrom 6.1.06.1.14
org.springframework:spring-webmvc MavenFrom 6.1.06.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.

Is CVE-2024-38819 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free