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 products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Spring | Spring | 5.3.x – < 5.3.40, 6.0.x – < 6.0.24, 6.1.x – < 6.1.13 | 5.3.40 |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libspring-java | No fix yet | — |
| Debian 13 | libspring-java | No fix yet | — |
| Debian 12 | libspring-java | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libspring-java | No fix yet | — |
| Ubuntu 26.04 LTS | libspring-java | No fix yet | — |
| Ubuntu 25.10 | libspring-java | No fix yet | — |
Show 6 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 22.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 20.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 18.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 16.04 LTS | libspring-java | No fix yet | — |
| Ubuntu Pro 14.04 LTS | libspring-java | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | thingsboard +4 | 3.8.1-r2 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 5 repositories
-
WULINPIN/CVE-2024-38816-PoC ★ 9 · Sep 28, 2024
CVE-2024-38816 Proof of Concept
-
startsw1th/cve-2024-38816-demo ★ 2 · Sep 20, 2024
-
jaloon/spring-webmvc5 ★ 0 · Apr 14, 2025
Fork spring-webmvc 5.3.39 to fix CVE-2024-38816, CVE-2024-38819
-
wdragondragon/spring-framework ★ 0 · Jan 2, 2025
Fixed cve-2024-38816 based on version 5.3.39
-
Anthony1078/App-vulnerable ★ 0 · Dec 2, 2024
CVE-2024-38816
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- WebMvc.fn/WebFlux.fn - Path Traversal http/cves/2024/CVE-2024-38816.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.springframework:spring-webflux | >= 6.1.0, < 6.1.13 | 6.1.13 | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webflux | >= 6.0.0, <= 6.0.23 | — | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webflux | >= 5.3.0, <= 5.3.39 | — | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webmvc | >= 6.1.0, < 6.1.13 | 6.1.13 | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webmvc | >= 6.0.0, <= 6.0.23 | — | GHSA-cx7f-g6mp-7hqm |
| Maven | org.springframework:spring-webmvc | >= 5.3.0, <= 5.3.39 | — | GHSA-cx7f-g6mp-7hqm |
Advisories 9
- WID-SEC-2024-3195 Oracle Communications: Mehrere Schwachstellen BSI CERT-Bund (WID) · Aug 11, 2026
- WID-SEC-2024-2135 VMware Tanzu Spring Framework: Schwachstelle ermöglicht Offenlegung von Informationen BSI CERT-Bund (WID) · Mar 23, 2026
- WID-SEC-2024-3180 Apache Camel und mehrere Red Hat Produkte: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 18, 2025
- NCSC-2025-0027 Kwetsbaarheden verholpen in Oracle Fusion Middleware NCSC-NL (Netherlands) · Jan 22, 2025
- NCSC-2025-0021 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Jan 22, 2025
- WID-SEC-2024-3681 Atlassian Bitbucket: Mehrere Schwachstellen BSI CERT-Bund (WID) · Dec 10, 2024
- NCSC-2024-0466 Kwetsbaarheden verholpen in Atlassian producten NCSC-NL (Netherlands) · Dec 6, 2024
- WID-SEC-2024-3508 Atlassian Confluence: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 19, 2024
- NCSC-2024-0414 Kwetsbaarheden verholpen in Oracle Communications NCSC-NL (Netherlands) · Oct 17, 2024