CVE-2024-38816: Path 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.
Published Sep 13, 2024 · Updated Dec 27, 2024
Affected packages
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 6.1.0, < 6.1.13
- Fixed in
- 6.1.13
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 6.1.0, < 6.1.13
- Fixed in
- 6.1.13
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 6.0.0, <= 6.0.23
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 6.0.0, <= 6.0.23
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
org.springframework:spring-webmvc
- Ecosystem
- Maven
- Affected
- >= 5.3.0, <= 5.3.39
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc
org.springframework:spring-webflux
- Ecosystem
- Maven
- Affected
- >= 5.3.0, <= 5.3.39
- Fixed in
- No patched version yet
- Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
Credited to Malayke, AlexeyTsvetkov, andreeaButerchi, aantonel-sysdig.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-47884
Spring Framework Improper Path Limitation in XsltView
critical9.8No fixAug 27, 2026CVE-2026-47890
Spring Framework Server Sent Event stream corruption while rendering fragments
critical9.8No fixAug 27, 2026CVE-2026-47892
Spring Framework Header Predicate Bypass in WebFlux Functional Endpoints
critical9.8No fixAug 27, 2026CVE-2026-41839
Spring Framework Escalation via Session Fixation in WebFlux
medium4.2No fixJun 9, 2026CVE-2026-41840
Spring Framework Denial of Service via Multipart Requests in WebFlux
medium5.9No fixJun 9, 2026CVE-2026-41841
Spring Framework Information Disclosure via Static Resource Cache in Spring MVC and WebFlux
medium5.9No fixJun 9, 2026
