Skip to main content
← All vulnerabilities
CVE-2024-38816GHSA-CX7F-G6MP-7HQM

CVE-2024-38816: Path traversal vulnerability in functional web frameworks

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.3.40, 6.0.24, 6.1.13
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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: partial

  3. Record last updated
  4. 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

References 7

spring.io

GitHub · projectdiscovery/nuclei-templates

GitHub · Anthony1078/App-vulnerable

GitHub · WULINPIN/CVE-2024-38816-PoC

GitHub · jaloon/spring-webmvc5

GitHub · startsw1th/cve-2024-38816-demo

GitHub · wdragondragon/spring-framework