CVE-2025-1391

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

Published Feb 17, 2025 CVSS 3.1 · 5.4 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2025-4583 Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
Github GHSA Github GHSA GHSA-gvgg-2r3r-53x7 Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
History
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak:26.0
Type Values Removed Values Added
Metrics epss

{'score': 0.00016}

epss

{'score': 0.00014}

Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak:26.0::el9
References
Type Values Removed Values Added
CPEs cpe:/a:redhat:build_keycloak: cpe:/a:redhat:build_keycloak:26
References
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description No description is available for this CVE. 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.
Title org.keycloak/keycloak-services: Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
First Time appeared Redhat
Redhat build Keycloak
CPEs cpe:/a:redhat:build_keycloak:
Vendors & Products Redhat
Redhat build Keycloak
References
Type Values Removed Values Added
Description No description is available for this CVE.
Title org.keycloak/keycloak-services: Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
Weaknesses CWE-284
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.4, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N'}

threat_severity

Moderate

Weaknesses

Sources

Status
PUBLISHED
Assigner
redhat
Published
Updated
Sep 21, 2026, 5:46 AM
Reserved
Feb 17, 2025, 8:56 AM
Status
Deferred
Published
Feb 17, 2025, 2:15 PM
Modified
Sep 21, 2026, 6:17 AM
Severity
Moderate
Public date
Feb 17, 2025, 12:00 AM