Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.springframework/spring-webmvc
  4. ›
  5. CVE-2024-38816

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

September 13, 2024 (updated December 27, 2024)

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

References

  • github.com/advisories/GHSA-cx7f-g6mp-7hqm
  • github.com/spring-projects/spring-framework
  • github.com/spring-projects/spring-framework/commit/d86bf8b2056429edf5494456cffcb2b243331c49
  • nvd.nist.gov/vuln/detail/CVE-2024-38816
  • security.netapp.com/advisory/ntap-20241227-0001
  • spring.io/security/cve-2024-38816

Code Behaviors & Features

Detect and mitigate CVE-2024-38816 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 5.3.0 up to 5.3.39, all versions starting from 6.0.0 up to 6.0.23, all versions starting from 6.1.0 before 6.1.13

Fixed versions

  • 6.1.13

Solution

Upgrade to version 6.1.13 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

maven/org.springframework/spring-webmvc/CVE-2024-38816.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:54 +0000.