Every CVESearch/Get API key

GHSA-68mv-8rxc-2rrr

Summary ZITADEL lets an administrator create a service user with a self-chosen user ID, through the Management API…

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 lets an administrator create a service user with a self-chosen user ID, through the Management API (POST /management/v1/users/machine, field userId) or the User API v2 (POST /v2/users/new, field userId). When such an ID was supplied, ZITADEL only checked that no user with that ID existed in the caller’s own organization. An administrator of one organization could therefore “create” a service user with the ID of an existing user from any other organization on the same instance, including an instance administrator. The new record was attached to the existing user’s identity and assigned to the attacker’s organization, and a personal access token issued for it from that organization authenticated as the existing user, with all of that user’s roles.

The flaw is a missing instance-wide uniqueness check on caller-supplied user IDs when a service user is created. Once the duplicate existed, the attacker’s organization could issue personal access tokens, keys and client secrets for the user ID, and add an identity provider link that was accepted for a login as the existing user.

Impact

An attacker who can manage users in one organization (for example an organization owner, which anyone can become through self-registration of an organization, enabled by default) and who knows the user ID of a user in another organization can:

  • Issue a personal access token, a key or a client secret that authenticates as that user, without any interaction by, or credential of, the targeted user.
  • Act with the targeted user’s roles across the instance, including instance-level roles such as IAM_OWNER: read and change organizations, members, policies, projects and users anywhere on the instance.
  • Log in as the targeted user through an identity provider link: after linking an external identity to the user ID (POST /v2/users/{userId}/links), a session created with the targeted user’s login name and that identity is accepted, which gives a hosted login (Login V2) as the targeted user.
  • Lock the targeted user out: once the duplicate exists, a targeted human user can no longer log in with their own password.
  • Corrupt the targeted user’s record, because later changes to that user are recorded under the attacker’s organization.

This affects every ZITADEL deployment that exposes the Management API or the User API v2, independent of the login UI in use. User IDs are not secrets: they appear in API responses, invitations, audit data and application logs, so knowing a target ID is a low bar.

The issue does not expose passwords or other credentials of the targeted user, and it does not allow setting a password, an OTP or a passkey on the duplicated record. The attacker needs an account with user-management rights in some organization on the instance. Deployments that have disabled public organization registration (DisallowPublicOrgRegistration) and grant user-management rights only to trusted administrators are not reachable by anonymous attackers, but remain exposed to any such administrator. Creating a human user is not a route for this attack: the Management API does not accept a self-chosen ID for human users, and the User API v2 already rejected an ID that exists anywhere on the instance. Versions before 4.15.2 are not affected: there the duplicated record stays assigned to the targeted user’s organization, nothing can be issued for it from another organization, and the targeted user’s login keeps working.

Scope note: The flaw affects the creation of service users with a self-chosen ID through the Management API and the User API v2, the issuance of personal access tokens, keys and client secrets for the resulting record, and logins through an identity provider link added to it. This is a cross-organization flaw within a single instance and does not cross instance boundaries.

Affected Versions

Systems running one of the following versions are affected:

  • 4.x: 4.15.2 through 4.20.7

Patches

The vulnerability has been addressed in the latest releases. Creating a user with a self-chosen ID now fails when that ID is in use by any user on the instance, in any organization. A user ID becomes available again only after its user was deleted or the organization that owned it was removed. In addition, for a user ID that was already created more than once before the upgrade, in the same or in different organizations, issuing a personal access token, a key or a client secret and adding an identity provider link through the User API v2 now fail, from any organization, until the record is cleaned up.

Workarounds

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

Partial mitigation: disabling public organization registration (DisallowPublicOrgRegistration) removes the anonymous route to an organization-owner account. It does not protect against administrators who already hold user-management rights in any organization.

Questions

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

Credits

Thanks to the following people, who found and reported the vulnerability independently:

Investigation

<details> <summary>To check whether the flaw was used against your instance and clean up affected users, follow these instructions.</summary>

Operators should check whether the flaw was used against their instance, also after the upgrade. The patched version stops new duplicates, but personal access tokens, keys, client secrets and identity provider links that were issued for a duplicated user ID before the upgrade stay valid until they are removed.

Detect affected users. The following query lists every user ID that was created more than once. Run it against the ZITADEL database (read-only is fine). On installations with many instances, add AND instance_id = '<instance_id>' to the first CTE.

