CVE-2022-22969: Denial of service in Spring Security OAuth

Summary

22/04/2022
Yes i
Moderate
6.5

CVE-2022-22969: Denial of service in Spring Security OAuth2. Affects org.springframework.security.oauth:spring-security-oauth2 across 2 version ranges.

>= 2.4.0.RELEASE, < 2.4.2.RELEASE >= 2.5.0.RELEASE, < 2.5.2.RELEASE

Fixed in 2.4.2.RELEASE or 2.5.2.RELEASE, depending on the release line you run. 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 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 Security OAuth package is a widely used library for implementing OAuth 2.0 Client applications in Java. It provides functionality for secure authentication and authorization using the OAuth 2.0 protocol. This vulnerability affects versions 2.5.x prior to 2.5.2 and older unsupported versions of the package.

Vulnerability Detail

The vulnerability in Spring Security OAuth allows for a Denial-of-Service (DoS) attack through the initiation of the Authorization Request in an OAuth 2.0 Client application. An attacker can exploit this vulnerability by sending multiple requests to initiate the Authorization Request for the Authorization Code Grant. This can lead to the exhaustion of system resources using a single session. It is important to note that this vulnerability only affects OAuth 2.0 Client applications.

How To Fix

Latest published version: 2.5.2.RELEASE as of 22 Oct 2026

The newest release already contains this fix.

If you can't move to the latest

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

  • >= 2.4.0.RELEASE, < 2.4.2.RELEASE 2.4.2.RELEASE

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 known workaround for this vulnerability. It is recommended to upgrade to the fixed version of the package as soon as possible.

Conclusion

The vulnerability in Spring Security OAuth can lead to a Denial-of-Service (DoS) attack in OAuth 2.0 Client applications. It is crucial to upgrade to version 2.5.2.RELEASE or later of the package to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.springframework.security.oauth:spring-security-oauth2 →

Share this vulnerability

FAQ

Spring Security OAuth is a library for implementing OAuth 2.0 Client applications in Java. It provides functionality for secure authentication and authorization using the OAuth 2.0 protocol.

This vulnerability allows for a Denial-of-Service (DoS) attack in OAuth 2.0 Client applications. An attacker can exhaust system resources using a single session by initiating multiple Authorization Requests for the Authorization Code Grant.

Versions 2.5.x prior to 2.5.2 and older unsupported versions of Spring Security OAuth are affected by this vulnerability.

No, there is no known workaround for this vulnerability. It is recommended to upgrade to the fixed version of the package.

To update the Spring Security OAuth package, modify the dependency in your project's pom.xml file to version 2.5.2.RELEASE or later. Then rebuild your application.

Related vulnerabilities

Recent vulnerabilities recorded for org.springframework.security.oauth:spring-security-oauth2.

How To Fix

Latest published version: 2.5.2.RELEASE as of 22 Oct 2026

The newest release already contains this fix.

If you can't move to the latest

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

  • >= 2.4.0.RELEASE, < 2.4.2.RELEASE 2.4.2.RELEASE

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