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.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.5%top 58.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.keycloak:keycloak-services26.1.3GHSA-gvgg-2r3r-53x7
Mavenorg.keycloak:keycloak-services26.0.10GHSA-gvgg-2r3r-53x7

Affected products (as reported)

VendorProductVersions
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