5.4Medium

CVE-2025-1391Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims

keycloak-services; Red Hat Red Hat Build of Keycloak; Red Hat Red Hat build of Keycloak 26.0 Published: (1 year ago)

Description

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.

Weakness (CWE): CWE-284

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
build keycloak 26.0 —
Red Hat Red Hat Build of Keycloak —
Red Hat Red Hat build of Keycloak 26.0 all versions
— keycloak-services 26.0.0 – < 26.0.10

References and patches