CVE-2025-1391

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

State
Published
Severity
5.4 Medium
Published
Feb 17, 2025
Updated
Sep 21, 2026
Reserved
Feb 17, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:Nredhat

Weaknesses

Affected Products

ProductVersions
keycloak-services
  • 26.0.0 to before 26.0.10Affected
Red Hat Build of KeycloakRed Hat
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0.10-3 and laterNot affected
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0-11 and laterNot affected
    Red Hat build of Keycloak 26.0Red Hat
    • 26.0-12 and laterNot affected

    References

    Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.