Keycloak: impersonation via logout token exchange
Key facts
- Attack vector
- Adjacent network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- High
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Partial Red Hat: 2 fixed, 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-284.
Summary
A flaw was found in Keycloak. This issue occurs due to improperly enforcing token types when validating signatures locally. This could allow an authenticated attacker to exchange a logout token for an access token and possibly gain access to data outside of enforced permissions.
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 |
|---|---|---|---|---|---|
| — | keycloak | before 22.0.10; 23.0.0 to before 24.0.3 | 22.0.10, 24.0.3 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22.0.10-1 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-13 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22 | — | 22-16 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 22.0.10 | — | — | Not affected | CNA |
| Red Hat | Red Hat Single Sign-On 7 | — | — | No fix listed | CNA |
| — | org.keycloak:keycloak-services (Maven) | before 22.0.10 | 22.0.10 | Patch available | GHSA-7fpj-9hr8-28vh |
| — | org.keycloak:keycloak-services (Maven) | 23.0.0 to before 24.0.3 | 24.0.3 | Patch available | GHSA-7fpj-9hr8-28vh |
- keycloak Vendor— Affected before 22.0.10; 23.0.0 to before 24.0.3 Fixed in 22.0.10, 24.0.3 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22.0.10-1 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-13 Patch available CNA
- Red Hat build of Keycloak 22 VendorRed Hat Affected — Fixed in 22-16 Patch available CNA
- Red Hat build of Keycloak 22.0.10 VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat Single Sign-On 7 VendorRed Hat Affected — Fixed in — No fix listed CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 22.0.10 Fixed in 22.0.10 Patch available GHSA-7fpj-9hr8-28vh
- org.keycloak:keycloak-services (Maven) Vendor— Affected 23.0.0 to before 24.0.3 Fixed in 24.0.3 Patch available GHSA-7fpj-9hr8-28vh
Remediation
- Fix · CNA keycloak Fixed in 22.0.10, 24.0.3
- Fix · GHSA-7fpj-9hr8-28vh org.keycloak:keycloak-services (Maven) Fixed in 22.0.10 Advisory →
- Fix · GHSA-7fpj-9hr8-28vh org.keycloak:keycloak-services (Maven) Fixed in 24.0.3 Advisory →
Red Hat 2 advisories
- RHSA-2024:1867 Released 2024-04-16 · Red Hat rating ModerateRed Hat build of Keycloak 22.0.10 enhancement and security update
- Red Hat build of Keycloak 22 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2024:1868 Released 2024-04-16 · Red Hat rating ImportantRed Hat build of Keycloak security update
- Red Hat build of Keycloak 22.0.10
Vendor assessments
Red Hat
Red Hat rating: Low. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Single Sign-On 7 | Affected | No fix yet: Fix deferred |
| Red Hat build of Keycloak 22 | Fixed | RHSA-2024:1867 |
| Red Hat build of Keycloak 22.0.10 | Fixed | RHSA-2024:1868 |
Timeline
- 2026-10-02 Threatist record created from CVE-2023-0657
- 2026-10-03 Alias added: GHSA-7fpj-9hr8-28vh
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-2023-0657 · CVE Program
- CVE-2023-0657 · NVD
- FIRST EPSS
- GHSA-7fpj-9hr8-28vh · GitHub Advisory Database · CC BY 4.0
- CVE-2023-0657 · 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