CVE-2026-76081: ZITADEL Improper Role Revocation On Granted Vulnerability

MODERATE
Advisory Identifier: GHSA-v859-c572-qh5p
CVSS 5.5
CWE-193
Published
Advisory Summary

CVE-2026-76081 is a MODERATE (CVSS 5.5) improper role revocation on granted vulnerability (CWE-193: Off-by-one Error) affecting ZITADEL libraries in the Go ecosystem. The issue involves improper role revocation on granted projects during multiple role deletions. Remediation is available by upgrading affected packages to version 4.16.0.

CVE-2026-76081 at a Glance

CVE Identifier CVE-2026-76081
GHSA Identifier GHSA-v859-c572-qh5p
Severity MODERATE
CVSS v3.1 Base Score 5.5
CWE Classification CWE-193: Off-by-one Error
Affected Product ZITADEL
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 5.5

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:U/C:L/I:H/A:N).

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

How to Fix CVE-2026-76081

To remediate this vulnerability, upgrade all affected 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.16.0
Upgrade github.com/zitadel/zitadel to 4.16.0
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-2026-76081, inspect your project dependencies for ZITADEL:

inspect dependencies for github.com/zitadel/zitadel

Analyze the terminal output to locate any version of ZITADEL in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.16.0), 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-193: Off-by-one Error, where a product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value. In 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 bug in how ZITADEL updates permissions when multiple project roles are deleted at the same time can cause some user permissions to be missed. This issue specifically affects **User Grants on Granted Projects** (projects shared between different organizations), **potentially** allowing users to keep access rights that were supposed to be completely removed. ### Impact When an organization shares a project with another organization (a Project Grant), administrators can assign specific roles to users via a User Grant. If multiple roles are deleted from that project at the same time, a background process runs to strip those roles from the assigned users. Because of an error in how ZITADEL loops through a user's list of roles during this specific cross-organization cleanup, deleting two or more roles at once **might** cause the system to accidentally skip over some of them. > **Scope Note:** This vulnerability only affects **User Grants on Granted Projects**. Direct project roles and global organization roles are not impacted. The risk depends entirely on what the skipped role allowed the user to do—if it was an administrative or high-privilege role, the user **could potentially** retain those elevated permissions within that granted project even after the role was officially deleted. ### Affected Versions * **4.x:** `4.0.0` through `4.15.3` (including RC versions) * **3.x:** `3.0.0` through `3.4.12` (including RC versions) Note: The 3.x release channel has reached End-of-Life (EOL) for security updates and will not receive a backported patch. ### Patches & Resolution This issue has been fully resolved in the latest releases. The update fixes the role-removal logic to ensure no roles are skipped. Furthermore, **this patch includes an automatic database migration**. When you update, the system will automatically scan your database, find any user permissions on granted projects that **may** have been accidentally left behind by this bug, and correct them. - **4.x**: Upgrade to $\ge$[4.16.0](https://github.com/zitadel/zitadel/releases/tag/v4.16.0) - **3.x**: Update to $\ge$[4.16.0](https://github.com/zitadel/zitadel/releases/tag/v4.16.0) (or check out workarounds) ### Workarounds There are no configuration workarounds. Upgrading to a patched version is the recommended solution and only way to trigger the automatic cleanup migration. If you cannot upgrade immediately, we recommend manually reviewing user permissions specifically for your **Granted Projects** where multiple roles were recently deleted. ### Questions If you have any questions or comments about this advisory, please reach out to us at security@zitadel.com. ### Credits Thanks to [AyushParkara](https://github.com/AyushParkara) for reporting this vulnerability.

CVE-2026-76081 Affected ZITADEL Versions

1 component(s)
Fixed Versions:
4.16.0
Product / Package Ecosystem Affected Versions Fixed Version
github.com/zitadel/zitadel
Go
< 4.16.0
4.16.0

References

Frequently Asked Questions

