Vulnerability · Published Sep 13, 2024 · Assigned by vmware

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

High 7.5

In plain English

A high-severity path traversal in Spring from Spring. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 21.3% (higher than 98% of all known vulnerabilities). Ready-made attack tooling exists: Nuclei, public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)21.3%top 2.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack tooling2Nuclei, Public PoC

Official 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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12libspring-javano fix listedDEBIAN-CVE-2024-38816
Debian:13libspring-javano fix listedDEBIAN-CVE-2024-38816
Debian:14libspring-javano fix listedDEBIAN-CVE-2024-38816
Mavenorg.springframework:spring-webfluxno fix listedGHSA-cx7f-g6mp-7hqm
Mavenorg.springframework:spring-webflux6.1.13GHSA-cx7f-g6mp-7hqm
Mavenorg.springframework:spring-webfluxno fix listedGHSA-cx7f-g6mp-7hqm
Mavenorg.springframework:spring-webmvc6.1.13GHSA-cx7f-g6mp-7hqm
Mavenorg.springframework:spring-webmvcno fix listedGHSA-cx7f-g6mp-7hqm
Mavenorg.springframework:spring-webmvcno fix listedGHSA-cx7f-g6mp-7hqm
Ubuntu:25.10libspring-javano fix listedUBUNTU-CVE-2024-38816
Ubuntu:26.04:LTSlibspring-javano fix listedUBUNTU-CVE-2024-38816
Ubuntu:26.10libspring-javano fix listedUBUNTU-CVE-2024-38816

Affected products (as reported)

VendorProductVersions
Spring Spring 5.3.x – before 5.3.406.0.x – before 6.0.246.1.x – before 6.1.13

Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

References