CVE-2025-14778
JSON

5.4medium

Keycloak: incorrect ownership checks in /uma-policy/

Severity
5.4medium CVSS:3.1 by redhat
Exploit likelihood
0.32% (higher than 26% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
redhat
Also known as
GHSA-fm6w-rrp3-2x4w

Description

A flaw was found in Keycloak. A significant Broken Access Control vulnerability exists in the UserManagedPermissionService (UMA Protection API). When updating or deleting a UMA policy associated with multiple resources, the authorization check only verifies the caller's ownership against the first resource in the policy's list. This allows a user (Owner A) who owns one resource (RA) to update a shared policy and modify authorization rules for other resources (e.g., RB) in that same policy, even if those other resources are owned by a different user (Owner B). This constitutes a horizontal privilege escalation.

Affected

Product or packageVersionsReported by
rhbk/keycloak-operator-bundleNot specified
Not affected: from 26.2.13-1 before *, from 26.4.9-1 before *
CVE List
rhbk/keycloak-rhel9Not specified
Not affected: from 26.2-15 before *, from 26.4-11 before *
CVE List
rhbk/keycloak-rhel9-operatorNot specified
Not affected: from 26.2-15 before *, from 26.4-10 before *
CVE List
org.keycloak:keycloak-services (Maven)before 26.2.13, from 26.5.0 before 26.5.3, from 26.3.0 before 26.4.9GitHub Advisory Database

All scores

redhat5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N

Classification

CWE-266

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

A flaw was found in Keycloak. A significant Broken Access Control vulnerability exists in the UserManagedPermissionService (UMA Protection API). When updating or deleting a UMA policy associated with multiple resources, the authorization check only verifies the caller's ownership against the first resource in the policy's list. This allows a user (Owner A) who owns one resource (RA) to update a shared policy and modify authorization rules for other resources (e.g., RB) in that same policy, even if those other resources are owned by a different user (Owner B). This constitutes a horizontal privilege escalation.

NVD (es)

Se encontró una falla en Keycloak. Existe una significativa vulnerabilidad de control de acceso roto en el UserManagedPermissionService (API de Protección UMA). Al actualizar o eliminar una política UMA asociada con múltiples recursos, la verificación de autorización solo verifica la propiedad del llamador contra el primer recurso en la lista de la política. Esto permite a un usuario (Propietario A) que posee un recurso (RA) actualizar una política compartida y modificar reglas de autorización para otros recursos (p. ej., RB) en esa misma política, incluso si esos otros recursos son propiedad de un usuario diferente (Propietario B). Esto constituye una escalada de privilegios horizontal.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-14778 changed 2026-02-10CVE Terms of Use
GitHub Advisory DatabaseGHSA-fm6w-rrp3-2x4w changed 2026-02-13CC-BY-4.0
NVDCVE-2025-14778 changed 2026-06-17Public domain