PT-2026-161264

Publicado

2026-11-19

·

Atualizado

2026-11-19

Descrição por

Pontuação
N/A
Não disponível

Não há classificações de severidade ou métricas disponíveis. Quando houver, atualizaremos as informações correspondentes na página.

Summary

ZITADEL’s hosted Login V2 UI allowed an unauthenticated attacker to obtain a fresh session token for another user’s authenticated session — including every factor that user had completed, such as MFA — without a password, a second factor, an existing session token, or any interaction with the victim, provided the attacker could guess the victim’s session ID. Session IDs are time-ordered identifiers, so an attacker who creates sessions shortly before and after the victim signs in can narrow the candidates to a small set and test them.
Login V2 kept its session references in a browser cookie that was neither signed nor otherwise validated. When updating a session, the login UI forwarded the session ID from that cookie to the session API using its own service-user credentials, which hold the session.write permission; the session API accepts such updates without the session’s current token and returns a newly issued one. As a result, a forged cookie entry containing a guessed session ID and an empty token was sufficient to make the login UI rotate — and hand out — the token of a session it had not created.

Impact

An attacker who can reach the Login V2 UI and can estimate when a victim signs in can:
  • Obtain a valid session token for the victim’s authenticated session, retaining every factor the victim completed, including MFA.
  • Act as the victim — complete OIDC and SAML flows and call ZITADEL’s APIs with that token. If the victim is an instance administrator (e.g. IAM OWNER), this results in full instance takeover; for a non-privileged victim it is a takeover of that user’s account.
  • Read the details of any session by its ID (login name, authentication factors) and sign that session out, through the same unsigned cookie.
This affects applications that authenticate users through ZITADEL’s hosted Login V2 UI (OIDC/SAML).
The attack is timing-sensitive: the attacker must guess the session ID from a window around the victim’s sign-in. The time-based structure of session IDs narrows that search, while load balancing, concurrent traffic and any rate limiting in front of the login UI widen it. It does not require the victim to do anything beyond signing in normally, and it does not depend on how the victim authenticates — password, passkey and external identity provider logins all produce the same kind of session. Deployments that do not run Login V2 (for example Login V1 only) are not affected: the session API itself only accepts token-less updates from callers holding session.write (IAM OWNER and IAM LOGIN CLIENT), which are not exposed to end users.
Scope note: This affects the Login V2 UI only; the session API’s behaviour is unchanged and by design. Exposure is instance-wide — any session on the instance can be targeted, across organizations, but not across instances. It is the login-side counterpart of GHSA-6c5p-6www-pcmr, which restricted token-less session updates to callers with session.write: that permission is legitimately held by the login UI, and this issue is the login UI applying it to a session ID chosen by the client. Operators of a custom login built on the session API with a session.write service user should verify that it only acts on session IDs it issued itself. It is independent of GHSA-3gwm-5wx8-4gm6, which concerns OTP challenge handling.

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.
Login V2 now signs every entry of its session cookie and ignores entries whose signature is missing or invalid, so the login UI only acts on sessions it created itself in that browser. The signing key is derived from the new ZITADEL SESSION COOKIE SECRET setting, which is the recommended configuration (at least 32 characters; a comma-separated list allows rotation without signing users out). If it is not set, the key is derived from the login’s configured API credential so that the patch can be applied without new configuration; this fallback is deprecated, is announced by a warning at startup, and means that rotating that credential signs all users out of the login UI. Because existing cookies carry no signature, users have to sign in to the login UI once more after upgrading — during a rolling deployment possibly more than once, until all replicas run the patched version. Application sessions and issued tokens are not affected. The session API contract is unchanged.
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. There is no configuration that fully closes this gap on unpatched versions. As a partial mitigation, rate limiting requests to the login UI (for example at a reverse proxy) reduces the feasibility of the session-ID search but does not close the gap.

Questions

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

Credits

Thanks to Lucas Dodgson from InfoGuard Labs (@lucasdodgson) for finding and reporting the vulnerability.
Fornecedores
Produtos afetados
Identificadores relacionados
DHI-XCBL-QUIN-EHBR-7QUI
Encontrou algum problema na descrição? Tem algo a acrescentar? Fique à vontade para nos escrever 👾