Path Traversal Vulnerability in libspring-java

libspring-java Updated 02 Oct 2025

Summary

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

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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libspring-java is a package in the Debian ecosystem that provides functionality for web applications using the Spring framework. It includes components such as WebMvc.fn and WebFlux.fn for serving static resources. However, applications using RouterFunctions to serve static resources with explicitly configured FileSystemResource locations are vulnerable to path traversal attacks.

Vulnerability Detail

The path traversal vulnerability allows an attacker to craft malicious HTTP requests and access any file on the file system that is accessible to the Spring application process. This can lead to unauthorized access to sensitive files and potential data leakage. The vulnerability is present when the web application uses RouterFunctions to serve static resources and resource handling is configured with a FileSystemResource location. However, the vulnerability is mitigated if the Spring Security HTTP Firewall or if the application runs on 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

If an update is not immediately available, a possible workaround is to implement additional security measures such as input validation and sanitization to prevent path traversal attacks. This can involve checking user input for malicious characters or patterns and ensuring that only allowed paths are accessed.

Conclusion

The path traversal vulnerability in libspring-java exposes web applications to potential unauthorized access to files on the file system. It is important to update the package to a fixed version or implement appropriate security measures to mitigate the risk. Regularly monitoring for vulnerabilities using tools like Vulert can help ensure the security of your application.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

libspring-java is a package in the Debian ecosystem that provides functionality for web applications using the Spring framework.

A path traversal attack, also known as directory traversal, is a technique where an attacker manipulates input to access files or directories outside of the intended scope. In this vulnerability, it allows unauthorized access to files on the file system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

There are no known exploits for this vulnerability at the moment. However, it is important to address the vulnerability promptly to prevent potential attacks.

The path traversal vulnerability can lead to unauthorized access to sensitive files on the file system, potentially resulting in data leakage or unauthorized modification of files.

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