Keycloak-services: keycloak-services: stateless token preferred_username fallback enables identity rebinding (Red Hat Red Hat build of Keycloak 26.6)

CVE-2026-96447
MEDIUM 4.2

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 16 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
Affected products
Red Hat · Red Hat build of Keycloak 26.6
Red Hat · Red Hat build of Keycloak 26.6.8
Red Hat · Red Hat Single Sign-On 7
NVD status
Awaiting Analysis

Description

A flaw was found in the TokenManager component of Keycloak, an open-source identity and access management solution. The issue occurs during the validation of stateless access tokens when the original user ID no longer exists. Keycloak incorrectly falls back to using the username to identify the user without verifying if the identity matches the original token subject. This could allow an attacker with an old token to gain access to a newly created service account if it shares the same client ID as a previously deleted one.

Weaknesses (CWE)

  • CWE-287 — Improper Authentication

Credits

  • Red Hat would like to thank Michael Allen for reporting this issue.

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 4.2CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:Nredhat
CVSS 3.1MEDIUM 4.2CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:NNVD · secalert@redhat.com (Secondary)

European references

Affected products

ProductAffected versions
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-operator-bundle
unaffected : ≥ 26.6.8-2 < *
Other versions : affected
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-rhel9
unaffected : ≥ 26.6-24 < *
Other versions : affected
Red Hat · Red Hat build of Keycloak 26.6
rhbk/keycloak-rhel9-operator
unaffected : ≥ 26.6-24 < *
Other versions : affected
Red Hat · Red Hat build of Keycloak 26.6.8
keycloak-services
Other versions : unaffected
Red Hat · Red Hat build of Keycloak 26.6.8
rhbk/keycloak-rhel9
Other versions : unaffected
Red Hat · Red Hat Single Sign-On 7
keycloak-services
Other versions : unaffected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD