CVE-2025-64102: Github.com/zitadel/zitadel/v2 Zitadel Allows Brute-forcing Authentication Factors Vulnerability

HIGH
Advisory Identifier: GHSA-xrw9-r35x-x878
CWE-307
Published
Advisory Summary

CVE-2025-64102 is a HIGH zitadel allows brute-forcing authentication factors vulnerability (CWE-307: Improper Restriction of Excessive Authentication Attempts) affecting Github.com/zitadel/zitadel/v2 libraries in the Go ecosystem. The issue involves zitadel allows brute-forcing authentication factors. Remediation is available by upgrading affected packages to version 2.71.18, 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8.

CVE-2025-64102 at a Glance

CVE Identifier CVE-2025-64102
GHSA Identifier GHSA-xrw9-r35x-x878
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-307: Improper Restriction of Excessive Authentication Attempts
Affected Product Github.com/zitadel/zitadel/v2
Package Ecosystem Go
Published Date
Last Updated

How to Fix CVE-2025-64102

To remediate this vulnerability, upgrade all affected Github.com/zitadel/zitadel/v2 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/v2 fixed: 2.71.18
Upgrade github.com/zitadel/zitadel/v2 to 2.71.18
github.com/zitadel/zitadel fixed: 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8
Upgrade github.com/zitadel/zitadel to 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8
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/v2

How to Check if You Are Affected

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

inspect dependencies for github.com/zitadel/zitadel/v2

Analyze the terminal output to locate any version of Github.com/zitadel/zitadel/v2 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.71.18), 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-307: Improper Restriction of Excessive Authentication Attempts, where the product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame. In Github.com/zitadel/zitadel/v2, 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 allowed brute-force attack on OTP, TOTP and password allowing to impersonate the attacked user. ### Impact An attacker can perform an online brute-force attack on OTP, TOTP, and passwords. While Zitadel allows preventing online brute force attacks in scenarios like TOTP, Email OTP, or passwords using a lockout mechanism. The mechanism is not enabled by default and can cause a denial of service for the corresponding user if enabled. Additionally, the mitigation strategies were not fully implemented in the more recent resource-based APIs. ### Affected Versions All versions within the following ranges, including release candidates (RCs), are affected: - **4.x**: `4.0.0` to `4.4.0` (including RC versions) - **3.x**: `3.0.0` to `3.4.2` (including RC versions) - **2.x**: `v2.0.0` to `2.71.17` ### Patches The vulnerability has been addressed in the latest releases. The patch resolves the issue by enforcing the lockout policy on all OTP, TOTP and password checks. Additionally a “tar pit” has been introduced to slow down brute-force attacks by default. Zitadel responses will be delayed by t seconds, where t increases over the number of failed attempts within a given timeframe. 4.x: Upgrade to >=[4.6.0](https://github.com/zitadel/zitadel/releases/tag/v4.6.0) 3.x: Update to >=[3.4.3](https://github.com/zitadel/zitadel/releases/tag/v3.4.3) 2.x: Update to >=[2.71.18](https://github.com/zitadel/zitadel/releases/tag/v2.71.18) ### Workarounds The recommended solution is to update Zitadel to a patched version. The problem might be mitigated by enabling the optional logout policy ("Password maximum attempts") or by implementing more strict rate limits. ### Questions If you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com) ### Credits This vulnerability was found by [zentrust partners GmbH](https://zentrust.partners) during a scheduled penetration test. Thank you to the analysts Martin Tschirsich, Joud Zakharia, Christopher Baumann. The full report will be made public after the complete review.

CVE-2025-64102 Affected Github.com/zitadel/zitadel/v2 Versions

2 component(s)
Fixed Versions:
2.71.181.80.0-v2.20.0.20251029090735-b8db8cdf9cc8
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel/v2
Go
< 2.71.18
2.71.18
github.com/zitadel/zitadel
Go
< 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8
1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8

References

Frequently Asked Questions

