DoS Vulnerability in libspring-java

libspring-java Updated 02 Oct 2025

Summary

12/05/2022
N/A
No i
Medium
5.3

CVE-2022-22970: In spring framework versions prior to 5.3.20+ , 5.2.22+ and old unsupported versions, applications that handle file uploads are vulnerable to DoS attack if they rely on data binding to set a MultipartFile or javax.servle... Affects libspring-java across 2 version ranges.

< 2bdab894f159e54d833c5850c81a55a0596e7b14 >= 5acffaa72da10ba42fe547eeea44d8615cbf99b9, <= cedb5874b72c3311c8c6e2f03a53537590f2e0dc

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

libspring-java is a Java library that provides a framework for building web applications. It is widely used in the Debian ecosystem, specifically in versions 10, 11, 12, and 13. This library allows applications to handle file uploads efficiently. However, prior to versions 5.3.20+ and 5.2.22+, applications using libspring-java are vulnerable to a Denial of Service (DoS) attack if they rely on data binding to set a MultipartFile or javax.servlet.Part to a field in a model object.

Vulnerability Detail

The vulnerability (CVE-2022-22970) arises from a flaw in the handling of file uploads in libspring-java. Attackers can exploit this vulnerability to launch DoS attacks by submitting specially crafted files that trigger excessive resource consumption. This can lead to the unavailability of the affected application, impacting its availability and performance. It is important to note that this vulnerability only affects versions prior to 5.3.20+ and 5.2.22+ of 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 →

Workaround

If upgrading to the recommended versions is not immediately feasible, a temporary workaround can be implemented. One possible workaround is to manually validate the uploaded files before processing them. This can be achieved by implementing custom validation logic to check the file size, file type, and other relevant attributes. By implementing strict validation, the risk of accepting malicious files can be reduced.

Conclusion

In conclusion, libspring-java versions prior to 5.3.20+ and 5.2.22+ are vulnerable to a DoS attack when handling file uploads. It is crucial to upgrade to the recommended versions or implement the provided workaround to mitigate the risk. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libspring-java →

Share this vulnerability

FAQ

Versions prior to 5.3.20+ and 5.2.22+ of libspring-java are affected by this vulnerability.

The vulnerability allows attackers to launch DoS attacks, potentially leading to the unavailability and performance degradation of the affected application.

At the time of this report, there are no known public exploits targeting this vulnerability.

Yes, the CVSS score for this vulnerability is 5.3.

Yes, upgrading to libspring-java versions 5.3.20+ or 5.2.22+ includes the necessary patches to fix this vulnerability.

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