Skip to main content

Keycloak CVE-2026-96447

| EUVDEUVD-2026-117917 MEDIUM
Improper Authentication (CWE-287)
2026-11-06 secalert@redhat.com GHSA-7frc-6h33-jg59
4.2
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain stale stateless token for deleted subject
  2. Exploit
    Wait for service account recreation reusing client ID
  3. Execution
    Replay token so username fallback triggers
  4. Impact
    Gain access as new service account

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V6 - Authentication Authentication mechanism validation
MITRE ATT&CK

2 techniques across 2 tactics: Defense Evasion, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires a specific sequence: the user ID that is the subject of a stateless access token must have been deleted so that it no longer resolves, AND a new service account must be created that reuses the same client ID as a previously deleted client, so that Keycloak's username-based fallback resolves the stale token to the new account. The attacker must possess an old, still-structurally-valid stateless access token for the deleted subject (reflected as PR:L - prior possession of a legitimate token). Limiting factors: this is not a default-configuration, zero-precondition remote bypass - it depends on administrative deletion/recreation events with a matching client ID and on stateless token validation being in use, which is why the CVSS marks AC:H; impact is confined to the access rights of the recreated service account (C:L/I:L, A:N).

Impact

This is a genuine but low-urgency authentication flaw rather than a high-impact priority. The input CVSS base score is 4.2 (MEDIUM) with vector AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N: network-reachable but high attack complexity, requiring the attacker to already hold a valid (if stale) token (PR:L), with only Low confidentiality and Low integrity impact and no availability impact. There is no EPSS score and no CISA KEV listing in the supplied data, and the only references are a Red Hat advisory and a Red Hat Bugzilla entry - no exploit or PoC reference is present, so exploitation status is 'no public exploit identified at time of analysis.' No SSVC automatable/technical-impact decomposition is provided; the only decision signal is the vuln.today priority label 'this_month,' which is consistent with a medium-severity, not-yet-exploited issue. The signals are mutually consistent (medium CVSS, high complexity, no exploitation evidence, non-urgent decision label), so there is no conflict to flag - but note that EPSS and any SSVC exploitation verdict are MISSING from the input, so the real-world exploitation probability cannot be quantified. Realistic risk is bounded by the narrow precondition chain (a deleted user plus a recreated service account reusing a deleted client's ID), making this a targeted, opportunistic concern rather than a mass-exploitable one.

Exploit ScenarioDerived

An organization deletes a user (or client) in Keycloak and later creates a new service account that reuses the same client ID. An attacker who retained an old stateless access token for the deleted subject replays it; because the original user ID no longer resolves, Keycloak falls back to matching by username and binds the stale token to the newly created service account, granting the attacker that account's access. No public exploit code or PoC reference is present in the supplied data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Nov 06, 2026

Keycloak TokenManager can misresolve a stale stateless access token to a newly created service account when the original user ID has been deleted and the new account reuses the same client ID, potentially granting the old token the new account's limited access. Rated CVSS 4.2 (CWE-287) with a PR:L vector, exploitation requires a specific administrative deletion/recreation sequence and possession of an old, still-structurally-valid token, so this is a low-urgency authentication bypass rather than a default remote compromise. No public exploit identified at time of analysis.

RemediationAI

The available data does not identify an exact fixed Keycloak version or a vendor workaround, so patch status is not confirmed here. Operators should consult Red Hat's CVE page at https://access.redhat.com/security/cve/CVE-2026-96447 and Bugzilla at https://bugzilla.redhat.com/show_bug.cgi?id=2539288 to confirm affected builds and obtain the vendor-published fix; do not assume a specific release is patched based on this analysis alone. Until a fix is confirmed, the exploitation precondition can be narrowed by avoiding reuse of client IDs from deleted service accounts and by invalidating stale stateless tokens for deleted subjects, but the available sources do not confirm these as vendor-endorsed fixes.

Affected VersionsENISA

Red Hat build of Keycloak 26.6 patch: 26.6-24
Red Hat build of Keycloak 26.6 patch: 26.6.8-2

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The flaw is in Keycloak's TokenManager validation of stateless access tokens. CWE-287 (Improper Authentication) applies because, when the token subject's original user ID no longer resolves, the component falls back to username-based identification without confirming the username corresponds to the original token subject; if a service account with the same client ID as a deleted client is created, a stale token can resolve to that new account. The assessed vector is network-reachable with high attack complexity, low privileges required (consistent with an attacker holding an old token), no user interaction, unchanged scope, and low confidentiality and integrity impact with no availability impact. The trigger beyond this deletion and client-ID-reuse sequence is not described in the available sources.

Know when Keycloak gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 4.2 MEDIUM
AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
vuln.today AI 4.2 MEDIUM

Attacker must already hold a valid old token (PR:L) and depends on a narrow deletion/recreation sequence with a reused client ID (AC:H); access is limited to the service account, so C:L/I:L and A:N.

3.1 AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N
Red Hat 4.2 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
High
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
High
widely deployed open-source enterprise identity and access management platform
Social Media
1
Sightings
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
High
Technical Impact
Partial

Priority Score

21
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +21
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2014-3709 HIGH POC
8.8 Oct 18

The org.keycloak.services.resources.SocialResource.callback method in JBoss KeyCloak before 1.0.3.Final allows remote at

CVE-2024-1132 HIGH POC
8.1 Apr 17

A flaw was found in Keycloak, where it does not properly validate URLs included in a redirect. Rated high severity (CVSS

CVE-2023-6563 HIGH POC
7.7 Dec 14

An unconstrained memory consumption vulnerability was discovered in Keycloak. Rated high severity (CVSS 7.7), this vulne

CVE-2022-1466 MEDIUM POC
6.5 Apr 26

Due to improper authorization, Red Hat Single Sign-On is vulnerable to users performing actions that they should not be

CVE-2017-7474 CRITICAL
9.8 May 12

It was found that the Keycloak Node.js adapter 2.5 - 3.0 did not handle invalid tokens correctly. Rated critical severit

CVE-2026-76187 CRITICAL
9.8 Sep 15

Authentication bypass in the Apache Airflow Keycloak auth manager provider (apache-airflow-providers-keycloak below 0.10

CVE-2022-1245 CRITICAL
9.8 Jul 08

A privilege escalation flaw was found in the token exchange feature of keycloak. Rated critical severity (CVSS 9.8), thi

CVE-2019-14910 CRITICAL
9.8 Dec 05

A vulnerability was found in keycloak 7.x, when keycloak is configured with LDAP user federation and StartTLS is used in

CVE-2021-20195 CRITICAL
9.6 May 28

A flaw was found in keycloak in versions before 13.0.0. Rated critical severity (CVSS 9.6), this vulnerability is remote

CVE-2023-6134 MEDIUM POC
5.4 Dec 14

A flaw was found in Keycloak that prevents certain schemes in redirects, but permits them if a wildcard is appended to t

CVE-2022-0225 MEDIUM POC
5.4 Aug 26

A flaw was found in Keycloak. Rated medium severity (CVSS 5.4), this vulnerability is remotely exploitable, low attack c

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy