CVE-2024-38816
JSON

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 packageVersionsReported by
Spring Frameworkfrom 5.3.x before 5.3.40, from 6.0.x before 6.0.24, from 6.1.x before 6.1.13CVE List
spring_by_vmware_tanzu spring_frameworkfrom 5.3.0 before 5.3.40, from 6.0.0 before 6.0.24, from 6.1.0 before 6.1.13CVE 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.39GitHub 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.39GitHub Advisory Database

All scores

vmware7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
GitHub7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-22

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

SourceRecordLicence
CVE ListCVE-2024-38816 changed 2025-03-18CVE Terms of Use
GitHub Advisory DatabaseGHSA-cx7f-g6mp-7hqm changed 2026-09-10CC-BY-4.0
NVDCVE-2024-38816 changed 2026-06-17Public domain