Keycloak vulnerable to impersonation via logout token exchange

Description

Keycloak was found to not properly enforce token types when validating signatures locally. An authenticated attacker could use this flaw to exchange a logout token for an access token and possibly gain access to data outside of enforced permissions.

Basic information

Type
reviewed
Severity
low
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2024-04-17 18:25:59 UTC
Updated
2024-11-18 17:28:40 UTC
GitHub reviewed
2024-04-17 18:25:59 UTC
NVD published
2024-11-17

EPSS Score

Score Percentile
0.05% 17.01%

CVSS Scores

Base score Version Severity Vector
3.4 3.1
CVSS:3.1/AV:A/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:N Click to expand
Attack vector (AV:A)
Attacker has to be nearby on the network—same office, same link, that vibe—not the whole wide internet.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:N)
Service keeps running; no real outage angle.

Identifiers

CWEs

CWE id Name
CWE-273 Improper Check for Dropped Privileges
CWE-284 Improper Access Control
CWE-287 Improper Authentication
CWE-290 Authentication Bypass by Spoofing
CWE-347 Improper Verification of Cryptographic Signature

Affected packages (2)

Vulnerable version ranges and first patched releases as published by GitHub.

Ecosystem Package Vulnerable range First patched Vulnerable functions
maven org.keycloak:keycloak-services < 22.0.10 22.0.10
maven org.keycloak:keycloak-services >= 23.0.0, < 24.0.3 24.0.3

References

cvelogic Threat Intelligence