7.5high
CVE-2024-38816: Path traversal vulnerability in functional web frameworks
- Severity
- 7.5high CVSS:3.1 by vmware
- Exploit likelihood
- 21.3% (higher than 97% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-cx7f-g6mp-7hqm
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
| Product or package | Versions | Reported by |
|---|---|---|
| Spring Framework | from 5.3.x before 5.3.40, from 6.0.x before 6.0.24, from 6.1.x before 6.1.13 | CVE List |
| spring_by_vmware_tanzu spring_framework | from 5.3.0 before 5.3.40, from 6.0.0 before 6.0.24, from 6.1.0 before 6.1.13 | CVE List |
| org.springframework:spring-webmvc (Maven) | from 6.1.0 before 6.1.13, from 6.0.0 up to 6.0.23, from 5.3.0 up to 5.3.39 | GitHub Advisory Database |
| org.springframework:spring-webflux (Maven) | from 6.1.0 before 6.1.13, from 6.0.0 up to 6.0.23, from 5.3.0 up to 5.3.39 | GitHub Advisory Database |
All scores
| vmware | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| GitHub | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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
NVD (es)
Las aplicaciones que brindan recursos estáticos a través de los marcos web funcionales WebMvc.fn o WebFlux.fn son vulnerables a ataques de path traversal. Un atacante puede crear solicitudes HTTP maliciosas y obtener cualquier archivo en el sistema de archivos que también sea accesible para el proceso en el que se ejecuta la aplicación Spring. Específicamente, una aplicación es vulnerable cuando se cumplen las dos condiciones siguientes: * la aplicación web usa RouterFunctions para brindar recursos estáticos * el manejo de recursos está configurado explícitamente con una ubicación FileSystemResource Sin embargo, las solicitudes maliciosas se bloquean y rechazan cuando se cumple alguna de las siguientes condiciones: * el firewall HTTP de Spring Security https://docs.spring.io/spring-security/reference/servlet/exploits/firewall.html está en uso * la aplicación se ejecuta en Tomcat o Jetty
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-38816 changed 2025-03-18 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-cx7f-g6mp-7hqm changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-38816 changed 2026-06-17 | Public domain |