Authentication Bypass Affecting org.springframework.security:spring-security-oauth2-client package, versions [6.1.0,6.1.7)[6.2.0,6.2.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Authentication Bypass vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-ORGSPRINGFRAMEWORKSECURITY-6254468
  • published20 Feb 2024
  • disclosed19 Feb 2024
  • creditRogério Sorroche

Introduced: 19 Feb 2024

CVE-2024-22234  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade org.springframework.security:spring-security-oauth2-client to version 6.1.7, 6.2.2 or higher.

Overview

Affected versions of this package are vulnerable to Authentication Bypass when directly using the AuthenticationTrustResolver.isFullyAuthenticated(Authentication) method and passing a null authentication parameter to it.

Note:

An application is not vulnerable if any of the following is true:

  1. the application does not use AuthenticationTrustResolver.isFullyAuthenticated(Authentication) directly

  2. the application does not pass null to AuthenticationTrustResolver.isFullyAuthenticated

  3. the application only uses isFullyAuthenticated via Method Security or HTTP Request Security

CVSS Scores

version 3.1