# CVE-2024-38816: Spring - Path Traversal

> Live exploitation tracking for CVE-2024-38816 by the CrowdSec Live Exploit Tracker, built from real-world attack data crowdsourced from CrowdSec's global network.

Page: https://tracker.crowdsec.net/cves/CVE-2024-38816

## Key facts

- **Exploitation phase:** Limited Exploitation. The vulnerability is known but shows very limited attacker interest or exploitation activity.
- **CVSS score:** 7.5
- **Public exploit available:** Yes
- **Affected products:** Spring
- **Weaknesses:** CWE-22 (Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal'))
- **Tags:** web_application

## 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

## CrowdSec analysis

[CVE-2024-38816](https://euvd.enisa.europa.eu/vulnerability/CVE-2024-38816) is a vulnerability impacting applications that serve static resources via certain Spring web frameworks, allowing attackers to perform path traversal and access arbitrary files on the underlying file system.

CrowdSec has been tracking this vulnerability and its exploits since 14th of October 2024.

Insights from the CrowdSec network reveal that the attackers trying to exploit CVE-2024-38816 are composed of a fairly even mix of opportunistic and targeted actors. Some attackers employ preliminary reconnaissance, while others use indiscriminate scanning.
CrowdSec network telemetry also shows that exploitation of CVE-2024-38816 has significantly declined over the past week. Attack volumes are well below the long-term average, suggesting attackers are rapidly losing interest. The vulnerability appears to be falling out of active use across most threat landscapes.

Exploitation attempts typically involve requests containing `/static/link/..` in the path, as attackers try to traverse directories to access sensitive files.

## Timeline

- 2024-09-13: CVE Published. CVE-2024-38816 is published to NVD.
- 2024-10-14: Rule Released. CrowdSec releases a rule to detect CVE-2024-38816 exploitation attempts against the CrowdSec Network.
- 2024-12-19: CrowdSec First Seen. CrowdSec observes in-the-wild exploitation of CVE-2024-38816 for the first time.

## References

- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2024/CVE-2024-38816.yaml
- https://security.netapp.com/advisory/ntap-20241227-0001/

## Live exploitation data

The [Live Exploit Tracker page](https://tracker.crowdsec.net/cves/CVE-2024-38816) follows observed exploitation activity for CVE-2024-38816. [Request an API key](https://tracker.crowdsec.net/request-api-key) for full access to its exploitation timeline, attacking IP addresses and blocklists.
