Path Traversal Vulnerability in libspring-java Package

libspring-java Updated 03 Oct 2025

Summary

18/08/2025
N/A
No i
Medium
5.9

UBUNTU-CVE-2025-41242: Spring Framework MVC applications can be vulnerable to a “Path Traversal Vulnerability” when deployed on a non-compliant Servlet container. 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 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

The libspring-java package is a core component of the Spring Framework, widely used for building Java applications. It provides comprehensive infrastructure support for developing Java applications, including web applications. This package is essential for handling various aspects of application development, such as dependency injection, transaction management, and web MVC. However, it has been identified to have a vulnerability that can be exploited when deployed in certain environments.

Vulnerability Detail

The vulnerability arises from a Path Traversal issue in Spring Framework MVC applications when deployed on non-compliant Servlet containers. This occurs if the application is packaged as a WAR or uses an embedded Servlet container, and the container fails to reject suspicious URI sequences. If exploited, this vulnerability can allow unauthorized access to sensitive files on the server, potentially leading to data breaches or unauthorized data manipulation.

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, ensure that your Servlet container is configured to reject suspicious URI sequences. For example, if using Apache Tomcat, verify that the security features are enabled and properly configured to prevent path traversal attacks.

Conclusion

The libspring-java package has a critical Path Traversal vulnerability that can be exploited in certain deployment scenarios. It is essential to update the package to a patched version and ensure proper configuration of the Servlet container to mitigate risks. Regular monitoring and vulnerability assessments are crucial for maintaining application security.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

A Path Traversal Vulnerability allows attackers to access files and directories that are stored outside the intended directory structure, potentially leading to unauthorized data access.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access to sensitive files, data breaches, and potential manipulation of application data.

Yes, versions 4.3.30-2ubuntu1 and later are considered safe from this vulnerability. Always ensure you are using the latest patched version.

The CVSS score for this vulnerability is 5.9, indicating a medium severity level. It reflects the potential impact and exploitability of the vulnerability.

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