CVE-2026-9704Redhat Build Of Keycloak
High 8.8
Follow: this CVE · Redhat · Redhat Build Of Keycloak We alert you by email or Slack (account required).
- Priority
- 53
- CVSS 3.1
- 8.8
- EPSS
- —
- Auth required
- Yes
- Published
- May 27, 2026
- Updated
- Jun 26, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1284
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Build Of Keycloak.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-server-spi-private |
< 26.6.3 |
26.6.3 |
— |
| Maven | org.keycloak:keycloak-services |
< 26.6.3 |
26.6.3 |
— |
Per OSV / GitHub Advisories (GHSA-rr5q-3xwr-f323). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| redhat | build_of_keycloak | all |
Official sources
References
Links published by the sources. Open them with care.
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com
- access.redhat.com Mitigation Vendor Advisory
- bugzilla.redhat.com Issue Tracking Vendor Advisory