CVE-2025-64717: Github.com/zitadel/zitadel ZITADEL Is Vulnerable To Account Vulnerability

HIGH
Advisory Identifier: GHSA-j4g7-v4m4-77px
CWE-287
Published
Advisory Summary

CVE-2025-64717 is a HIGH zitadel is vulnerable to account vulnerability (CWE-287: Improper Authentication) affecting Github.com/zitadel/zitadel libraries in the Go ecosystem. The issue involves zitadel is vulnerable to account takeover with deactivated instance idp. Remediation is available by upgrading affected packages to version 4.6.6, 3.4.4, 2.71.19, 1.80.0-v2.20.0.20251112124840-33c51deb2040.

CVE-2025-64717 at a Glance

CVE Identifier CVE-2025-64717
GHSA Identifier GHSA-j4g7-v4m4-77px
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-287: Improper Authentication
Affected Product Github.com/zitadel/zitadel
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-64717

To remediate this vulnerability, upgrade all affected Github.com/zitadel/zitadel dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/zitadel/zitadel fixed: 4.6.6
Upgrade github.com/zitadel/zitadel to 4.6.6
github.com/zitadel/zitadel fixed: 3.4.4
Upgrade github.com/zitadel/zitadel to 3.4.4
github.com/zitadel/zitadel fixed: 2.71.19
Upgrade github.com/zitadel/zitadel to 2.71.19
github.com/zitadel/zitadel fixed: 1.80.0-v2.20.0.20251112124840-33c51deb2040
Upgrade github.com/zitadel/zitadel to 1.80.0-v2.20.0.20251112124840-33c51deb2040
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/zitadel/zitadel

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-64717, inspect your project dependencies for Github.com/zitadel/zitadel:

inspect dependencies for github.com/zitadel/zitadel

