Skip to content
OpenAdvisories
Low · 3.1 CVE-2026-1035 EUVD-2026-3691GHSA-m2w5-7xhv-w6fh

Org.keycloak.protocol.oidc: keycloak refresh token reuse bypass via toctou race condition

Published Jan 21, 2026 · Updated Apr 2, 2026 · Assigned by redhat

Description

A flaw was found in the Keycloak server during refresh token processing, specifically in the TokenManager class responsible for enforcing refresh token reuse policies. When strict refresh token rotation is enabled, the validation and update of refresh token usage are not performed atomically. This allows concurrent refresh requests to bypass single-use enforcement and issue multiple access tokens from the same refresh token. As a result, Keycloak’s refresh token rotation hardening can be undermined.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat build of Keycloak 26.4 — —
Red Hat Red Hat build of Keycloak 26.4.11 — —
Red Hat Red Hat JBoss Enterprise Application Platform 8 — —
Red Hat Red Hat JBoss Enterprise Application Platform Expansion Pack — —
Red Hat Red Hat Single Sign-On 7 — —

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.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-keycloak No fix yet —
Ubuntu 25.10 python-keycloak No fix yet —
Ubuntu 24.04 LTS python-keycloak No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.keycloak:keycloak-services <= 26.2.5 — GHSA-m2w5-7xhv-w6fh

Advisories 1

References