Log Injection Vulnerability in libspring-java Package

libspring-java Updated 02 Oct 2025

Summary

28/10/2021
N/A
No i
Unrated
Not published

DEBIAN-CVE-2021-22096: In Spring Framework versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions, it is possible for a user to provide malicious input to cause the insertion of additional log entries. 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

The libspring-java package is a core component of the Spring Framework, widely used for building enterprise-level applications in Java. It provides comprehensive infrastructure support for developing Java applications, including features for dependency injection, transaction management, and web applications. The package is essential for developers looking to create robust and scalable applications. However, certain versions of this package are vulnerable to a log injection issue, which can compromise application security and integrity.

Vulnerability Detail

In Spring Framework versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions, it is possible for a user to provide malicious input that can lead to the insertion of additional log entries. This vulnerability arises from improper handling of user input in logging mechanisms, allowing attackers to manipulate log data, potentially leading to information disclosure or further attacks.

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, developers can sanitize user inputs before logging them to prevent malicious data from being recorded. This can be done by implementing input validation and escaping special characters in the input strings.

Conclusion

The log injection vulnerability in the libspring-java package poses significant risks to applications using affected versions. It is crucial for developers to update to the patched versions and implement best practices for input handling to safeguard their applications.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

The vulnerability affects libspring-java versions 5.3.0 - 5.3.10, 5.2.0 - 5.2.17, and older unsupported versions.

The risks include unauthorized manipulation of log entries, which can lead to information disclosure and further exploitation of the application.

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

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 input validation and sanitization as a temporary workaround to mitigate the risk.

Related vulnerabilities

Recent vulnerabilities recorded for libspring-java.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

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