What is CVE-2025-64102?
CVE-2025-64102 is a security vulnerability in Github.com/zitadel/zitadel/v2 involving Zitadel allows brute-forcing authentication factors under CWE-307: Improper Restriction of Excessive Authentication Attempts.
Which Github.com/zitadel/zitadel/v2 versions are affected?
Affected versions include releases prior to 2.71.18, 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8 across affected packages: github.com/zitadel/zitadel/v2, github.com/zitadel/zitadel.
What version fixes CVE-2025-64102?
Upgrading to 2.71.18, 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/zitadel/zitadel/v2 affected?
Yes, github.com/zitadel/zitadel/v2 is affected in releases prior to 2.71.18. Upgrade your dependency to 2.71.18 or later.
Is github.com/zitadel/zitadel affected?
Yes, github.com/zitadel/zitadel is affected in releases prior to 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8. Upgrade your dependency to 1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8 or later.
What CWE is associated with CVE-2025-64102?
CVE-2025-64102 is classified under CWE-307: Improper Restriction of Excessive Authentication Attempts (The product does not implement sufficient measures to prevent multiple failed authentication attempts within a short time frame.).
How can I check Go dependencies for CVE-2025-64102?
Run the dependency tree command: 'inspect dependencies for github.com/zitadel/zitadel/v2'. 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-xrw9-r35x-x878",
  "modified" : "2025-11-05T22:13:38Z",
  "published" : "2025-10-29T22:21:05Z",
  "aliases" : [ "CVE-2025-64102" ],
  "summary" : "Zitadel allows brute-forcing authentication factors",
  "details" : "### Summary\n\nA vulnerability in Zitadel allowed brute-force attack on OTP, TOTP and password allowing to impersonate the attacked user.\n\n### Impact\n\nAn attacker can perform an online brute-force attack on OTP, TOTP, and passwords. While Zitadel allows preventing online brute force attacks in scenarios like TOTP, Email OTP, or passwords using a lockout mechanism. The mechanism is not enabled by default and can cause a denial of service for the corresponding user if enabled. Additionally, the mitigation strategies were not fully implemented in the more recent resource-based APIs.\n\n### Affected Versions\n\nAll versions within the following ranges, including release candidates (RCs), are affected:\n- **4.x**: `4.0.0` to `4.4.0` (including RC versions)\n- **3.x**: `3.0.0` to `3.4.2` (including RC versions)\n- **2.x**: `v2.0.0` to `2.71.17`\n\n### Patches\n\nThe vulnerability has been addressed in the latest releases. The patch resolves the issue by enforcing the lockout policy on all OTP, TOTP and password checks. Additionally a “tar pit” has been introduced to slow down brute-force attacks by default. Zitadel responses will be delayed by t seconds, where t increases over the number of failed attempts within a given timeframe.\n\n4.x: Upgrade to >=[4.6.0](https://github.com/zitadel/zitadel/releases/tag/v4.6.0)\n3.x: Update to >=[3.4.3](https://github.com/zitadel/zitadel/releases/tag/v3.4.3)\n2.x: Update to >=[2.71.18](https://github.com/zitadel/zitadel/releases/tag/v2.71.18)\n\n### Workarounds\n\nThe recommended solution is to update Zitadel to a patched version.\n\nThe problem might be mitigated by enabling the optional logout policy (\"Password maximum attempts\") or by implementing more strict rate limits.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at [security@zitadel.com](mailto:security@zitadel.com)\n\n### Credits\n\nThis vulnerability was found by [zentrust partners GmbH](https://zentrust.partners) during a scheduled penetration test. Thank you to the analysts Martin Tschirsich, Joud Zakharia, Christopher Baumann.\nThe full report will be made public after the complete review.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.71.18"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.80.0-v2.20.0.20251029090735-b8db8cdf9cc8"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-xrw9-r35x-x878"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-64102"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/b8db8cdf9cc8ea13f461758aef12457f8b7d972a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-4085"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-307" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-10-29T22:21:05Z",
    "nvd_published_at" : "2025-10-29T19:15:38Z"
  }
}