Analyze the terminal output to locate any version of Github.com/zitadel/zitadel in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.6.6), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-287: Improper Authentication, where when an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct. In Github.com/zitadel/zitadel, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary A vulnerability in ZITADEL's federation process allowed auto-linking users from external identity providers to existing users in ZITADEL even if the corresponding IdP was not active or if the organization did not allow federated authentication. ### Impact This vulnerability stems from the platform's failure to correctly check or enforce an organization's specific security settings during the authentication flow. An Organization Administrator can explicitly disable an IdP or disallow federation, but this setting was not being honored during the auto-linking process. This allowed an unauthenticated attacker to initiate a login using an IdP that should have been disabled for that organization. The platform would incorrectly validate the login and, based on a matching criteria, link the attacker's external identity to an existing internal user account. This may result in a full Account Takeover, bypassing the organization's mandated security controls. Note that accounts with MFA enabled can not be taken over by this attack. Also note that only IdPs create on an instance level would allow this to work. IdPs registered on another organization would always be denied in the (auto-)linking process. ### Affected Versions Systems running one of the following versions are affected: - **v4.x**: `4.0.0-rc.1` through `4.6.5` - **v3.x**: `3.0.0-rc.1` through `3.4.3` - **v2.x**: `2.50.0` through `2.71.18` ### Patches The vulnerability has been addressed in the latest release. The patch resolves the issue by correctly validating the organization's login policy before auto-linking an external user. - v4.x: Upgrade to version [4.6.6](https://github.com/zitadel/zitadel/releases/tag/v4.6.6) or later. - v3.x: Update to version [3.4.4](https://github.com/zitadel/zitadel/releases/tag/v3.4.4) or later. - v2.x: Update to version [2.71.19](https://github.com/zitadel/zitadel/releases/tag/v2.71.19) or later. ### Workarounds Upgrading to a patched version is the recommended solution. ### Questions If you have any questions or comments about this advisory, please email Zitadel at [security@zitadel.com](mailto:security@zitadel.com) ### Credits Thanks to Jan Kühnlein - kultify for finding and reporting the vulnerability.

CVE-2025-64717 Affected Github.com/zitadel/zitadel Versions

4 component(s)
Fixed Versions:
4.6.63.4.42.71.191.80.0-v2.20.0.20251112124840-33c51deb2040
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel
Go
≥ 4.0.0-rc.1
< 4.6.6
4.6.6
github.com/zitadel/zitadel
Go
≥ 3.0.0-rc.1
< 3.4.4
3.4.4
github.com/zitadel/zitadel
Go
≥ 2.50.0
< 2.71.19
2.71.19
github.com/zitadel/zitadel
Go
≥ 1.80.0-v2.20.0.20240403060621-5b3946b67ef6
< 1.80.0-v2.20.0.20251112124840-33c51deb2040
1.80.0-v2.20.0.20251112124840-33c51deb2040

References

Frequently Asked Questions

What is CVE-2025-64717?
CVE-2025-64717 is a security vulnerability in Github.com/zitadel/zitadel involving ZITADEL is vulnerable to Account Takeover with deactivated Instance IdP under CWE-287: Improper Authentication.
Which Github.com/zitadel/zitadel versions are affected?
Affected versions include releases prior to 4.6.6, 3.4.4, 2.71.19, 1.80.0-v2.20.0.20251112124840-33c51deb2040 across affected packages: github.com/zitadel/zitadel.
What version fixes CVE-2025-64717?
Upgrading to 4.6.6, 3.4.4, 2.71.19, 1.80.0-v2.20.0.20251112124840-33c51deb2040 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/zitadel/zitadel affected?
Yes, github.com/zitadel/zitadel is affected in releases prior to 4.6.6, 3.4.4, 2.71.19, 1.80.0-v2.20.0.20251112124840-33c51deb2040. Upgrade your dependency to 4.6.6, 3.4.4, 2.71.19, 1.80.0-v2.20.0.20251112124840-33c51deb2040 or later.
What CWE is associated with CVE-2025-64717?
CVE-2025-64717 is classified under CWE-287: Improper Authentication (When an actor claims to have a given identity, the product does not prove or insufficiently proves that the claim is correct.).
How can I check Go dependencies for CVE-2025-64717?
Run the dependency tree command: 'inspect dependencies for github.com/zitadel/zitadel'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j4g7-v4m4-77px",
  "modified" : "2025-11-14T21:11:39Z",
  "published" : "2025-11-14T21:11:38Z",
  "aliases" : [ "CVE-2025-64717" ],
  "summary" : "ZITADEL is vulnerable to Account Takeover with deactivated Instance IdP",
  "details" : "### Summary\n\nA vulnerability in ZITADEL's federation process allowed auto-linking users from external identity providers to existing users in ZITADEL even if the corresponding IdP was not active or if the organization did not allow federated authentication.\n\n### Impact\n\nThis vulnerability stems from the platform's failure to correctly check or enforce an organization's specific security settings during the authentication flow. An Organization Administrator can explicitly disable an IdP or disallow federation, but this setting was not being honored during the auto-linking process.\n\nThis allowed an unauthenticated attacker to initiate a login using an IdP that should have been disabled for that organization. The platform would incorrectly validate the login and, based on a matching criteria, link the attacker's external identity to an existing internal user account.\n\nThis may result in a full Account Takeover, bypassing the organization's mandated security controls. Note that accounts with MFA enabled can not be taken over by this attack. Also note that only IdPs create on an instance level would allow this to work. IdPs registered on another organization would always be denied in the (auto-)linking process.\n\n### Affected Versions\n\nSystems running one of the following versions are affected:\n- **v4.x**: `4.0.0-rc.1` through `4.6.5`\n- **v3.x**: `3.0.0-rc.1` through `3.4.3`\n- **v2.x**: `2.50.0` through `2.71.18`\n\n### Patches\n\nThe vulnerability has been addressed in the latest release. The patch resolves the issue by correctly validating the organization's login policy before auto-linking an external user.\n\n- v4.x: Upgrade to version [4.6.6](https://github.com/zitadel/zitadel/releases/tag/v4.6.6) or later.\n- v3.x: Update to version [3.4.4](https://github.com/zitadel/zitadel/releases/tag/v3.4.4) or later.\n- v2.x: Update to version [2.71.19](https://github.com/zitadel/zitadel/releases/tag/v2.71.19) or later.\n\n### Workarounds\n\nUpgrading to a patched version is the recommended solution.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email Zitadel at [security@zitadel.com](mailto:security@zitadel.com)\n\n### Credits\n\nThanks to Jan Kühnlein - kultify for finding and reporting the vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.0.0-rc.1"
      }, {
        "fixed" : "4.6.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0-rc.1"
      }, {
        "fixed" : "3.4.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.50.0"
      }, {
        "fixed" : "2.71.19"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.80.0-v2.20.0.20240403060621-5b3946b67ef6"
      }, {
        "fixed" : "1.80.0-v2.20.0.20251112124840-33c51deb2040"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-j4g7-v4m4-77px"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64717"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/33c51deb20402dd5720e32cfb0c1d5fdc752f2e0"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.71.19"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v3.4.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v4.6.6"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-287" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-11-14T21:11:38Z",
    "nvd_published_at" : "2025-11-13T16:15:56Z"
  }
}