Path Traversal Vulnerability in libspring-java Package: CVE-2024-38816

libspring-java Updated 03 Oct 2025

Summary

13/09/2024
N/A
No i
High
7.5

UBUNTU-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 3.0.6.RELEASE-10 – 3.0.6.RELEASE-9. 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

The libspring-java package is a core component of the Spring Framework, which is widely used for building Java applications. It provides comprehensive infrastructure support for developing Java applications, including web applications. The package includes various modules such as Spring AOP, Spring Beans, Spring Context, and more, which facilitate dependency injection, aspect-oriented programming, and web application development. However, a critical vulnerability has been identified that affects applications using RouterFunctions to serve static resources, exposing them to potential path traversal attacks.

Vulnerability Detail

The vulnerability, identified as CVE-2024-38816, arises when applications serving static resources through the functional web frameworks WebMvc.fn or WebFlux.fn are improperly configured. An attacker can exploit this vulnerability by crafting malicious HTTP requests that allow them to access any file on the file system that the Spring application can access. This is particularly concerning when resource handling is configured with a FileSystemResource location. The vulnerability is mitigated if the Spring Security HTTP Firewall is in use or if the application runs on Tomcat or Jetty, which block such malicious requests.

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 configure your application to use the Spring Security HTTP Firewall to block malicious requests. Additionally, avoid using FileSystemResource locations for serving static resources until the package is updated.

Conclusion

The CVE-2024-38816 vulnerability poses a significant risk to applications using the libspring-java package. It is crucial to update to the latest patched version to safeguard against potential path traversal attacks. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2024-38816 is a path traversal vulnerability in the libspring-java package that allows attackers to access sensitive files on the server.

You can use Vulert, which monitors open-source vulnerabilities in your software. By uploading your manifest file, you can check for any vulnerabilities, including CVE-2024-38816.

If exploited, this vulnerability can lead to unauthorized access to sensitive files, potentially compromising the security of the application and the underlying system.

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 immediate updates are not possible, implement the Spring Security HTTP Firewall as a temporary measure to block malicious requests.

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