Vulnerability in Red Hat Build Of Keycloak
CVE-2026-9704
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 6.8 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.003, 25.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
Weakness classification (CWE)
References
- access.redhat.com/security/cve/CVE-2026-9704 (Mitigation, vdb-entry, Vendor Advisory)
- RHBZ#2481877 (issue-tracking, Issue Tracking, Vendor Advisory)
- RHSA-2026:25098 (vendor-advisory)
- RHSA-2026:25097 (vendor-advisory)
- RHSA-2026:30049 (vendor-advisory)
- RHSA-2026:30050 (vendor-advisory)