High severity · published Sep 13, 2024
CVE-2024-38816
CVE-2024-38816: Path traversal vulnerability in functional web frameworks
7.5
CVSS
21.3%
EPSS
No
On KEV
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
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)21.3% · higher than 98% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
SP
Spring · Spring
5.3.x before 5.3.40; 6.0.x before 6.0.24; 6.1.x before 6.1.13 · source: vendor
SF
Spring Framework · Spring BY Vmware Tanzu
5.3.0 before 5.3.40; 6.0.0 before 6.0.24; 6.1.0 before 6.1.13 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2024-38816
CVE.org
https://www.cve.org/CVERecord?id=CVE-2024-38816
spring.io
https://spring.io/security/cve-2024-38816
security.netapp.com
https://security.netapp.com/advisory/ntap-20241227-0001/
More from Spring
9.1
CVE-2024-38821
Authorization Bypass of Static Resources in WebFlux Applications
6.1
CVE-2024-22258
CVE-2024-22258: PKCE Downgrade in Spring Authorization Server
5.3
CVE-2024-38828
CVE-2024-38828: DoS via Spring MVC controller method with byte[] parameter
