What’s Vulnerable › Vulnerabilities
CVE-2025-1391: Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
- Severity: medium (CVSS 5.4 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.5% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-17 · updated 2026-09-21
- Weakness: CWE-284
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
- Red Hat build of Keycloak 26.4: all versions — fixed in 26.0-11, 26.0-12, 26.0.10-3
How to fix
Upgrade to a fixed version: Red Hat build of Keycloak 26.4 26.0-11, 26.0-12, 26.0.10-3. Check the vendor advisory for mitigations.
References
- https://access.redhat.com/errata/RHSA-2025:2544
- https://access.redhat.com/errata/RHSA-2025:2545
- https://access.redhat.com/security/cve/CVE-2025-1391
- https://bugzilla.redhat.com/show_bug.cgi?id=2346082
- https://github.com/keycloak/keycloak/issues/37169
- https://github.com/keycloak/keycloak/pull/37235
Get alerted when CVE-2025-1391 or the next vulnerability affects your stack