# CVE-2025-1391: Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims

- Severity: Medium 5.4 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-02)
- Published: 2025-02-17T14:01:35.354Z
- Modified: 2026-09-21T06:17:00.010Z
- Also known as: GHSA-gvgg-2r3r-53x7
- Weaknesses: CWE-284
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- keycloak-services: from 26.0.0 before 26.0.10
- rhbk/keycloak-operator-bundle: no versions given (not affected: from 26.0.10-3 before *)
- rhbk/keycloak-rhel9: no versions given (not affected: from 26.0-11 before *)
- rhbk/keycloak-rhel9-operator: no versions given (not affected: from 26.0-12 before *)
- org.keycloak:keycloak-services (Maven): from 26.1.0 before 26.1.3; before 26.0.10

## Every score

- redhat: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N`

## References

- <https://access.redhat.com/errata/RHSA-2025:2544> (vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2025:2545> (vendor-advisory, web)
- <https://access.redhat.com/security/cve/CVE-2025-1391> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2346082> (issue-tracking, 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)

## Sources

- CVE List: [CVE-2025-1391](https://www.cve.org/CVERecord?id=CVE-2025-1391), CVE Terms of Use, modified 2026-09-21
- GitHub Advisory Database: [GHSA-gvgg-2r3r-53x7](https://github.com/advisories/GHSA-gvgg-2r3r-53x7), CC-BY-4.0, modified 2025-03-10
- NVD: [CVE-2025-1391](https://nvd.nist.gov/vuln/detail/CVE-2025-1391), Public domain, modified 2026-09-21

---

Page: https://cve.day/CVE-2025-1391 · Whole record: https://cve.day/CVE-2025-1391.json · Rebuilt by cve.day 2026-11-25T22:58:54.143Z
