{"id":"GHSA-qx3g-qf45-rmvq","aliases":["DHI-7ztv-exc7-n46z-hwol"],"status":"published","description":"### Summary\n\nZITADEL’s **Management API V1** allowed an authenticated user who could create a project in their own organization to assign themselves an instance-level role — `IAM_OWNER` or `SYSTEM_OWNER` — as the project’s initial administrator. The project-creation endpoint (`POST /management/v1/projects`) accepted arbitrary values in the `admins[].roles` field without validating that they are project-scoped roles.\n\nBecause the resulting membership resolves to `iam.*` or `system.*` permissions, affected **Admin API** and **System API** endpoints honored it as though the caller held those roles instance-wide. The flaw is that the project-creation path applied the requested member roles directly, skipping the role validation that the ordinary project-member endpoint enforces.\n\n### Impact\n\nAn attacker who holds the `ORG_PROJECT_CREATOR` role (or is an organization owner) in any single organization on the instance can:\n\n- **Grant themselves `IAM_OWNER`** by naming it as their initial project-administrator role at project creation.\n- **Gain instance-administrator access** — read and modify instance-level configuration and policies through the **Admin API**.\n- **Enumerate and act across every organization** on the instance, including a cross-organization data export, regardless of their original single-organization scope.\n- **Grant themselves `SYSTEM_OWNER`** and reach **System API** functionality, up to and including deletion of the instance.\n\nThis affects deployments that expose the **Management API V1** alongside the **Admin API** or **System API** — the default configuration.\n\nThe issue requires an authenticated account that is already permitted to create a project in some organization; it is **not** reachable by an unauthenticated or purely read-only user. It does not, on its own, breach the boundary of the installation the caller already belongs to — but within that installation it collapses the organization → instance → system privilege separation entirely, turning a low-privileged organization-level role into full administrative control. The ordinary project-member endpoint (`POST /management/v1/projects/{id}/members`) is **not** affected: it rejects roles that are not project roles. The equivalent project APIs that do not accept initial administrators at creation are likewise unaffected.\n\n**Scope note:** The escalation is instance-wide and cross-organization within a single instance, and — via `SYSTEM_OWNER` — reaches installation-level **System API** functionality. It is confined to the installation the attacker can already authenticate to. No sibling advisory is associated.\n\n### Affected Versions\n\nSystems running one of the following versions are affected:\n\n* **4.x:** `4.2.0` through `4.20.7`\n\n### Patches\n\nThe vulnerability has been addressed in the latest releases.\n\nProject creation now accepts only project roles (`PROJECT_*`) for initial administrators, and roles that are not project roles are ignored on project and project-grant memberships when permissions are resolved — including memberships created before the upgrade.\n\n* **4.x**: Upgrade to $\\ge$ [4.20.8](https://github.com/zitadel/zitadel/releases/tag/v4.20.8)\n\n### Workarounds\n\nThe recommended solution is to upgrade to a patched version.\n\nThere is no configuration that fully closes this gap on unpatched versions. As a partial mitigation, limit the `ORG_PROJECT_CREATOR` and organization-owner roles to trusted users.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at security@zitadel.com\n\n### Credits\n\nThanks to Lucas Dodgson from InfoGuard Labs ([@lucasdodgson](https://github.com/lucasdodgson)) for finding and reporting the vulnerability.","facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"published":"2026-12-02T14:27:24Z","modified":"2026-12-02T14:30:13Z","affected":[{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-fips-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-fips-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.23","package":"zitadel-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Alpine:3.24","package":"zitadel-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-r0"}]}],"versions":["4.20.3-r0","4.20.4-r0","4.20.5-r0","4.20.6-r0","4.20.7-r0","4.20.8-r0","4.21.0-r0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-fips-dev","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-fips-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-fips","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4-license","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]},{"source":"osv","ecosystem":"Docker Hardened Images:Debian:13","package":"zitadel-4","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"4.20.3-0"}]}],"versions":["4.20.3-0","4.20.4-0","4.20.5-0","4.20.6-0","4.20.7-0","4.20.8-0","4.21.0-0"]}],"references":[{"url":"https://scout.docker.com/v/DHI-7ztv-exc7-n46z-hwol","tags":["advisory"]},{"url":"https://github.com/zitadel/zitadel/security/advisories/GHSA-qx3g-qf45-rmvq","tags":["advisory"]}],"sources":{"osv":[{"id":"DHI-7ztv-exc7-n46z-hwol","upstream":["GHSA-qx3g-qf45-rmvq"],"title":"### Summary","description":"### Summary\n\nZITADEL’s **Management API V1** allowed an authenticated user who could create a project in their own organization to assign themselves an instance-level role — `IAM_OWNER` or `SYSTEM_OWNER` — as the project’s initial administrator. The project-creation endpoint (`POST /management/v1/projects`) accepted arbitrary values in the `admins[].roles` field without validating that they are project-scoped roles.\n\nBecause the resulting membership resolves to `iam.*` or `system.*` permissions, affected **Admin API** and **System API** endpoints honored it as though the caller held those roles instance-wide. The flaw is that the project-creation path applied the requested member roles directly, skipping the role validation that the ordinary project-member endpoint enforces.\n\n### Impact\n\nAn attacker who holds the `ORG_PROJECT_CREATOR` role (or is an organization owner) in any single organization on the instance can:\n\n- **Grant themselves `IAM_OWNER`** by naming it as their initial project-administrator role at project creation.\n- **Gain instance-administrator access** — read and modify instance-level configuration and policies through the **Admin API**.\n- **Enumerate and act across every organization** on the instance, including a cross-organization data export, regardless of their original single-organization scope.\n- **Grant themselves `SYSTEM_OWNER`** and reach **System API** functionality, up to and including deletion of the instance.\n\nThis affects deployments that expose the **Management API V1** alongside the **Admin API** or **System API** — the default configuration.\n\nThe issue requires an authenticated account that is already permitted to create a project in some organization; it is **not** reachable by an unauthenticated or purely read-only user. It does not, on its own, breach the boundary of the installation the caller already belongs to — but within that installation it collapses the organization → instance → system privilege separation entirely, turning a low-privileged organization-level role into full administrative control. The ordinary project-member endpoint (`POST /management/v1/projects/{id}/members`) is **not** affected: it rejects roles that are not project roles. The equivalent project APIs that do not accept initial administrators at creation are likewise unaffected.\n\n**Scope note:** The escalation is instance-wide and cross-organization within a single instance, and — via `SYSTEM_OWNER` — reaches installation-level **System API** functionality. It is confined to the installation the attacker can already authenticate to. No sibling advisory is associated.\n\n### Affected Versions\n\nSystems running one of the following versions are affected:\n\n* **4.x:** `4.2.0` through `4.20.7`\n\n### Patches\n\nThe vulnerability has been addressed in the latest releases.\n\nProject creation now accepts only project roles (`PROJECT_*`) for initial administrators, and roles that are not project roles are ignored on project and project-grant memberships when permissions are resolved — including memberships created before the upgrade.\n\n* **4.x**: Upgrade to $\\ge$ [4.20.8](https://github.com/zitadel/zitadel/releases/tag/v4.20.8)\n\n### Workarounds\n\nThe recommended solution is to upgrade to a patched version.\n\nThere is no configuration that fully closes this gap on unpatched versions. As a partial mitigation, limit the `ORG_PROJECT_CREATOR` and organization-owner roles to trusted users.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at security@zitadel.com\n\n### Credits\n\nThanks to Lucas Dodgson from InfoGuard Labs ([@lucasdodgson](https://github.com/lucasdodgson)) for finding and reporting the vulnerability.\n","status":"published","published":"2026-12-02T14:27:24Z","modified":"2026-12-02T14:30:13.899674148Z","updated_at":"2026-12-02T14:44:02.567125Z"}]}}
