Description
It was found that Keycloak oauth would permit an authenticated resource to obtain an access/refresh token pair from the authentication server, permitting indefinite usage in the case of permission revocation. An attacker on an already compromised resource could use this flaw to grant himself continued permissions and possibly conduct further attacks.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Red Hat | keycloak | 3.4.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Single Sign On 7 | rh-sso7-keycloak +1 | 2.5.14-1.Final_redhat_1.1.jbcs.el6 | RHSA-2017:2905, RHSA-2017:2904 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-parent | < 3.3.0.Final | 3.3.0.Final | GHSA-qc72-gfvw-76h7 |
Advisories 2
- RHSA-2017:2904 Red Hat Security Advisory: rh-sso7-keycloak security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
- RHSA-2017:2905 Red Hat Security Advisory: rh-sso7-keycloak security update Red Hat Security Advisories (RHSA) · Aug 5, 2026
References
- RHSA-2017:2904 vendor-advisory
- RHSA-2017:2905 vendor-advisory
- RHSA-2017:2906 vendor-advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1484154