7.5
CWE
22
Advisory Published
Advisory Published
Updated

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

First published: Fri Sep 13 2024(Updated: )

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

Credit: security@vmware.com security@vmware.com

Affected SoftwareAffected VersionHow to fix
maven/org.springframework:spring-webflux>=5.3.0<=5.3.39
maven/org.springframework:spring-webmvc>=5.3.0<=5.3.39
maven/org.springframework:spring-webflux>=6.0.0<=6.0.23
maven/org.springframework:spring-webmvc>=6.0.0<=6.0.23
maven/org.springframework:spring-webflux>=6.1.0<6.1.13
6.1.13
maven/org.springframework:spring-webmvc>=6.1.0<6.1.13
6.1.13

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Parent vulnerabilities

(Appears in the following advisories)

Frequently Asked Questions

  • What is the severity of CVE-2024-38816?

    CVE-2024-38816 is classified as a high severity vulnerability due to its potential for path traversal attacks.

  • How do I fix CVE-2024-38816?

    To fix CVE-2024-38816, upgrade your Spring WebFlux or Spring WebMVC to version 6.1.13 or later.

  • Which versions of Spring are affected by CVE-2024-38816?

    CVE-2024-38816 affects Spring WebFlux and Spring WebMVC versions between 5.3.0 and 5.3.39, as well as versions between 6.0.0 and 6.0.23.

  • What type of attack does CVE-2024-38816 enable?

    CVE-2024-38816 allows attackers to perform path traversal attacks, potentially accessing any file in the filesystem accessible to the Spring process.

  • Is there a temporary workaround for CVE-2024-38816?

    There are no documented temporary workarounds for CVE-2024-38816; upgrading to the fixed version is the recommended solution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203