CVE-2026-9704 MEDIUM

CVE-2026-9704: Keycloak: keycloak: privilege escalation due to oversized subject_token jwt

Vendor Red Hat
Product Red Hat build of Keycloak 26.6.3
Weakness CWE-1284
Published May 27, 2026
Last update June 10, 2026

CVSS base score

6.8/10
Attack vector Network
Attack complexity High
Privileges required Low
User interaction None
Confidentiality High
Integrity High

CVSS vector

CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N

What the vulnerability does

01Description

A flaw was found in Keycloak. An authenticated user with low privileges can exploit this vulnerability by sending an oversized subject_token JSON Web Token (JWT) to the TokenEndpoint. When the token exceeds a 4000-character limit, it is silently dropped, causing the system to fall back to client credentials. This allows the user to gain the permissions of the client's service account, leading to privilege escalation.

Key dates

02Disclosure timeline

May 27, 2026 CVE published
June 10, 2026 Record updated