CVE-2025-1391
mediumpriority · track · 0EPSS 0.005 · 41 %ileDEEUUSEPSS · scored 2026-10-27
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.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (7)
Products and version ranges known to be affected.
advisories (2)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2025-0392Keycloak Organization Feature: Schwachstelle ermöglicht PrivilegieneskalationDeutsch2025-02-17csaf · cert_bundDE
Ein entfernter, authentisierter Angreifer kann eine Schwachstelle im Keycloak Organization Feature ausnutzen, um seine Privilegien zu erhöhen.
- GHSA-gvgg-2r3r-53x7Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims 2025-03-10ghsa · osvUS
This vulnerability is caused by the improper mapping of users to organizations based solely on email/username patterns. The issue is limited to the token claim level, meaning the user is not truly added to the organization but may appear as such in applications relying on these claims. The risk increases in scenarios where self-registration is enabled and unrestricted, allowing an attacker to exploit the naming pattern. The issue is mitigated if admins restrict registration or use strict validation mechanisms.
also known as (4)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (14)
External citations — patches, advisories, analysis.
- https://access.redhat.com/security/cve/CVE-2025-1391cnnvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2346082cnnvd
- https://access.redhat.com/errata/RHSA-2025:2544enisa_euvd
- https://access.redhat.com/errata/RHSA-2025:2545enisa_euvd
- https://access.redhat.com/security/cve/CVE-2025-1391enisa_euvd
- https://bugzilla.redhat.com/show_bug.cgi?id=2346082enisa_euvd
- https://github.com/keycloak/keycloak/issues/37169enisa_euvd
- https://github.com/keycloak/keycloak/pull/37235enisa_euvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan