🛡️ CVE-2024-38816 — spring-webflux
Description
Path traversal vulnerability in functional web frameworks
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
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.
Weakness class
CVE-2024-38816 is classified as CWE-22: Path Traversal. A file path built from user input is not confined to the intended directory, letting an attacker reach files elsewhere on the filesystem.
Affected software
CVE-2024-38816 is recorded against 3 packages.
- org.springframework:spring-webflux (from 5.3.0)
- org.springframework:spring-webmvc (from 5.3.0)
- unknown
Timeline and source
Published on 13 September 2024 and last revised on 4 February 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
security.netapp.com (Web)
spring.io (Web)
CVE-2024-38816 on other distributions
Each distribution ships its own build and its own fixed version. Pick the one you run:
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| org.springframework:spring-webflux | 5.3.0 | — |
| org.springframework:spring-webmvc | 5.3.0 | — |
| unknown | — | — |
Similar Threats
- Unknown CLSA-2024-1727136032
- Unknown CLSA-2024-1727308813
- Unknown CLSA-2025-1742342444
- Unknown CLSA-2025-1743120048
- Unknown CLSA-2025-1744156857
More CVE 2024 advisories
Browse all of CVE 2024 in the advisory index.
Site Security Check
Is spring-webflux part of your stack?
CVE-2024-38816 is rated CVSS 8.0 High. BotEraser scans your installation against known CVE records and tells you whether this vulnerability applies to the versions you actually run.
Scan My Site Free →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.