GHSA-MQCF-GQVG-RMHM

Vulnerability from github – Published: 2026-05-21 20:28 – Updated: 2026-05-21 20:28
VLAI
Summary
SpiceDB: Caveat structures with nested lists can result in improper cache reuse
Details

Impact

Users are impacted if:

  • They have a caveat structure with a nested list, e.g.:

zed caveat shape(x list<any>) { x == [["a"], "b"] } - Their system exercises that caveat with either CheckBulkPermission or else LookupResources running with the --experimental-lookup-resources-version flag set to lr3, implying they are using the experimental version 3 of LookupResources - An attacker can cause the system to craft a request to SpiceDB where either: 1. It's a CheckBulk request where there are two check items that are identical except for their combined caveat context, and one of the caveat contexts evaluates positively and the other evaluates negatively 2. It's a LookupResources request where two resources have the same evaluation contents except for their caveat context, and one would evaluate positively and the other would evaluate negatively

If all of the above are true, it would be possible for SpiceDB to erroneously return that a user has access to a resource that they do not have access to.

Patches

This problem was addressed in https://github.com/authzed/spicedb/pull/3065 and released in version v1.52.0.

Workarounds

If using v3 of LookupResources, turn the flag off.

If possible, refactor the caveat declaration structure so that it does not operate on a list of lists, but rather any other composite structure.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Go",
        "name": "github.com/authzed/spicedb"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "1.15.0"
            },
            {
              "fixed": "1.52.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-46668"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-285"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-05-21T20:28:43Z",
    "nvd_published_at": null,
    "severity": "LOW"
  },
  "details": "### Impact\nUsers are impacted if:\n\n- They have a caveat structure with a nested list, e.g.:\n  \n```zed\n  caveat shape(x list\u003cany\u003e) {\n    x == [[\"a\"], \"b\"]\n  }\n  ```\n- Their system exercises that caveat with either [CheckBulkPermission](https://buf.build/authzed/api/docs/main%3Aauthzed.api.v1#authzed.api.v1.PermissionsService.CheckBulkPermissions) or else [LookupResources](https://buf.build/authzed/api/docs/main%3Aauthzed.api.v1#authzed.api.v1.PermissionsService.LookupResources) running with the `--experimental-lookup-resources-version` flag set to `lr3`, implying they are using the experimental version 3 of `LookupResources`\n-  An attacker can cause the system to craft a request to SpiceDB where either:\n    1. It\u0027s a `CheckBulk` request where there are two check items that are identical except for their combined caveat context, and one of the caveat contexts evaluates positively and the other evaluates negatively\n    2. It\u0027s a `LookupResources` request where two resources have the same evaluation contents except for their caveat context, and one would evaluate positively and the other would evaluate negatively\n\nIf all of the above are true, it would be possible for SpiceDB to erroneously return that a user has access to a resource that they do not have access to.\n\n### Patches\nThis problem was addressed in https://github.com/authzed/spicedb/pull/3065 and released in version v1.52.0.\n\n### Workarounds\nIf using v3 of `LookupResources`, turn the flag off.\n\nIf possible, refactor the `caveat` declaration structure so that it does not operate on a list of lists, but rather any other composite structure.",
  "id": "GHSA-mqcf-gqvg-rmhm",
  "modified": "2026-05-21T20:28:43Z",
  "published": "2026-05-21T20:28:43Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/authzed/spicedb/security/advisories/GHSA-mqcf-gqvg-rmhm"
    },
    {
      "type": "WEB",
      "url": "https://github.com/authzed/spicedb/pull/3065"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/authzed/spicedb"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "SpiceDB: Caveat structures with nested lists can result in improper cache reuse"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…