What is CVE-2026-76081?
CVE-2026-76081 is a security vulnerability in ZITADEL involving Improper Role Revocation on Granted Projects during Multiple Role Deletions under CWE-193: Off-by-one Error.
Which ZITADEL versions are affected?
Affected versions include releases prior to 4.16.0 across affected packages: github.com/zitadel/zitadel.
What version fixes CVE-2026-76081?
Upgrading to 4.16.0 (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.16.0. Upgrade your dependency to 4.16.0 or later.
What is the CVSS score of CVE-2026-76081?
CVE-2026-76081 has a CVSS v3.1 base score of 5.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N.
What CWE is associated with CVE-2026-76081?
CVE-2026-76081 is classified under CWE-193: Off-by-one Error (A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.).
How can I check Go dependencies for CVE-2026-76081?
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-v859-c572-qh5p",
  "modified" : "2026-09-14T21:31:37Z",
  "published" : "2026-09-14T21:31:37Z",
  "aliases" : [ "CVE-2026-76081" ],
  "summary" : "ZITADEL: Improper Role Revocation on Granted Projects during Multiple Role Deletions",
  "details" : "### Summary\n\nA bug in how ZITADEL updates permissions when multiple project roles are deleted at the same time can cause some user permissions to be missed. This issue specifically affects **User Grants on Granted Projects** (projects shared between different organizations), **potentially** allowing users to keep access rights that were supposed to be completely removed.\n\n### Impact\n\nWhen an organization shares a project with another organization (a Project Grant), administrators can assign specific roles to users via a User Grant. If multiple roles are deleted from that project at the same time, a background process runs to strip those roles from the assigned users.\n\nBecause of an error in how ZITADEL loops through a user's list of roles during this specific cross-organization cleanup, deleting two or more roles at once **might** cause the system to accidentally skip over some of them.\n\n> **Scope Note:** This vulnerability only affects **User Grants on Granted Projects**. Direct project roles and global organization roles are not impacted.\n\nThe risk depends entirely on what the skipped role allowed the user to do—if it was an administrative or high-privilege role, the user **could potentially** retain those elevated permissions within that granted project even after the role was officially deleted.\n\n### Affected Versions\n\n* **4.x:** `4.0.0` through `4.15.3` (including RC versions)\n* **3.x:** `3.0.0` through `3.4.12` (including RC versions)\n\nNote: The 3.x release channel has reached End-of-Life (EOL) for security updates and will not receive a backported patch.\n\n### Patches & Resolution\n\nThis issue has been fully resolved in the latest releases.\n\nThe update fixes the role-removal logic to ensure no roles are skipped. Furthermore, **this patch includes an automatic database migration**. When you update, the system will automatically scan your database, find any user permissions on granted projects that **may** have been accidentally left behind by this bug, and correct them.\n\n- **4.x**: Upgrade to $\\ge$[4.16.0](https://github.com/zitadel/zitadel/releases/tag/v4.16.0)\n- **3.x**: Update to $\\ge$[4.16.0](https://github.com/zitadel/zitadel/releases/tag/v4.16.0) (or check out workarounds)\n\n### Workarounds\n\nThere are no configuration workarounds. Upgrading to a patched version is the recommended solution and only way to trigger the automatic cleanup migration. If you cannot upgrade immediately, we recommend manually reviewing user permissions specifically for your **Granted Projects** where multiple roles were recently deleted.\n\n### Questions\n\nIf you have any questions or comments about this advisory, please reach out to us at security@zitadel.com.\n\n### Credits\n\nThanks to [AyushParkara](https://github.com/AyushParkara)  for reporting this vulnerability.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/zitadel/zitadel"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.16.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/security/advisories/GHSA-v859-c572-qh5p"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/commit/9d60e83d6faa5e7e7a5339e031cdb26e0efe4d59"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/zitadel/zitadel"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/zitadel/zitadel/releases/tag/v4.16.0"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-193" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-09-14T21:31:37Z",
    "nvd_published_at" : null
  }
}