Start with Identity
Identity CVE · Other

CVE-2025-13881Keycloak Admin API auth bypass to custom attributes

high
Product: KeycloakVendor: Red HatCWE-266Disclosed: 2025-11-20Status: PatchedNVD ↗

What broke

The Keycloak Admin API did not enforce the intended permission on sensitive custom user attributes (CWE-266, incorrect privilege assignment). A lesser admin or a token with a narrower role could read them. Red Hat patched.

Why it matters

Custom attributes are where people hide government IDs, recovery emails, and internal employee numbers. An Admin API authz gap is a privacy incident and a recovery-channel takeover in one.

What to do

  • Upgrade Keycloak.
  • Audit who can call the Admin API. Service accounts with realm-management are the usual over-grant.
  • Stop putting secrets in user attributes. Use a vault.

After you patch

Patching closes the entry point. It does not remove access an attacker established through it.

  • Revoke sessions and API tokens on the affected system rather than only resetting passwords.
  • Audit accounts, tokens, and administrative changes made during the exposure window.
  • Rotate credentials the system stored or could reach, including directory service accounts and integration keys. See secrets rotation.
  • Treat the system as a pivot: whatever it could authenticate to is in scope until you have checked it.

Sources

Last reviewed By SWI Community TeamSuggest a correctionHow we research
Know a primary source we should add, or a patch status that has changed? Email community@startwithidentity.com. See all briefs in the identity CVE catalog, or volunteer as a CVE Analyst.
Compiled from vendor advisories, NVD, CISA KEV, and public research. CVSS figures can disagree across NVD and the CNA. Confirm affected versions against the vendor advisory before you patch. Independent, community-driven analysis. See the disclaimer.