Spring Security Advisories

CVE-2022-22969: Denial-of-Service (DoS) in spring-security-oauth2

CRITICAL | APRIL 21, 2022 | CVE-2022-22969


Spring Security OAuth versions 2.5.x prior to 2.5.2 and older unsupported versions are susceptible to a Denial-of-Service (DoS) attack via the initiation of the Authorization Request in an OAuth 2.0 Client application. A malicious user or attacker can send multiple requests initiating the Authorization Request for the Authorization Code Grant, which has the potential of exhausting system resources using a single session. This vulnerability exposes OAuth 2.0 Client applications only.

Affected Spring Products and Versions

  • Spring Security OAuth
    • 2.5.x prior to 2.5.2
    • Older, unsupported versions


Users of affected versions should upgrade to the following versions:

  • Spring Security OAuth
    • 2.5.2+


This issue was identified and responsibly reported by Macchinetta/TERASOLUNA Framework Development Team.


  • 2022-04-21: Initial vulnerability report published.

Get ahead

VMware offers training and certification to turbo-charge your progress.

Learn more

Get support

Spring Runtime offers support and binaries for OpenJDK™, Spring, and Apache Tomcat® in one simple subscription.

Learn more

Upcoming events

Check out all the upcoming events in the Spring community.

View all