Live threats

All CVEs / Spring

CVE-2024-38816Spring

High 7.5 No auth needed

Priority
61
CVSS 3.1
7.5
EPSS
7.4%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Sep 13, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

What happens

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

Original NVD text.

What to do

  1. Apply the vendor's security update for Spring.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Maven org.springframework:spring-webflux ≥ 6.1.0 < 6.1.13 6.1.13 —
Maven org.springframework:spring-webflux ≥ 6.0.0 ≤ 6.0.23 no fixed version —
Maven org.springframework:spring-webflux ≥ 5.3.0 ≤ 5.3.39 no fixed version —
Maven org.springframework:spring-webmvc ≥ 6.1.0 < 6.1.13 6.1.13 —
Maven org.springframework:spring-webmvc ≥ 6.0.0 ≤ 6.0.23 no fixed version —
Maven org.springframework:spring-webmvc ≥ 5.3.0 ≤ 5.3.39 no fixed version —

Per OSV / GitHub Advisories (GHSA-cx7f-g6mp-7hqm). Check the version in your lockfile before upgrading.

Affected products

As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.

Official sources

References

Links published by the sources. Open them with care.