CVE-2026-9704: Keycloak - Privilege Escalation
- Cve: CVE-2026-9704
- Name: Keycloak - Privilege Escalation
- 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.
- Impact: Authenticated low-privilege users can escalate privileges to those of the client's service account.
- Remediation: Update to the latest version of Keycloak.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation
- Requirement type: logged_in
- Requirements: Attacker must be an authenticated user with low privileges
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.0032
- Epss percentile: 0.25475
- Assignee: [email protected]
- Published at: 2026-05-27T14:17:40Z
- Age in days: 181
- Modified at: 2026-06-26T08:16:26Z
- References total: 6
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-9704
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-1284 | Improper Validation of Specified Quantity in Input |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| redhat:build_of_keycloak | all versions | no | nvd | /v1/products/redhat/build_of_keycloak |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| keycloak/keycloak | commit, fix, issues, package, pull | yes | /v1/repositories/keycloak/keycloak |
Index
- Repositories: 15
- Repositories high signal: 11
- Packages: 2
Exploitation
- Remote: yes
- Authentication required: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts