Directory Traversal Vulnerability in libspring-java Package: CVE-2016-9878

libspring-java Updated 03 Oct 2025

Summary

29/12/2016
N/A
Yes i
High
7.5

UBUNTU-CVE-2016-9878: An issue was discovered in Pivotal Spring Framework before 3.2.18, 4.2.x before 4.2.9, and 4.3.x before 4.3.5. Affects libspring-java versions < 3.0.6.RELEASE-13ubuntu0.1~esm1. Fixed in 3.0.6.RELEASE-13ubuntu0.1~esm1. 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 Pivotal Spring Framework, which is widely used for building enterprise-level Java applications. It provides comprehensive infrastructure support for developing Java applications, including features for dependency injection, aspect-oriented programming, and transaction management. However, prior to version 3.2.18, the framework had a significant vulnerability that allowed for directory traversal attacks, potentially compromising the security of applications built using this package.

Vulnerability Detail

An issue was discovered in the Pivotal Spring Framework before version 3.2.18, where paths provided to the ResourceServlet were not properly sanitized. This oversight could allow attackers to exploit the vulnerability through directory traversal attacks, gaining unauthorized access to sensitive files on the server. The vulnerability is classified with a CVSS score of 7.5, indicating a high severity level, and could lead to significant data exposure if left unaddressed.

How To Fix

Minimum fixed version

3.0.6.RELEASE-13ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libspring-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate patching is not feasible, consider implementing access controls to restrict access to the ResourceServlet or sanitizing input paths manually to prevent directory traversal attacks. However, these are temporary measures and should not replace a proper update.

Conclusion

CVE-2016-9878 represents a significant security vulnerability in the libspring-java package of the Pivotal Spring Framework, allowing for directory traversal attacks. It is crucial for users to update to the patched version to safeguard their applications. Additionally, utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

CVE-2016-9878 is a vulnerability in the Pivotal Spring Framework that allows for directory traversal attacks due to improper sanitization of paths provided to the ResourceServlet.

You can use the Vulert platform to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without requiring any signup.

If exploited, this vulnerability could allow attackers to access sensitive files on the server, leading to data breaches and potential compromise of the application.

Yes, a patched version of the libspring-java package is available. Updating to version 3.2.13-5ubuntu0.1~esm1 or later will resolve the issue.

The CVSS score for CVE-2016-9878 is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

How To Fix

Minimum fixed version

3.0.6.RELEASE-13ubuntu0.1~esm1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libspring-java

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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