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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | keycloak-services | 26.0.0 – < 26.0.10 | 26.0.10 |
| Red Hat | Red Hat Build of Keycloak | — | — |
| Red Hat | Red Hat build of Keycloak 26.0 | — | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Maven | org.keycloak:keycloak-services | >= 26.1.0, < 26.1.3 | 26.1.3 | GHSA-gvgg-2r3r-53x7 |
| Maven | org.keycloak:keycloak-services | < 26.0.10 | 26.0.10 | GHSA-gvgg-2r3r-53x7 |
Advisories 1
- WID-SEC-2025-0392 Keycloak Organization Feature: Schwachstelle ermöglicht Privilegieneskalation BSI CERT-Bund (WID) · Mar 10, 2025
References
- RHSA-2025:2544 vendor-advisory
- RHSA-2025:2545 vendor-advisory
- https://access.redhat.com/security/cve/CVE-2025-1391 vdb-entry
- RHBZ#2346082 issue-tracking
- https://github.com/keycloak/keycloak/issues/37169
- https://github.com/keycloak/keycloak/pull/37235