CVE-2024-38816: Path traversal vulnerability in functional web frameworks
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.3.40, 6.0.24, 6.1.13
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- 5 proofs of concept on GitHub, 1 Nuclei template
- Exploitation: none
- Automatable: yes
- Technical impact: partial
Summary
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
Timeline
- CVE published
- CISA SSVC assessment
Exploitation: none · Automatable: yes · Technical impact: partial
- Record last updated
- EPSS reached 10%
FIRST estimates at least a 10% chance of exploitation in the next 30 days
Affected versions
- Spring Framework
From 5.3.x · fixed in 5.3.40; From 6.0.x · fixed in 6.0.24; From 6.1.x · fixed in 6.1.13
- org.springframework:spring-webmvcMaven
From 6.1.0 · fixed in 6.1.13
- org.springframework:spring-webfluxMaven
From 6.1.0 · fixed in 6.1.13
- org.springframework:spring-webmvcMaven
From 6.0.0 · through 6.0.23
- org.springframework:spring-webfluxMaven
From 6.0.0 · through 6.0.23
- org.springframework:spring-webmvcMaven
From 5.3.0 · through 5.3.39
- org.springframework:spring-webfluxMaven
From 5.3.0 · through 5.3.39