Every CVESearch/Get API key

GHSA-j24h-w6rf-r4c6

Summary ZITADEL’s Management API allowed a user with permission to manage user grants (user.grant.write, held for…

Explain with AI
ChatGPTClaudeGoogle AI
Scores
Unknown
No source reports a CVSS or EPSS score yet.
Exploitation
Unknown
No source reports exploitation yet.
Listed fix
None listed
No source lists a fixed version in its version data.Check the description and references.

Overview

Summary

ZITADEL’s Management API allowed a user with permission to manage user grants (user.grant.write, held for example by ORG_OWNER and ORG_USER_MANAGER) in any organization to change the roles of user grants that belong to a different organization on the same instance. The update endpoint PUT /management/v1/users/{user_id}/grants/{grant_id} (UpdateUserGrant) checked the caller’s permission in their own organization, but then found and changed the grant by its ID alone, whichever organization owned it.

On instances that enabled the opt-in user-grant performance setting (IMPROVED_PERFORMANCE_USER_GRANT), the same missing check was also reachable when creating grants: through POST /management/v1/users/{user_id}/grants (AddUserGrant) and the Authorization Service v2 CreateAuthorization, an organization could assign roles on another organization’s project that had never been delegated to it. Both paths share the same root cause: a user-grant write was not limited to grants and projects the caller’s organization is responsible for.

Impact

An attacker with user.grant.write in any organization of the instance can:

  • Change the roles on another organization’s user grants, given the grant’s ID, to any role defined on that organization’s project (for example, from a viewer role to an administrative role).
  • Raise their own access in an organization that has delegated them a role, because users can look up the IDs of their own grants.
  • Remove all roles from another organization’s user grants while the grants remain active, which silently takes away access from legitimate users.
  • On instances with IMPROVED_PERFORMANCE_USER_GRANT enabled: create grants on another organization’s project without a project grant (delegation), assigning any role defined on that project.

The impact is at the level of projects and applications. The changed roles appear in the user’s urn:zitadel:iam:org:project:roles claim, so the real impact is whatever those roles grant inside applications that trust the victim organization’s project. The attacker can only assign roles that already exist on the targeted project, and through the update path can only change grants that already exist. The issue does not grant ZITADEL administrative roles (organization or instance memberships). On instances without IMPROVED_PERFORMANCE_USER_GRANT (the default), grant creation already enforced this check, so only the update path is affected there.

Scope note: The affected surface is the Management API endpoints named above and, with the performance setting enabled, the Authorization Service v2 CreateAuthorization. The Authorization Service v2 UpdateAuthorization and the deactivate, reactivate and remove endpoints for user grants were not affected. The issue crosses organization boundaries within an instance, but not instance boundaries.

Affected Versions

Systems running one of the following versions are affected:

  • 4.x: 4.0.0 through 4.20.7 (including RC versions)

Patches

The vulnerability has been addressed in the latest releases.

The patched version only lets the Management API’s UpdateUserGrant change a user grant that belongs to the organization the request runs in, which is the organization given in the x-zitadel-orgid header or else the caller’s own organization. Requests for grants of other organizations now return “not found”. This also applies to an organization that owns a project and tries to update grants that an organization it delegated the project to created on that project. Instance administrators who manage grants across organizations must set x-zitadel-orgid to the grant’s organization or use the Authorization Service v2 UpdateAuthorization.

Creating a grant on a project owned by another organization now requires a project grant from that organization. Only the roles included in the project grant can be assigned, and the project grant is found automatically when the request leaves it out.

Workarounds

The recommended solution is to upgrade to a patched version. There is no configuration that fully closes this gap on unpatched versions.

As a partial mitigation, leaving IMPROVED_PERFORMANCE_USER_GRANT disabled, or disabling it, closes the grant-creation path only.

Questions

If you have any questions or comments about this advisory, please email us at security@zitadel.com

Credits

Thanks to:

for finding and reporting the vulnerability.

Affected

Packages 18

Affected packages
PackageAffectedFixed
zitadel-4-dev
Docker Hardened Images:Alpine:3.23
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-dev
Docker Hardened Images:Alpine:3.24
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-fips-dev
Docker Hardened Images:Alpine:3.23
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-fips-dev
Docker Hardened Images:Alpine:3.24
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-fips-license
Docker Hardened Images:Alpine:3.23
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-fips-license
Docker Hardened Images:Alpine:3.24
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-fips
Docker Hardened Images:Alpine:3.23
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-fips
Docker Hardened Images:Alpine:3.24
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-license
Docker Hardened Images:Alpine:3.23
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-license
Docker Hardened Images:Alpine:3.24
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
Show 8 more packagesShow less
Affected packages
PackageAffectedFixed
zitadel-4
Docker Hardened Images:Alpine:3.23
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4
Docker Hardened Images:Alpine:3.24
4.20.3-r0 and later, plus listed versions
4.20.4-r04.20.5-r04.20.6-r04.20.7-r04.20.8-r04.21.0-r0
None listed
zitadel-4-dev
Docker Hardened Images:Debian:13
4.20.3-0 and later, plus listed versions
4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0
None listed
zitadel-4-fips-dev
Docker Hardened Images:Debian:13
4.20.3-0 and later, plus listed versions
4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0
None listed
zitadel-4-fips-license
Docker Hardened Images:Debian:13
4.20.3-0 and later, plus listed versions
4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0
None listed
zitadel-4-fips
Docker Hardened Images:Debian:13
4.20.3-0 and later, plus listed versions
4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0
None listed
zitadel-4-license
Docker Hardened Images:Debian:13
4.20.3-0 and later, plus listed versions
4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0
None listed
zitadel-4
Docker Hardened Images:Debian:13
4.20.3-0 and later, plus listed versions
4.20.4-04.20.5-04.20.6-04.20.7-04.20.8-04.21.0-0
None listed

Sources

OSVDHI-fhjh-gqqz-o6ga-2p7cNo score

### Summary

Summary

ZITADEL’s Management API allowed a user with permission to manage user grants (user.grant.write, held for example by ORG_OWNER and ORG_USER_MANAGER) in any organization to change the roles of user grants that belong to a different organization on the same instance. The update endpoint PUT /management/v1/users/{user_id}/grants/{grant_id} (UpdateUserGrant) checked the caller’s permission in their own organization, but then found and changed the grant by its ID alone, whichever organization owned it.

On instances that enabled the opt-in user-grant performance setting (IMPROVED_PERFORMANCE_USER_GRANT), the same missing check was also reachable when creating grants: through POST /management/v1/users/{user_id}/grants (AddUserGrant) and the Authorization Service v2 CreateAuthorization, an organization could assign roles on another organization’s project that had never been delegated to it. Both paths share the same root cause: a user-grant write was not limited to grants and projects the caller’s organization is responsible for.

Impact

An attacker with user.grant.write in any organization of the instance can:

  • Change the roles on another organization’s user grants, given the grant’s ID, to any role defined on that organization’s project (for example, from a viewer role to an administrative role).
  • Raise their own access in an organization that has delegated them a role, because users can look up the IDs of their own grants.
  • Remove all roles from another organization’s user grants while the grants remain active, which silently takes away access from legitimate users.
  • On instances with IMPROVED_PERFORMANCE_USER_GRANT enabled: create grants on another organization’s project without a project grant (delegation), assigning any role defined on that project.

The impact is at the level of projects and applications. The changed roles appear in the user’s urn:zitadel:iam:org:project:roles claim, so the real impact is whatever those roles grant inside applications that trust the victim organization’s project. The attacker can only assign roles that already exist on the targeted project, and through the update path can only change grants that already exist. The issue does not grant ZITADEL administrative roles (organization or instance memberships). On instances without IMPROVED_PERFORMANCE_USER_GRANT (the default), grant creation already enforced this check, so only the update path is affected there.

Scope note: The affected surface is the Management API endpoints named above and, with the performance setting enabled, the Authorization Service v2 CreateAuthorization. The Authorization Service v2 UpdateAuthorization and the deactivate, reactivate and remove endpoints for user grants were not affected. The issue crosses organization boundaries within an instance, but not instance boundaries.

Affected Versions

Systems running one of the following versions are affected:

  • 4.x: 4.0.0 through 4.20.7 (including RC versions)

Patches

The vulnerability has been addressed in the latest releases.

The patched version only lets the Management API’s UpdateUserGrant change a user grant that belongs to the organization the request runs in, which is the organization given in the x-zitadel-orgid header or else the caller’s own organization. Requests for grants of other organizations now return “not found”. This also applies to an organization that owns a project and tries to update grants that an organization it delegated the project to created on that project. Instance administrators who manage grants across organizations must set x-zitadel-orgid to the grant’s organization or use the Authorization Service v2 UpdateAuthorization.

Creating a grant on a project owned by another organization now requires a project grant from that organization. Only the roles included in the…

Record
DHI-fhjh-gqqz-o6ga-2p7c
Updated
2026-12-02

The JSON record also has the rest of 1 source description.

History

Recorded by Every CVE

Changes recorded by Every CVE
DayChangedSources
First indexedOSV

Upstream dates may differ.

References

MoveEnter Open