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.
This issue has been addressed in the following products: Red Hat build of Keycloak 22 Via RHSA-2025:2545 https://access.redhat.com/errata/RHSA-2025:2545
This issue has been addressed in the following products: Red Hat build of Keycloak 26.0 Via RHSA-2025:2544 https://access.redhat.com/errata/RHSA-2025:2544