CVE-2025-1391
published medium CVSS 3.1 · 5.4Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Not stated | — | keycloak-services26.0.0 to < 26.0.10 · Other versions: unaffected | Affected | Not stated | redhat |
| Red Hat | — | keycloak-servicesRed Hat Build of Keycloak | Unaffected | Not required | redhat |
| Red Hat | — | rhbk/keycloak-operator-bundleRed Hat build of Keycloak 26.0 · 26.0.10-3 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9Red Hat build of Keycloak 26.0 · 26.0-11 and later · Other versions: affected | Unaffected | Not stated | redhat |
| Red Hat | — | rhbk/keycloak-rhel9-operatorRed Hat build of Keycloak 26.0 · 26.0-12 and later · Other versions: affected | Unaffected | Not stated | redhat |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.4 / 10
- Severity
- medium
- Provider
- redhat · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| keycloak-services | 26.0.0 to < 26.0.10 (affected · semver)Default: unaffected | redhat · cna | |
| Red Hat | Red Hat Build of Keycloak | Default: unaffected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0.10-3 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-11 and later (unaffected · rpm)Default: affected | redhat · cna |
| Red Hat | Red Hat build of Keycloak 26.0 | 26.0-12 and later (unaffected · rpm)Default: affected | redhat · cna |
Weaknesses
1- CWE-284 Improper Access Control
References
6- RHSA-2025:2544 https://access.redhat.com/errata/RHSA-2025:2544
- RHSA-2025:2545 https://access.redhat.com/errata/RHSA-2025:2545
- https://access.redhat.com/security/cve/CVE-2025-1391
- RHBZ#2346082 https://bugzilla.redhat.com/show_bug.cgi?id=2346082
- https://github.com/keycloak/keycloak/issues/37169
- https://github.com/keycloak/keycloak/pull/37235
Provider assertions
2redhat · cna
Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- c34c145d40e17131aadeeaaaa4fa043b3a02fbff9ffab7960566478258867b87
- Ingested
- 23 Sep 2026, 08:38:35 UTC
- Source record
- Official CVE record