Improper access control in Keycloak - CVE-2025-1391

 

Improper access control in Keycloak - CVE-2025-1391

Published: March 11, 2025


Vulnerability identifier: #VU105509
CSH Severity: Medium
CVSS v4: 6.3 [CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-1391
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to gain unauthorized access to otherwise restricted functionality.

The vulnerability exists due to improper mapping of users to organizations based solely on email/username patterns. A remote attacker can trick an organization administrator into allowing user access based on naming pattern if, for example, self-registration is enabled and unrestricted.


Affected software

Keycloak
Red Hat build of Keycloak

How to mitigate CVE-2025-1391

Install updates from vendor's website.

Keycloak - addressed in versions 26.0.10, 26.1.3
Red Hat build of Keycloak - update to 26.0.10

External References

Related Security Bulletins