CVE-2025-1391
MEDIUM 5.4CVSS 3.1Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
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.
- Published
- 17 Feb 2025
- Last modified
- 21 Sep 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Deferred
- Weakness
- CWE-284
- Also known as
- GHSA-gvgg-2r3r-53x7
- Sources
- NVDJSONOSV GHSA-gvgg-2r3r-53x7JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | secalert@redhat.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Maven | org.keycloak:keycloak-services | >= 26.1.0, < 26.1.3 | 26.1.3 |
| OSV | Maven | org.keycloak:keycloak-services | < 26.0.10 | 26.0.10 |
References
- https://access.redhat.com/errata/RHSA-2025:2544
- https://access.redhat.com/errata/RHSA-2025:2545 · WEB
- https://access.redhat.com/security/cve/CVE-2025-1391 · WEB
- https://bugzilla.redhat.com/show_bug.cgi?id=2346082 · WEB
- https://github.com/keycloak/keycloak/issues/37169
- https://github.com/keycloak/keycloak/pull/37235
- https://github.com/keycloak/keycloak/security/advisories/GHSA-gvgg-2r3r-53x7 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2025-1391 · ADVISORY
- https://github.com/keycloak/keycloak/commit/5aa2b4c75bb474303ab807017582bc01a9f7e378 · WEB
- https://github.com/keycloak/keycloak · PACKAGE
History
- 25 Nov 2026 20:57 UTC · NVD: first stored (published 17 Feb 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 10 Mar 2025)