CVE-2026-9704

Keycloak: keycloak: privilege escalation due to oversized subject_token jwt

HIGH
8.8
CVSS Score
Published: May 27, 2026 at 12:56 PM UTC
Updated: June 26, 2026 at 08:16 AM UTC
1 product affected across 1 vendorBuild of Keycloak

Using Red Hat Build of Keycloak by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Build of Keycloak - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH8.8
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions26.4
Vendor states this is fixed in 26.4-19 (unaffected)
Vendor states this is fixed in 26.4.13 (unaffected)
Vendor states this is fixed in 26.4.13-1 (unaffected)
Vendor states this is fixed in 26.6-6 (unaffected)
Vendor states this is fixed in 26.6.3 (unaffected)
Vendor states this is fixed in 26.6.3-3 (unaffected)

References (6)

VDB Entryx_refsource_REDHATMitigationVendor Advisory
Source: cverecord
https://access.redhat.com/security/cve/CVE-2026-9704
Issue Trackingx_refsource_REDHATVendor Advisory
Source: cverecord
https://bugzilla.redhat.com/show_bug.cgi?id=2481877
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:25098
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:25097
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:30049
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:30050

SSVC — Action Prioritization

SSVCNo known exploitNot automatableTotal impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-1284

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card