NewApp Monitoring is liveSign up free
AgentbeamBeta
Open-source package vulnerability · Maven

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

highCVSS 3.1 7.5GHSA-cx7f-g6mp-7hqm

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.

Published Sep 13, 2024 · Updated Dec 27, 2024

Affected packages

org.springframework:spring-webmvc

Ecosystem
Maven
Affected
>= 6.1.0, < 6.1.13
Fixed in
6.1.13
Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc

org.springframework:spring-webflux

Ecosystem
Maven
Affected
>= 6.1.0, < 6.1.13
Fixed in
6.1.13
Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux

org.springframework:spring-webmvc

Ecosystem
Maven
Affected
>= 6.0.0, <= 6.0.23
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc

org.springframework:spring-webflux

Ecosystem
Maven
Affected
>= 6.0.0, <= 6.0.23
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux

org.springframework:spring-webmvc

Ecosystem
Maven
Affected
>= 5.3.0, <= 5.3.39
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.springframework:spring-webmvc

org.springframework:spring-webflux

Ecosystem
Maven
Affected
>= 5.3.0, <= 5.3.39
Fixed in
No patched version yet
Check
mvn dependency:tree -Dincludes=org.springframework:spring-webflux

Advisory details

From the GitHub Advisory Database (CC BY 4.0).

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

Credited to Malayke, AlexeyTsvetkov, andreeaButerchi, aantonel-sysdig.

References

How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology

More Maven vulnerabilities

All Maven entries