CVE-2025-1391 json
Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
published 2025-02-17 20 mo ago modified 2026-09-21 49 d ago also GHSA-gvgg-2r3r-53x7 , EUVD-2025-4583
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.5%
- EPSS 0.5% chance of exploitation in 30 days, percentile 41%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven org.keycloak:keycloak-services 26.0.10, 26.1.3
- Red Hat Red Hat build of Keycloak 26.0 26.0-11, 26.0-12, 26.0.10-3
- github.com/keycloak/keycloak@5aa2b4c commit
- github.com/keycloak/keycloak#37235 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-1391 updated cvss 5.4
keycloak-services: Improper Authorization in Keycloak Organization Mapper Allows Unauthorized Organization Claims
-
Red Hat Build of Keycloakfixed: vendor fix RHSA-2025:2545
-
Red Hat build of Keycloak 26.0 rhbk/keycloak-rhel9 26.0-1741630390, rhbk/keycloak-operator-bundle 26.0.10-3, rhbk/keycloak-rhel9-operator 26.0-1741630464fixed: vendor fix RHSA-2025:2544
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.47% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | org.keycloak:keycloak-services | >=26.1.0, <26.1.3 <26.0.10 |
26.1.3 26.0.10 |
Affected products
- Red Hat Red Hat Build of Keycloak
- Red Hat Red Hat build of Keycloak 26.0
Classification
- Weakness
-
- CWE-284 Improper Access Control
References
- github.com /keycloak/keycloak/pull/37235
-
github.com
/keycloak/keycloak/commit/5aa2b4c75bb474303ab807017582bc01a9f7e378
web
-
access.redhat.com
/errata/RHSA-2025:2544
vendor-advisory
-
access.redhat.com
/errata/RHSA-2025:2545
vendor-advisory, web
-
access.redhat.com
/security/cve/CVE-2025-1391
vdb-entry, web
-
bugzilla.redhat.com
/show_bug.cgi?id=2346082
issue-tracking, web
- github.com /keycloak/keycloak/issues/37169
-
github.com
/keycloak/keycloak/security/advisories/GHSA-gvgg-2r3r-53x7
web
-
nvd.nist.gov
/vuln/detail/CVE-2025-1391
advisory
-
github.com
/keycloak/keycloak
package
Sources
- CVE List CVE-2025-1391
- GitHub Advisory GHSA-gvgg-2r3r-53x7
- NVD CVE-2025-1391
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.