CVE-2025-1391Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
- 5.4MediumCVSS base score
- 0.47%Exploitation in 30 daysEPSS · top 58% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By redhat
Published
- 19 months later
· 19 months later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| NVDNVD · Deferred | 3.1 | Medium5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
- EPSS (exploitation in 30 days)
- 0.47% · top 58% of all CVEs (13 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: no · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.4.
Affected products
keycloak-services
- affected 26.0.0 – < 26.0.10
Red Hat · Red Hat Build of Keycloak
All versions: unaffected
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0.10-3 – < *
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0-11 – < *
Red Hat · Red Hat build of Keycloak 26.0
- unaffected 26.0-12 – < *
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenorg.keycloak:keycloak-servicesGHSA-gvgg-2r3r-53x7 (opens in a new tab)
References
References6
- RHSA-2025:2544 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- RHSA-2025:2545 (opens in a new tab)vendor-advisoryx_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2025-1391 (opens in a new tab)vdb-entryx_refsource_REDHAT
- RHBZ#2346082 (opens in a new tab)issue-trackingx_refsource_REDHAT
- https://github.com/keycloak/keycloak/issues/37169 (opens in a new tab)
- https://github.com/keycloak/keycloak/pull/37235 (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2025-4583 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-gvgg-2r3r-53x7 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2025-1391)Record last updated .