CVSS 3.1
8.8 highCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HHigh (8.8) in redhat build of keycloak. EPSS 0.3% estimated probability of exploitation activity in the next 30 days. Fixed in org.keycloak:keycloak-server-spi-private 26.6.3.
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:Horg.keycloak:keycloak-server-spi-private (Maven): fixed in 26.6.3org.keycloak:keycloak-services (Maven): fixed in 26.6.3Explain CVE-2026-9704 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-9704?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-9704?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-9704 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
From the CNA's record in the CVE List.
| Product | Fixed in |
|---|---|
| Red Hat build of Keycloak 26.4 | 26.4.13-1 |
| Red Hat build of Keycloak 26.4 | 26.4-19 |
| Red Hat build of Keycloak 26.6 | 26.6.3-3 |
| Red Hat build of Keycloak 26.6 | 26.6-6 |
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-rr5q-3xwr-f323 | Maven | org.keycloak:keycloak-server-spi-private | <26.6.3 | 26.6.3 |
| GHSA-rr5q-3xwr-f323 | Maven | org.keycloak:keycloak-services | <26.6.3 | 26.6.3 |
Red Hat rates this Moderate.
This Moderate flaw in Keycloak allows an authenticated, low-privileged user to escalate privileges. By submitting an oversized `subject_token` JWT to the TokenEndpoint, the system defaults to client credentials, granting the attacker the client's service account permissions. This bypass occurs when the token exceeds a 4000-character limit, leading to an unintended privilege gain.
To prevent the silent dropping of oversized `subject_token` JWTs, configure Keycloak to enforce strict parameter validation. This involves setting the `fail-fast` parameter to `true` for the `TokenEndpoint` configuration, which will cause requests with oversized parameters to be rejected explicitly rather than silently processed with reduced privileges. Consult Keycloak documentation for the exact method to modify these settings. A restart of the Keycloak service may be necessary for the changes to apply.
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-operator-bundle:26.4.13-1 | Fixed 2026-06-25 | RHSA-2026:30050 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9:26.4-19 | Fixed 2026-06-25 | RHSA-2026:30050 |
| Red Hat build of Keycloak 26.4 | rhbk/keycloak-rhel9-operator:26.4-19 | Fixed 2026-06-25 | RHSA-2026:30050 |
| Red Hat build of Keycloak 26.4.13 | rhbk/keycloak-rhel9 | Fixed 2026-06-25 | RHSA-2026:30049 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-operator-bundle:26.6.3-3 | Fixed 2026-06-10 | RHSA-2026:25097 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-rhel9:26.6-6 | Fixed 2026-06-10 | RHSA-2026:25097 |
| Red Hat build of Keycloak 26.6 | rhbk/keycloak-rhel9-operator:26.6-6 | Fixed 2026-06-10 | RHSA-2026:25097 |
| Red Hat build of Keycloak 26.6.3 | rhbk/keycloak-rhel9 | Fixed 2026-06-10 | RHSA-2026:25098 |
Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-9704.