CVE-2024-38819: Spring Framework Path Traversal vulnerability
CVE-2024-38819 · Severity: high · CVSS 7.5 · Published 2024-12-19
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.
Yes. org.springframework:spring-webflux (Maven): upgrade to 6.1.14 or later; org.springframework:spring-webmvc (Maven): upgrade to 6.1.14 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2024-38819?
Check whether you run org.springframework:spring-webflux (Maven) or org.springframework:spring-webmvc (Maven) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
org.springframework:spring-webflux (Maven): upgrade to 6.1.14 or later
# set org.springframework:spring-webflux to 6.1.14 in your pom.xml or build.gradle
org.springframework:spring-webmvc (Maven): upgrade to 6.1.14 or later
# set org.springframework:spring-webmvc to 6.1.14 in your pom.xml or build.gradle