Org.keycloak.protocol.oidc: keycloak refresh token reuse bypass via toctou race condition
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- None · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Red Hat | Red Hat build of Keycloak 26.4 | — | 26.4.11-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.4 | — | 26.4-14 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.4 | — | 26.4-14 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.4.11 | — | — | Not affected | CNA |
| Red Hat | Red Hat JBoss Enterprise Application Platform 8 | — | — | Not affected | CNA |
| Red Hat | Red Hat JBoss Enterprise Application Platform Expansion Pack | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7 | — | — | Not affected | CNA |
| — | org.keycloak:keycloak-services (Maven) | up to 26.2.5 | — | No fix listed | GHSA-m2w5-7xhv-w6fh |
- Red Hat build of Keycloak 26.4 VendorRed Hat Affected — Fixed in 26.4.11-1 Patch available CNA
- Red Hat build of Keycloak 26.4 VendorRed Hat Affected — Fixed in 26.4-14 Patch available CNA
- Red Hat build of Keycloak 26.4 VendorRed Hat Affected — Fixed in 26.4-14 Patch available CNA
- Red Hat build of Keycloak 26.4.11 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat JBoss Enterprise Application Platform 8 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat JBoss Enterprise Application Platform Expansion Pack VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — Not affected CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected up to 26.2.5 Fixed in — No fix listed GHSA-m2w5-7xhv-w6fh
Remediation
Red Hat 2 advisories
- RHSA-2026:6478 Released 2026-04-02 · Red Hat rating ImportantRed Hat build of Keycloak 26.4.11 Images Update
- Red Hat build of Keycloak 26.4 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2026:6477 Released 2026-04-02 · Red Hat rating ImportantRed Hat build of Keycloak 26.4.11 Update
- Red Hat build of Keycloak 26.4.11
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat build of Keycloak 26.4 | Fixed | RHSA-2026:6478 |
| Red Hat build of Keycloak 26.4.11 | Fixed | RHSA-2026:6477 |
Not affected: 3 products
- Red Hat JBoss Enterprise Application Platform 8
- Red Hat JBoss Enterprise Application Platform Expansion Pack
- Red Hat Single Sign-On 7
Timeline
- 2026-10-02 Threatist record created from CVE-2026-1035
- 2026-10-03 Alias added: GHSA-m2w5-7xhv-w6fh
References
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-1035 · CVE Program
- CVE-2026-1035 · NVD
- FIRST EPSS
- GHSA-m2w5-7xhv-w6fh · GitHub Advisory Database · CC BY 4.0
- CVE-2026-1035 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences