CVE-2025-27507: Github.com/zitadel/zitadel/v2 IDOR Vulnerabilities Vulnerability

CRITICAL
Advisory Identifier: GHSA-f3gh-529w-v32x
CVSS 9.0
CWE-639 CWE-863
Published
Advisory Summary

CVE-2025-27507 is a CRITICAL (CVSS 9.0) idor vulnerabilities vulnerability (CWE-639: Authorization Bypass Through User-Controlled Key) affecting Github.com/zitadel/zitadel/v2 libraries in the Go ecosystem. The issue involves idor vulnerabilities in zitadel's admin api that primarily impact ldap configurations. Remediation is available by upgrading affected packages to version 2.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1.

CVE-2025-27507 at a Glance

CVE Identifier CVE-2025-27507
GHSA Identifier GHSA-f3gh-529w-v32x
Severity CRITICAL
CVSS v3.1 Base Score 9.0
CWE Classification CWE-639: Authorization Bypass Through User-Controlled Key
Affected Product Github.com/zitadel/zitadel/v2
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 9.0

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2025-27507

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.63.8
Upgrade github.com/zitadel/zitadel/v2 to 2.63.8
github.com/zitadel/zitadel/v2 fixed: 2.64.5
Upgrade github.com/zitadel/zitadel/v2 to 2.64.5
github.com/zitadel/zitadel/v2 fixed: 2.65.6
Upgrade github.com/zitadel/zitadel/v2 to 2.65.6
github.com/zitadel/zitadel/v2 fixed: 2.66.11
Upgrade github.com/zitadel/zitadel/v2 to 2.66.11
github.com/zitadel/zitadel/v2 fixed: 2.67.8
Upgrade github.com/zitadel/zitadel/v2 to 2.67.8
github.com/zitadel/zitadel/v2 fixed: 2.68.4
Upgrade github.com/zitadel/zitadel/v2 to 2.68.4
github.com/zitadel/zitadel/v2 fixed: 2.69.4
Upgrade github.com/zitadel/zitadel/v2 to 2.69.4
github.com/zitadel/zitadel/v2 fixed: 2.70.1
Upgrade github.com/zitadel/zitadel/v2 to 2.70.1
github.com/zitadel/zitadel fixed: 2.63.8
Upgrade github.com/zitadel/zitadel to 2.63.8
github.com/zitadel/zitadel fixed: 2.64.5
Upgrade github.com/zitadel/zitadel to 2.64.5
github.com/zitadel/zitadel fixed: 2.65.6
Upgrade github.com/zitadel/zitadel to 2.65.6
github.com/zitadel/zitadel fixed: 2.66.11
Upgrade github.com/zitadel/zitadel to 2.66.11
github.com/zitadel/zitadel fixed: 2.67.8
Upgrade github.com/zitadel/zitadel to 2.67.8
github.com/zitadel/zitadel fixed: 2.68.4
Upgrade github.com/zitadel/zitadel to 2.68.4
github.com/zitadel/zitadel fixed: 2.69.4
Upgrade github.com/zitadel/zitadel to 2.69.4
github.com/zitadel/zitadel fixed: 2.70.1
Upgrade github.com/zitadel/zitadel to 2.70.1
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-27507, 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.63.8), 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-639: Authorization Bypass Through User-Controlled Key, where the system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data. 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 ZITADEL's Admin API contains Insecure Direct Object Reference (IDOR) vulnerabilities that allow authenticated users, without specific IAM roles, to modify sensitive settings. While several endpoints are affected, the most critical vulnerability lies in the ability to manipulate LDAP configurations. Customers who do not utilize LDAP for authentication are not at risk from the most severe aspects of this vulnerability. However, we still strongly recommend upgrading to the patched version to address all identified issues. ### Description ZITADEL's Admin API, intended for managing ZITADEL instances, contains 12 HTTP endpoints that are unexpectedly accessible to authenticated ZITADEL users who are not ZITADEL managers. The most critical vulnerable endpoints relate to LDAP configuration: - /idps/ldap - /idps/ldap/{id} By accessing these endpoints, unauthorized users could: - Modify ZITADEL's instance LDAP settings, redirecting all LDAP login attempts to a malicious server, effectively taking over user accounts. - Expose the original LDAP server's password, potentially compromising all user accounts. ### Additional Vulnerable Endpoints The following endpoints are also affected by IDOR vulnerabilities, potentially allowing unauthorized modification of instance settings such as languages, labels, and templates: - /idps/templates/_search - /idps/templates/{id} - /policies/label/_activate - /policies/label/logo - /policies/label/logo_dark - /policies/label/icon - /policies/label/icon_dark - /policies/label/font - /text/message/passwordless_registration/{language} - /text/login/{language} ### Impact The impact of this vulnerability varies depending on whether a ZITADEL instance utilizes LDAP for authentication: - LDAP Users: Successful exploitation could lead to complete takeover of user accounts and exposure of the LDAP server's password. - Non-LDAP Users: While the most severe risks are related to LDAP, exploitation of the additional vulnerable endpoints could still allow unauthorized modification of instance settings, impacting all organizations. ### Patches 2.x versions are fixed on >= [2.71.0](https://github.com/zitadel/zitadel/releases/tag/v2.71.0) 2.70.x versions are fixed on >= [2.70.1](https://github.com/zitadel/zitadel/releases/tag/v2.70.1) 2.69.x versions are fixed on >= [2.69.4](https://github.com/zitadel/zitadel/releases/tag/v2.69.4) 2.68.x versions are fixed on >= [2.68.4](https://github.com/zitadel/zitadel/releases/tag/v2.68.4) 2.67.x versions are fixed on >= [2.67.8](https://github.com/zitadel/zitadel/releases/tag/v2.67.8) 2.66.x versions are fixed on >= [2.66.11](https://github.com/zitadel/zitadel/releases/tag/v2.66.11) 2.65.x versions are fixed on >= [2.65.6](https://github.com/zitadel/zitadel/releases/tag/v2.65.6) 2.64.x versions are fixed on >= [2.64.5](https://github.com/zitadel/zitadel/releases/tag/v2.64.5) 2.63.x versions are fixed on >= [2.63.8](https://github.com/zitadel/zitadel/releases/tag/v2.63.8) ### Questions If you have any questions or comments about this advisory, please email us at security@zitadel.com ### Credit This vulnerability was discovered by Amit Laish, a senior security researcher from GE Vernova and we want to thank him for reporting this to us!

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

16 component(s)
Fixed Versions:
2.63.82.64.52.65.62.66.112.67.82.68.42.69.42.70.1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel/v2
Go
< 2.63.8
2.63.8
github.com/zitadel/zitadel/v2
Go
≥ 2.64.0
< 2.64.5
2.64.5
github.com/zitadel/zitadel/v2
Go
≥ 2.65.0
< 2.65.6
2.65.6
github.com/zitadel/zitadel/v2
Go
≥ 2.66.0
< 2.66.11
2.66.11
github.com/zitadel/zitadel/v2
Go
≥ 2.67.0
< 2.67.8
2.67.8
github.com/zitadel/zitadel/v2
Go
≥ 2.68.0
< 2.68.4
2.68.4
github.com/zitadel/zitadel/v2
Go
≥ 2.69.0
< 2.69.4
2.69.4
github.com/zitadel/zitadel/v2
Go
≥ 2.70.0
< 2.70.1
2.70.1
github.com/zitadel/zitadel
Go
< 2.63.8
2.63.8
github.com/zitadel/zitadel
Go
≥ 2.64.0
< 2.64.5
2.64.5
github.com/zitadel/zitadel
Go
≥ 2.65.0
< 2.65.6
2.65.6
github.com/zitadel/zitadel
Go
≥ 2.66.0
< 2.66.11
2.66.11
github.com/zitadel/zitadel
Go
≥ 2.67.0
< 2.67.8
2.67.8
github.com/zitadel/zitadel
Go
≥ 2.68.0
< 2.68.4
2.68.4
github.com/zitadel/zitadel
Go
≥ 2.69.0
< 2.69.4
2.69.4
github.com/zitadel/zitadel
Go
≥ 2.70.0
< 2.70.1
2.70.1

References

Frequently Asked Questions

