Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-9704

Опубликовано: 27 мая 2026
Источник: redhat
CVSS3: 6.8
EPSS Низкий

Описание

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.

Отчет

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.

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-1284
https://bugzilla.redhat.com/show_bug.cgi?id=2481877keycloak: Keycloak: Privilege escalation due to oversized subject_token JWT

EPSS

Процентиль: 24%
0.0032
Низкий

6.8 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.8
nvd
2 месяца назад

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.

CVSS3: 6.8
debian
2 месяца назад

A flaw was found in Keycloak. An authenticated user with low privilege ...

CVSS3: 6.8
github
2 месяца назад

Keycloak Vulnerable to Improper Validation of Specified Quantity in Input

EPSS

Процентиль: 24%
0.0032
Низкий

6.8 Medium

CVSS3