Keycloak 26.x < 26.0.10 / 26.1.x < 26.1.3 / 26.2.0 Improper Authorization

medium Nessus Plugin ID 216477

Synopsis

The remote host is missing one or more security updates.

Description

The version of Keycloak installed on the remote host is 26.0 prior to 26.0.10, 26.1 prior to 26.1.3, or prior to 26.2.0. It is, therefore, affected by an Improper Authorization vulnerability. A flaw was found in the Keycloak organization feature, which allows the incorrect assignment of an organization to a user if their username or email matches the organization’s domain pattern. This issue occurs at the mapper level, leading to misrepresentation in tokens. If an application relies on these claims for authorization, it may incorrectly assume a user belongs to an organization they are not a member of, potentially granting unauthorized access or privileges.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Keycloak version to 26.0.10, 26.1.3, 26.2.0 or later.

See Also

https://github.com/keycloak/keycloak/issues/37169

https://github.com/keycloak/keycloak/pull/37235/files

https://github.com/advisories/GHSA-rq4w-cjrr-h8w8

https://bugzilla.redhat.com/show_bug.cgi?id=2346082

Plugin Details

Severity: Medium

ID: 216477

File Name: keycloak_26_2_0.nasl

Version: 1.2

Type: local

Agent: unix

Family: Misc.

Published: 2/19/2025

Updated: 2/20/2025

Configuration: Enable thorough checks

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.3

CVSS v2

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.1

Vector: CVSS2#AV:N/AC:L/Au:S/C:P/I:P/A:N

CVSS Score Source: CVE-2025-1391

CVSS v3

Risk Factor: Medium

Base Score: 5.4

Temporal Score: 4.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:keycloak:keycloak

Required KB Items: Host/local_checks_enabled, Host/uname, installed_sw/Keycloak

Exploit Ease: No known exploits are available

Patch Publication Date: 2/17/2025

Vulnerability Publication Date: 2/17/2025

Reference Information

CVE: CVE-2025-1391

CWE: 284