What is CVE-2025-27507?
CVE-2025-27507 is a security vulnerability in Github.com/zitadel/zitadel/v2 involving IDOR Vulnerabilities in ZITADEL's Admin API that Primarily Impact LDAP Configurations under CWE-639: Authorization Bypass Through User-Controlled Key.
Which Github.com/zitadel/zitadel/v2 versions are affected?
Affected versions include releases prior to 2.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1 across affected packages: github.com/zitadel/zitadel/v2, github.com/zitadel/zitadel.
What version fixes CVE-2025-27507?
Upgrading to 2.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1 (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.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1. Upgrade your dependency to 2.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1 or later.
Is github.com/zitadel/zitadel affected?
Yes, github.com/zitadel/zitadel is affected in releases prior to 2.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1. Upgrade your dependency to 2.63.8, 2.64.5, 2.65.6, 2.66.11, 2.67.8, 2.68.4, 2.69.4, 2.70.1 or later.
What is the CVSS score of CVE-2025-27507?
CVE-2025-27507 has a CVSS v3.1 base score of 9.0 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2025-27507?
CVE-2025-27507 is classified under CWE-639: Authorization Bypass Through User-Controlled Key (The system's authorization functionality does not prevent one user from gaining access to another user's data or record by modifying the key value identifying the data.).
How can I check Go dependencies for CVE-2025-27507?
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-f3gh-529w-v32x",
  "modified" : "2025-03-11T17:18:47Z",
  "published" : "2025-03-04T16:43:56Z",
  "aliases" : [ "CVE-2025-27507" ],
  "summary" : "IDOR Vulnerabilities in ZITADEL's Admin API that Primarily Impact LDAP Configurations",
  "details" : "### Summary\n\nZITADEL's Admin API contains Insecure Direct Object Reference (IDOR) vulnerabilities that allow authenticated users, without specific IAM roles, to modify sensitive settings. While several endpoints are affected, the most critical vulnerability lies in the ability to manipulate LDAP configurations. Customers who do not utilize LDAP for authentication are not at risk from the most severe aspects of this vulnerability. However, we still strongly recommend upgrading to the patched version to address all identified issues.\n\n### Description\n\nZITADEL's Admin API, intended for managing ZITADEL instances, contains 12 HTTP endpoints that are unexpectedly accessible to authenticated ZITADEL users who are not ZITADEL managers. The most critical vulnerable endpoints relate to LDAP configuration:\n\n- /idps/ldap\n- /idps/ldap/{id}\n\nBy accessing these endpoints, unauthorized users could:\n\n- Modify ZITADEL's instance LDAP settings, redirecting all LDAP login attempts to a malicious server, effectively taking over user accounts.  \n- Expose the original LDAP server's password, potentially compromising all user accounts.  \n\n### Additional Vulnerable Endpoints\n\nThe following endpoints are also affected by IDOR vulnerabilities, potentially allowing unauthorized modification of instance settings such as languages, labels, and templates:\n\n- /idps/templates/_search\n- /idps/templates/{id}\n- /policies/label/_activate\n- /policies/label/logo\n- /policies/label/logo_dark\n- /policies/label/icon\n- /policies/label/icon_dark\n- /policies/label/font\n- /text/message/passwordless_registration/{language}\n- /text/login/{language} \n\n### Impact\n\nThe impact of this vulnerability varies depending on whether a ZITADEL instance utilizes LDAP for authentication:\n\n- LDAP Users: Successful exploitation could lead to complete takeover of user accounts and exposure of the LDAP server's password.  \n- Non-LDAP Users: While the most severe risks are related to LDAP, exploitation of the additional vulnerable endpoints could still allow unauthorized modification of instance settings, impacting all organizations. \n\n### Patches\n\n2.x versions are fixed on >= [2.71.0](https://github.com/zitadel/zitadel/releases/tag/v2.71.0)\n2.70.x versions are fixed on >= [2.70.1](https://github.com/zitadel/zitadel/releases/tag/v2.70.1)\n2.69.x versions are fixed on >= [2.69.4](https://github.com/zitadel/zitadel/releases/tag/v2.69.4)\n2.68.x versions are fixed on >= [2.68.4](https://github.com/zitadel/zitadel/releases/tag/v2.68.4)\n2.67.x versions are fixed on >= [2.67.8](https://github.com/zitadel/zitadel/releases/tag/v2.67.8)\n2.66.x versions are fixed on >= [2.66.11](https://github.com/zitadel/zitadel/releases/tag/v2.66.11)\n2.65.x versions are fixed on >= [2.65.6](https://github.com/zitadel/zitadel/releases/tag/v2.65.6)\n2.64.x versions are fixed on >= [2.64.5](https://github.com/zitadel/zitadel/releases/tag/v2.64.5)\n2.63.x versions are fixed on >= [2.63.8](https://github.com/zitadel/zitadel/releases/tag/v2.63.8)\n\n### Questions\n\nIf you have any questions or comments about this advisory, please email us at security@zitadel.com\n\n### Credit\n\nThis vulnerability was discovered by Amit Laish, a senior security researcher from GE Vernova and we want to thank him for reporting this to us!",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.63.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.64.0"
      }, {
        "fixed" : "2.64.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.65.0"
      }, {
        "fixed" : "2.65.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.66.0"
      }, {
        "fixed" : "2.66.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.67.0"
      }, {
        "fixed" : "2.67.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.68.0"
      }, {
        "fixed" : "2.68.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.69.0"
      }, {
        "fixed" : "2.69.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel/v2"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.70.0"
      }, {
        "fixed" : "2.70.1"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.63.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.64.0"
      }, {
        "fixed" : "2.64.5"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.65.0"
      }, {
        "fixed" : "2.65.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.66.0"
      }, {
        "fixed" : "2.66.11"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.67.0"
      }, {
        "fixed" : "2.67.8"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.68.0"
      }, {
        "fixed" : "2.68.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.69.0"
      }, {
        "fixed" : "2.69.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "2.70.0"
      }, {
        "fixed" : "2.70.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-f3gh-529w-v32x"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-27507"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/d9d8339813f1c43d3eb7d8d80f11fdabb2fd2ee4"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.63.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.64.5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.65.6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.66.11"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.67.8"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.68.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.69.4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.70.1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v2.71.0"
  }, {
    "type" : "WEB",
    "url" : "https://pkg.go.dev/vuln/GO-2025-3499"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-639", "CWE-863" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-03-04T16:43:56Z",
    "nvd_published_at" : "2025-03-04T17:15:20Z"
  }
}