Vulnerability · Published Feb 17, 2025 · Assigned by redhat
CVE-2025-1391Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
Medium 5.4
In plain English
A medium-severity improper access control in keycloak-services. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.keycloak:keycloak-services | 26.1.3 | GHSA-gvgg-2r3r-53x7 |
| Maven | org.keycloak:keycloak-services | 26.0.10 | GHSA-gvgg-2r3r-53x7 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| keycloak-services | 26.0.0 – before 26.0.10 | |
| Red Hat | Red Hat Build of Keycloak | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
| Red Hat | Red Hat build of Keycloak 26.0 | see references |
Weakness: CWE-284 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
References
- RHSA-2025:2544 vendor-advisory, x_refsource_REDHAT
- RHSA-2025:2545 vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-1391 vdb-entry, x_refsource_REDHAT
- RHBZ#2346082 issue-tracking, x_refsource_REDHAT
- https://github.com/keycloak/keycloak/issues/37169
- https://github.com/keycloak/keycloak/pull/37235