CVE-2025-14778
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedA 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · moderate confidenceKeycloak's UserManagedPermissionService (UMA Protection API) performs insufficient authorization checks when updating or deleting shared policies containing multiple resources. The system only validates caller ownership against the first resource in the policy, allowing an owner of one resource (RA) in a shared policy to modify permissions for other resources (RB) they do not own, constituting horizontal privilege escalation.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Identify Keycloak installation and versionCheck the Keycloak version by examining the server startup logs, the 'about' endpoint (/realms/{realm}/about), or the KEYCLOAK_VERSION environment variable if containerized. Compare the installed version against the fixed releases for this CVE.Affected if The installed Keycloak version is within the vulnerable range and has not been patched.
-
Verify if UserManagedPermissionService (UMA Protection API) is enabledConfirm the UMAPermission API endpoints are accessible. Check Keycloak configuration (standalone.xml, startup scripts, or the 'keycloak' authentication flow settings) for the User Managed Permission protocol mapper and resource owner permissions. Look for the 'uma_protection' scope in client scopes or the 'resource' server capability policy.Affected if The UMA Protection API is enabled and clients can access /realms/{realm}/authz/protection/ endpoint.
-
Identify shared policies with multiple resourcesQuery the Keycloak Authorization Services API: GET /{realm}/authz/protection/resource-set to list all resources. For each resource, check if it is associated with a policy that contains other resources owned by different principals. Use the resource registration API to examine the 'owner' and 'policy' attributes.Affected if There exist policies in the system that contain multiple resources where the caller owns only some of those resources.
-
Check authorization logic on policy update/delete operationsReview the UserManagedPermissionService source code or runtime behavior when calling PUT or DELETE on /{realm}/authz/protection/resource-set or policy endpoints. Observe whether the server validates ownership for ALL resources in the policy or only the first resource encountered.Affected if The system allows a user to modify or delete a policy containing resources they do not own, provided those resources share a policy with a resource they do own.
A user is affected if running a vulnerable Keycloak version with the UMA Protection API enabled and has policies that group multiple resources from different owners together.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
From vendor dataImplement proper authorization validation that checks ownership of ALL resources in a policy before allowing updates or deletions, not just the first resource. Additionally, consider disallowing policies that mix resources with different owners.
- Consultation4.0 h
- Implementation8.0 h
- Testing8.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $6,656.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2025-14778 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2025-14778 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data