Loading HuntDB...

GHSA-cx7f-g6mp-7hqm

GitHub Security Advisory

Path traversal vulnerability in functional web frameworks

✓ GitHub Reviewed HIGH Has CVE

Advisory Details

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

Maven org.springframework:spring-webmvc
Affected versions: 6.1.0 (fixed in 6.1.13)
Maven org.springframework:spring-webflux
Affected versions: 6.1.0 (fixed in 6.1.13)
Maven org.springframework:spring-webmvc
Affected versions: 6.0.0 (last affected: 6.0.23)
Maven org.springframework:spring-webflux
Affected versions: 6.0.0 (last affected: 6.0.23)
Maven org.springframework:spring-webmvc
Affected versions: 5.3.0 (last affected: 5.3.39)
Maven org.springframework:spring-webflux
Affected versions: 5.3.0 (last affected: 5.3.39)

Related CVEs

Key Information

GHSA ID
GHSA-cx7f-g6mp-7hqm
Published
September 13, 2024 6:30 AM
Last Modified
December 27, 2024 6:30 PM
CVSS Score
7.5 /10
Primary Ecosystem
Maven
Primary Package
org.springframework:spring-webmvc
GitHub Reviewed
✓ Yes

Dataset

Last updated: September 18, 2025 6:29 AM

Data from GitHub Advisory Database. This information is provided for research and educational purposes.