Keycloak-services: improper authorization in keycloak organization mapper allows unauthorized organization claims
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-284.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | keycloak-services | 26.0.0 to before 26.0.10 | 26.0.10 | Patch available | CNA |
| Red Hat | Red Hat Build of Keycloak | — | — | Not affected | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0.10-3 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0-11 | Patch available | CNA |
| Red Hat | Red Hat build of Keycloak 26.0 | — | 26.0-12 | Patch available | CNA |
| — | org.keycloak:keycloak-services (Maven) | 26.1.0 to before 26.1.3 | 26.1.3 | Patch available | GHSA-gvgg-2r3r-53x7 |
| — | org.keycloak:keycloak-services (Maven) | before 26.0.10 | 26.0.10 | Patch available | GHSA-gvgg-2r3r-53x7 |
- keycloak-services Vendor— Affected 26.0.0 to before 26.0.10 Fixed in 26.0.10 Patch available CNA
- Red Hat Build of Keycloak VendorRed Hat Affected — Fixed in — Not affected CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0.10-3 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-11 Patch available CNA
- Red Hat build of Keycloak 26.0 VendorRed Hat Affected — Fixed in 26.0-12 Patch available CNA
- org.keycloak:keycloak-services (Maven) Vendor— Affected 26.1.0 to before 26.1.3 Fixed in 26.1.3 Patch available GHSA-gvgg-2r3r-53x7
- org.keycloak:keycloak-services (Maven) Vendor— Affected before 26.0.10 Fixed in 26.0.10 Patch available GHSA-gvgg-2r3r-53x7
Remediation
- Fix · CNA keycloak-services Fixed in 26.0.10
- Fix · GHSA-gvgg-2r3r-53x7 org.keycloak:keycloak-services (Maven) Fixed in 26.1.3 Advisory →
- Fix · GHSA-gvgg-2r3r-53x7 org.keycloak:keycloak-services (Maven) Fixed in 26.0.10 Advisory →
Red Hat 2 advisories
- RHSA-2025:2544 Released 2025-03-10 · Red Hat rating ModerateRed Hat build of Keycloak 26.0.10 Images Update
- Red Hat build of Keycloak 26.0 rhbk/keycloak-operator-bundle, rhbk/keycloak-rhel9, rhbk/keycloak-rhel9-operator
- RHSA-2025:2545 Released 2025-03-10 · Red Hat rating ModerateRed Hat build of Keycloak 26.0.10 Update
- Red Hat Build of Keycloak
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Build of Keycloak | Fixed | RHSA-2025:2545 |
| Red Hat build of Keycloak 26.0 | Fixed | RHSA-2025:2544 |
Timeline
- 2026-10-02 Threatist record created from CVE-2025-1391
- 2026-10-03 Alias added: GHSA-gvgg-2r3r-53x7
References
Other 7
- https://access.redhat.com/security/cve/CVE-2025-1391
- RHBZ#2346082
- 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
- https://github.com/keycloak/keycloak/commit/5aa2b4c75bb474303ab807017582bc01a9f7e378
- https://github.com/keycloak/keycloak
More Red Hat vulnerabilities
- TI-2019-15875 Protection mechanism failure in Jenkins Pipeline: Groovy Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-15874 Protection mechanism failure in Jenkins Script Security Plugin KEVCVSS 3.1CRITICAL 9.9
- TI-2019-08259 Underflow in PHP-FPM can lead to RCE KEVCVSS 3.1CRITICAL 9.8
- TI-2019-05363 Code injection in Elastic Kibana KEVCVSS 3.1CRITICAL 10.0
- TI-2019-03949 Out-of-bounds write in ESXi and Horizon DaaS KEVCVSS 3.1CRITICAL 9.8
- TI-2018-16080 A code execution vulnerability exists in the Stapler web framework used by Jenkins 2.153… KEVCVSS 3.1CRITICAL 9.8
Sources
- CVE-2025-1391 · CVE Program
- CVE-2025-1391 · NVD
- FIRST EPSS
- GHSA-gvgg-2r3r-53x7 · GitHub Advisory Database · CC BY 4.0
- CVE-2025-1391 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences