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

libspring-java Updated 02 Oct 2025

Summary

19/12/2024
N/A
No i
Unrated
Not published

CVE-2024-38819: 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 Your last release was probably never penetration tested 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 widely used library in Java applications that facilitates the development of web applications using the Spring framework. It provides essential features for building robust and scalable web applications, including dependency injection, aspect-oriented programming, and support for various web technologies. However, certain configurations in the WebMvc.fn and WebFlux.fn frameworks can expose applications to path traversal vulnerabilities, allowing attackers to access sensitive files on the server.

Vulnerability Detail

The vulnerability identified as CVE-2024-38819 arises from the improper handling of HTTP requests in applications serving static resources through the WebMvc.fn or WebFlux.fn frameworks. An attacker can exploit this vulnerability by crafting malicious HTTP requests that manipulate file paths, potentially allowing them to access any file on the server's file system that is accessible to the Spring application process. This could lead to unauthorized access to sensitive information, including configuration files, user data, and other critical resources.

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 implement strict validation of incoming file paths in your application. Ensure that any file access requests are sanitized and do not allow traversal sequences (e.g., '../') that could lead to unauthorized file access. Additionally, consider restricting access to sensitive directories and files through proper server configuration.

Conclusion

CVE-2024-38819 represents a significant security risk for applications using the libspring-java package, particularly those utilizing the WebMvc.fn or WebFlux.fn frameworks. It is crucial for developers to update their packages to the latest versions and implement necessary security measures to protect against potential exploitation.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2024-38819 is a vulnerability in the libspring-java package that allows attackers to exploit path traversal issues, potentially gaining unauthorized access to files on the server.

You can check if your application is affected by using the Vulert platform, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to analyze your manifest file for vulnerabilities.

If exploited, this vulnerability could lead to unauthorized access to sensitive files, potentially compromising user data, configuration settings, and other critical information.

Yes, a patched version of the libspring-java package is available. It is recommended to update to the latest version to mitigate the risk.

If an immediate update is not possible, implement strict input validation and restrict access to sensitive files as a temporary workaround until you can apply the patch.

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