Path Traversal Vulnerability in libspring-java: Risk of Unauthorized File Access

libspring-java Updated 02 Oct 2025

Summary

13/09/2024
N/A
No i
Unrated
Not published

DEBIAN-CVE-2024-38816: Applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are vulnerable to path traversal attacks. Affects libspring-java versions 4.3.30-1 – 4.3.30-3. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libspring-java is a core component of the Spring Framework, widely used for building web applications in Java. It provides essential functionalities for creating web applications, including support for serving static resources. However, certain configurations can expose applications to security risks, particularly when serving files from the file system.

Vulnerability Detail

The vulnerability arises when applications using the Spring Framework's RouterFunctions to serve static resources are configured with a FileSystemResource location. This configuration allows attackers to craft malicious HTTP requests that can exploit path traversal vulnerabilities, potentially granting them access to any file on the server's file system that the Spring application can access. The risk is heightened in environments where Spring Security is not implemented or when the application is not running on secure servers like Tomcat or Jetty.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, you can restrict access to sensitive files by configuring your web application to use a secure file serving mechanism, or by implementing a custom request filter that validates incoming requests before processing them.

Conclusion

The path traversal vulnerability in libspring-java poses a significant risk to applications that improperly configure static resource serving. By updating to the latest version and implementing security best practices, developers can mitigate these risks effectively.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

A path traversal vulnerability allows an attacker to access files and directories that are stored outside the intended directory, potentially leading to unauthorized data exposure.

You can check if your application is affected by using tools like Vulert, which monitors and alerts for open-source vulnerabilities in real-time. You can also use the Vulert playground to test your application without any signup.

If exploited, this vulnerability can lead to unauthorized access to sensitive files, data breaches, and potential compromise of the server hosting the application.

Yes, implementing Spring Security and ensuring proper configuration of file serving mechanisms can significantly reduce the risk of path traversal vulnerabilities.

If an immediate update is not possible, consider applying the suggested workarounds and closely monitor your application for any suspicious activity.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback