Improper Authentication Affecting keycloak package, versions <24.0.3-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.05% (18th 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 Improper Authentication vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-WOLFILATEST-KEYCLOAK-6663723
  • published19 Apr 2024
  • disclosed25 Apr 2024

Introduced: 19 Apr 2024

CVE-2023-6787  (opens in a new tab)
CWE-287  (opens in a new tab)

How to fix?

Upgrade Wolfi keycloak to version 24.0.3-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream keycloak package and not the keycloak package as distributed by Wolfi. See How to fix? for Wolfi relevant fixed versions and status.

A flaw was found in Keycloak that occurs from an error in the re-authentication mechanism within org.keycloak.authentication. This flaw allows hijacking an active Keycloak session by triggering a new authentication process with the query parameter "prompt=login," prompting the user to re-enter their credentials. If the user cancels this re-authentication by selecting "Restart login," an account takeover may occur, as the new session, with a different SUB, will possess the same SID as the previous session.

CVSS Scores

version 3.1