CVE-2024-38816
CVE-2024-38816: Path traversal vulnerability in functional web frameworks
Severity Score
Exploit Likelihood
Affected Versions
Public Exploits
5Exploited in Wild
-Decision
Descriptions
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
A flaw was found in Spring applications using the WebMvc.fn or WebFlux.fn frameworks. This issue can allow attackers to perform path traversal attacks via crafted HTTP requests when the application serves static resources using RouterFunctions and explicitly configures resource handling with a FileSystemResource location.
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
CVSS Scores
SSVC
- Decision:Attend
Timeline
- 2024-06-19 CVE Reserved
- 2024-09-13 CVE Published
- 2024-09-25 First Exploit
- 2025-03-18 CVE Updated
- 2025-03-30 EPSS Updated
- ---------- Exploited in Wild
- ---------- KEV Due Date
CWE
- CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
CAPEC
References (8)
URL | Tag | Source |
---|---|---|
https://spring.io/security/cve-2024-38816 |
URL | Date | SRC |
---|---|---|
https://github.com/masa42/CVE-2024-38816-PoC | 2024-09-25 | |
https://github.com/WULINPIN/CVE-2024-38816-PoC | 2024-09-26 | |
https://github.com/startsw1th/cve-2024-38816-demo | 2024-10-21 | |
https://github.com/Anthony1078/App-vulnerable | 2024-12-02 | |
https://github.com/wdragondragon/spring-framework | 2025-01-02 |
URL | Date | SRC |
---|
URL | Date | SRC |
---|---|---|
https://access.redhat.com/security/cve/CVE-2024-38816 | 2024-10-14 | |
https://bugzilla.redhat.com/show_bug.cgi?id=2312060 | 2024-10-14 |
Affected Vendors, Products, and Versions
Vendor | Product | Version | Other | Status | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Vendor | Product | Version | Other | Status | <-- --> | Vendor | Product | Version | Other | Status |
Spring Search vendor "Spring" | Spring Search vendor "Spring" for product "Spring" | * | - |
Affected
| ||||||
Spring By Vmware Tanzu Search vendor "Spring By Vmware Tanzu" | Spring Framework Search vendor "Spring By Vmware Tanzu" for product "Spring Framework" | * | - |
Affected
|