Servers and applications
CVE-2025-1391
Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
- Severity
- Medium 5.4
- Published
- 10 Mar 2025
- Last changed
- 10 Mar 2025
- Added to UpHeron
- 3 Nov 2026
- Fixed in
- 26.0.10
- Exploit chance
- 0.5% in the next 30 daysHigher than 41% of CVEs. EPSS by FIRST, 19 Nov 2026
- Attack
- Over the network · Needs a user account · No user action needed
- Attacker can
- Read some data · Change some data
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N- Also known as
- GHSA-gvgg-2r3r-53x7
- Sources
- Project advisories (GitHub)
Description
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.
Affected software
| Software | Affected versions |
|---|---|
KeycloakServers and applications · github:keycloak/keycloak |
|
About Keycloak
open-source identity and access management
- Docker Hub pulls
- 19,778,882Docker Hub, 15 Nov 2026
- GitHub stars
- 37,872GitHub, 15 Nov 2026
- Forks
- 9,194GitHub, 15 Nov 2026
- Latest release
- 26.8.2GitHub, 15 Nov 2026
- Released
- 5 Nov 2026GitHub
- Developer
- Red HatWikidata
- License
- Apache Software License 2.0Wikidata
- Written in
- JavaWikidata
- First released
- 10 Sept 2014Wikidata
- First published on GitHub
- 2 Jul 2013GitHub
Website Source code Docker image
Release lines
| Release | Latest | Security fixes |
|---|---|---|
| 26.8 | 26.8.2 | Yes |
| 26.7 | 26.7.5 | Ended 1 Oct 2026 |
| 26.6 | 26.6.4 | Ended 9 Jul 2026 |
| 26.5 | 26.5.7 | Ended 8 Apr 2026 |
| 26.4 | 26.4.7 | Ended 6 Jan 2026 |
| 26.3 | 26.3.5 | Ended 30 Sept 2025 |
From endoflife.date.
Vulnerabilities in Keycloak
- In our list
- 84
- Published in the last 12 months
- 21
- Critical, last 12 months
- 1
- High, last 12 months
- 12
- Known exploited
- 0
- CVE-2026-18963Keycloak-services: unauthenticated account takeover via reset-credentials flow bypassCritical 9.1 19 Nov 2026
- CVE-2026-90997Replay protection bypass leads to unauthorized access via database driver semantics mismatchHigh 7.4 16 Sept 2026
- CVE-2026-15573Keycloak-services: keycloak-services: authorization bypass via unnormalized uri matching in pathmatcherHigh 8.1 6 Aug 2026
- CVE-2026-15572Keycloak-services: keycloak-services: dcr protocol mapper type-swap policy bypass allows privilege escalationHigh 8.8 6 Aug 2026
- CVE-2026-16100Keycloak-services: keycloak-services: unbounded metric cardinality in user event metrics via request-controlled error textMedium 6.5 6 Aug 2026
- CVE-2026-16442Keycloak-services: keycloak-services: saml idp-initiated broker login bypasses link-only restrictionHigh 7.4 6 Aug 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2025-1391
- GitHub Advisory Database https://github.com/advisories/GHSA-gvgg-2r3r-53x7
- github.com https://github.com/keycloak/keycloak/security/advisories/GHSA-gvgg-2r3r-53x7