WITH creates AS (
    SELECT instance_id, aggregate_id, event_type, "owner", creator, created_at, "position"
    FROM eventstore.events2
    WHERE aggregate_type = 'user'
      AND event_type IN ('user.added', 'user.selfregistered',
                         'user.human.added', 'user.human.selfregistered',
                         'user.machine.added')
), dups AS (
    SELECT instance_id, aggregate_id
    FROM creates
    GROUP BY instance_id, aggregate_id
    HAVING count(*) > 1
)
SELECT c.instance_id, c.aggregate_id AS user_id, c.created_at, c.event_type,
       c."owner" AS org_id, c.creator,
       EXISTS (SELECT 1 FROM eventstore.events2 d
               WHERE d.instance_id = c.instance_id AND d.aggregate_type = 'user'
                 AND d.aggregate_id = c.aggregate_id AND d.event_type = 'user.removed'
                 AND d."position" > c."position") AS user_removed_later,
       EXISTS (SELECT 1 FROM eventstore.events2 o
               WHERE o.instance_id = c.instance_id AND o.aggregate_type = 'org'
                 AND o.aggregate_id = c."owner" AND o.event_type = 'org.removed'
                 AND o."position" > c."position") AS org_removed_later
FROM creates c
JOIN dups USING (instance_id, aggregate_id)
ORDER BY c.instance_id, c.aggregate_id, c."position";

Each row is one creation of the same user ID. A user ID needs attention if at least two of its rows have both user_removed_later = false and org_removed_later = false. Of these rows, the first one is the original user, and later rows in other organizations are the duplicates. Rows in the same organization are usually a provisioning mistake: they give no access beyond that organization, but new credentials are refused for them in the same way. creator is the user who performed each creation.

Clean up. For each affected user ID:

  1. Review what the duplicate gave access to: memberships (instance, organization, project), user grants, keys, personal access tokens, client secrets and linked identity providers of that user ID.
  2. Delete the user (for example via DELETE /v2/users/{userId} as an instance administrator). This removes the ID together with all its credentials, sessions and memberships, in every organization.
  3. Recreate the legitimate user in its organization with a new ID, and grant its memberships and roles again. Do not reuse the old ID while any other organization that created it still exists.
  4. If the duplicate was created by someone you do not trust, also review the audit log of the affected organizations for actions taken by that user ID.

Note that while a user ID is still duplicated, the patched version also refuses new personal access tokens, keys, client secrets and identity provider links for the legitimate user. Contact security@zitadel.com for assistance.

</details>

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-3lgv-uo33-uwdm-p5aaNo score

### Summary

Summary

ZITADEL lets an administrator create a service user with a self-chosen user ID, through the Management API (POST /management/v1/users/machine, field userId) or the User API v2 (POST /v2/users/new, field userId). When such an ID was supplied, ZITADEL only checked that no user with that ID existed in the caller’s own organization. An administrator of one organization could therefore “create” a service user with the ID of an existing user from any other organization on the same instance, including an instance administrator. The new record was attached to the existing user’s identity and assigned to the attacker’s organization, and a personal access token issued for it from that organization authenticated as the existing user, with all of that user’s roles.

The flaw is a missing instance-wide uniqueness check on caller-supplied user IDs when a service user is created. Once the duplicate existed, the attacker’s organization could issue personal access tokens, keys and client secrets for the user ID, and add an identity provider link that was accepted for a login as the existing user.

Impact

An attacker who can manage users in one organization (for example an organization owner, which anyone can become through self-registration of an organization, enabled by default) and who knows the user ID of a user in another organization can:

  • Issue a personal access token, a key or a client secret that authenticates as that user, without any interaction by, or credential of, the targeted user.
  • Act with the targeted user’s roles across the instance, including instance-level roles such as IAM_OWNER: read and change organizations, members, policies, projects and users anywhere on the instance.
  • Log in as the targeted user through an identity provider link: after linking an external identity to the user ID (POST /v2/users/{userId}/links), a session created with the targeted user’s login name and that identity is accepted, which gives a hosted login (Login V2) as the targeted user.
  • Lock the targeted user out: once the duplicate exists, a targeted human user can no longer log in with their own password.
  • Corrupt the targeted user’s record, because later changes to that user are recorded under the attacker’s organization.

This affects every ZITADEL deployment that exposes the Management API or the User API v2, independent of the login UI in use. User IDs are not secrets: they appear in API responses, invitations, audit data and application logs, so knowing a target ID is a low bar.

The issue does not expose passwords or other credentials of the targeted user, and it does not allow setting a password, an OTP or a passkey on the duplicated record. The attacker needs an account with user-management rights in some organization on the instance. Deployments that have disabled public organization registration (DisallowPublicOrgRegistration) and grant user-management rights only to trusted administrators are not reachable by anonymous attackers, but remain exposed to any such administrator. Creating a human user is not a route for this attack: the Management API does not accept a self-chosen ID for human users, and the User API v2 already rejected an ID that exists anywhere on the instance. Versions before 4.15.2 are not affected: there the duplicated record stays assigned to the targeted user’s organization, nothing can be issued for it from another organization, and the targeted user’s login keeps working.

Scope note: The flaw affects the creation of service users with a self-chosen ID through the Management API and the User API v2, the issuance of personal access tokens, keys and client secrets for the resulting record, and logins through an identity provider link added to it. This is a cross-organization flaw within a single instance and does not cross instance boundaries.

Affected Versions

Systems…

Record
DHI-3lgv-uo33-uwdm-p5aa
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