DHI-2ga2-sgy6-mhkb-m3tk

Source
https://scout.docker.com/v/DHI-2ga2-sgy6-mhkb-m3tk
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-2ga2-sgy6-mhkb-m3tk
Upstream
  • GHSA-w4gv-rcwj-w6r5
Published
2026-11-19T00:24:54Z
Modified
2026-11-30T23:30:09Z
Summary
### Summary
Details

Summary

ZITADEL’s OIDC token exchange allowed a user holding only the end-user impersonation permission to impersonate administrators, including an instance owner (IAM_OWNER).

ZITADEL distinguishes two impersonation permissions: impersonation, granted by the IAM_END_USER_IMPERSONATOR and ORG_END_USER_IMPERSONATOR roles, is documented to allow impersonating end users only, while impersonating administrators additionally requires admin.impersonation, granted by the IAM_ADMIN_IMPERSONATOR and ORG_ADMIN_IMPERSONATOR roles. The token exchange only ever checked impersonation and never whether the impersonated user is an administrator, so admin.impersonation was not enforced.

Impact

An actor holding one of the *_END_USER_IMPERSONATOR roles can:

  • Impersonate any administrator within the scope of their role (instance-wide for IAM_END_USER_IMPERSONATOR, the users of their organization for ORG_END_USER_IMPERSONATOR), including IAM_OWNER and ORG_OWNER
  • Sign in to applications as that administrator, with the administrator’s roles and claims

Impersonated tokens are marked as such and are rejected by ZITADEL’s own APIs, so the issue does not grant access to the ZITADEL Console or the management APIs. Its impact is limited to what the impersonated administrator can do in applications that rely on the instance for authentication.

This affects instances where impersonation is enabled (the instance security setting Allow Impersonation, which is disabled by default, and the token exchange grant on at least one application) and where at least one user holds an *_END_USER_IMPERSONATOR role. Exploitation requires that role, so it is only reachable by users an administrator has already trusted to impersonate end users.

Scope note: A user counts as an administrator as soon as they hold any membership (instance, organization, project or project grant). The issue does not cross organizations for ORG_END_USER_IMPERSONATOR and does not cross instances.

Affected Versions

Systems running one of the following versions are affected:

  • 4.x: 4.0.0 through 4.19.1 (including RC versions)
  • 3.x: 3.0.0 through 3.4.15 (including RC versions)

Patches

The vulnerability has been addressed in the latest releases. Impersonating a user who holds any membership now requires the admin.impersonation permission, which only the IAM_ADMIN_IMPERSONATOR and ORG_ADMIN_IMPERSONATOR roles grant; the *_END_USER_IMPERSONATOR roles can only impersonate users without memberships.

  • 4.x: Upgrade to $\ge$ 4.19.2

The 3.x release line reached end-of-life on 2026-08-31 and will not receive a fix for this vulnerability. Affected 3.x deployments must upgrade to a patched 4.x release.

Workarounds

The recommended solution is to upgrade to a patched version. On unpatched versions, the issue can be avoided by not granting the IAM_END_USER_IMPERSONATOR and ORG_END_USER_IMPERSONATOR roles, or by disabling impersonation in the instance security settings.

Questions

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

Credits

Thanks to Wojciech Piekutowski from Nedap for finding and reporting the vulnerability.

References

Affected packages

Docker Hardened Images:Alpine:3.23
zitadel-4-dev

Package

Name
zitadel-4-dev
Purl
pkg:apk/dhi/zitadel-4-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips-dev

Package

Name
zitadel-4-fips-dev
Purl
pkg:apk/dhi/zitadel-4-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips-license

Package

Name
zitadel-4-fips-license
Purl
pkg:apk/dhi/zitadel-4-fips-license

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips

Package

Name
zitadel-4-fips
Purl
pkg:apk/dhi/zitadel-4-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-license

Package

Name
zitadel-4-license
Purl
pkg:apk/dhi/zitadel-4-license

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4

Package

Name
zitadel-4
Purl
pkg:apk/dhi/zitadel-4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
Docker Hardened Images:Alpine:3.24
zitadel-4-dev

Package

Name
zitadel-4-dev
Purl
pkg:apk/dhi/zitadel-4-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips-dev

Package

Name
zitadel-4-fips-dev
Purl
pkg:apk/dhi/zitadel-4-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips-license

Package

Name
zitadel-4-fips-license
Purl
pkg:apk/dhi/zitadel-4-fips-license

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips

Package

Name
zitadel-4-fips
Purl
pkg:apk/dhi/zitadel-4-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-license

Package

Name
zitadel-4-license
Purl
pkg:apk/dhi/zitadel-4-license

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4

Package

Name
zitadel-4
Purl
pkg:apk/dhi/zitadel-4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-r0

Affected versions

4.*
4.20.3-r0
4.20.4-r0
4.20.5-r0
4.20.6-r0
4.20.7-r0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
Docker Hardened Images:Debian:13
zitadel-4-dev

Package

Name
zitadel-4-dev
Purl
pkg:deb/dhi/zitadel-4-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-0

Affected versions

4.*
4.20.3-0
4.20.4-0
4.20.5-0
4.20.6-0
4.20.7-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips-dev

Package

Name
zitadel-4-fips-dev
Purl
pkg:deb/dhi/zitadel-4-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-0

Affected versions

4.*
4.20.3-0
4.20.4-0
4.20.5-0
4.20.6-0
4.20.7-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips-license

Package

Name
zitadel-4-fips-license
Purl
pkg:deb/dhi/zitadel-4-fips-license

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-0

Affected versions

4.*
4.20.3-0
4.20.4-0
4.20.5-0
4.20.6-0
4.20.7-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-fips

Package

Name
zitadel-4-fips
Purl
pkg:deb/dhi/zitadel-4-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-0

Affected versions

4.*
4.20.3-0
4.20.4-0
4.20.5-0
4.20.6-0
4.20.7-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4-license

Package

Name
zitadel-4-license
Purl
pkg:deb/dhi/zitadel-4-license

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-0

Affected versions

4.*
4.20.3-0
4.20.4-0
4.20.5-0
4.20.6-0
4.20.7-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"
zitadel-4

Package

Name
zitadel-4
Purl
pkg:deb/dhi/zitadel-4

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.20.3-0

Affected versions

4.*
4.20.3-0
4.20.4-0
4.20.5-0
4.20.6-0
4.20.7-0

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-2ga2-sgy6-mhkb-m3tk.json"