CVE-2022-22970: Denial of Service in Spring Framework

Summary

13/05/2022
Yes i
High
7.5

CVE-2022-22970: Denial of service in Spring Framework. Affects org.springframework:spring-beans across 2 version ranges.

< 5.2.22.RELEASE >= 5.3.0, < 5.3.20

Fixed in 5.2.22.RELEASE or 5.3.20, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2022-22970 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Spring Framework is a popular open-source application framework for Java. It provides comprehensive infrastructure support for developing Java applications. The 'org.springframework:spring-core' package is a core component of the Spring Framework, providing essential functionality for dependency injection, data binding, and other features. This vulnerability affects versions prior to 5.3.20+, 5.2.22+, and old unsupported versions of the Spring Framework.

Vulnerability Detail

The vulnerability in the Spring Framework allows for a Denial of Service (DoS) attack in applications that handle file uploads. If these applications rely on data binding to set a MultipartFile or javax.servlet.Part to a field in a model object, they are vulnerable. An attacker can exploit this vulnerability by sending specially crafted file upload requests, causing the application to consume excessive resources and potentially crash. This can lead to service disruption and impact the availability of the affected application.

How To Fix

Latest published version: 7.1.0-RC1 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 5.2.22.RELEASE 5.2.22.RELEASE
  • >= 5.3.0, < 5.3.20 5.3.20

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

There is no specific workaround provided for this vulnerability. However, as a general best practice, it is recommended to implement input validation and size restrictions for file uploads. Additionally, monitoring and rate limiting file upload requests can help mitigate the risk of DoS attacks.

Conclusion

The vulnerability in the Spring Framework can lead to a Denial of Service (DoS) attack in applications handling file uploads. It is crucial to upgrade to a fixed version of the Spring Framework and review the application code to ensure secure and efficient handling of file uploads. Implementing input validation, size restrictions, and monitoring can further mitigate the risk. For further support and assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.springframework:spring-beans →

Share this vulnerability

FAQ

This vulnerability can lead to a Denial of Service (DoS) attack, causing service disruption and potentially impacting the availability of the affected application.

Versions prior to 5.3.20+, 5.2.22+, and old unsupported versions of the Spring Framework are affected.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file to the playground, and it will analyze and alert you in real-time for any open-source vulnerabilities, including this one.

At the time of this report, there are no known public exploits specifically targeting this vulnerability. However, it is always recommended to promptly address and fix vulnerabilities to minimize the risk of exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework:spring-beans.

How To Fix

Latest published version: 7.1.0-RC1 as of 23 Oct 2026

Upgrading to it may include breaking changes; the versions below are the minimum fixed release for this vulnerability.

If you can't move to the latest

The minimum fixed version depends on the release line you run.

  • < 5.2.22.RELEASE 5.2.22.RELEASE
  • >= 5.3.0, < 5.3.20 5.3.20

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. 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