GHSA-mqcf-gqvg-rmhm

Suggest an improvement
Source
https://github.com/advisories/GHSA-mqcf-gqvg-rmhm
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-mqcf-gqvg-rmhm/GHSA-mqcf-gqvg-rmhm.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-mqcf-gqvg-rmhm
Aliases
Published
2026-05-21T20:28:43Z
Modified
2026-06-25T23:11:28Z
Severity
  • 2.3 (Low) CVSS_V4 - 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 CVSS Calculator
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.:
  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.

Database specific
{
    "cwe_ids":  [
        "CWE-285"
    ],
    "github_reviewed":  true,
    "github_reviewed_at":  "2026-05-21T20:28:43Z",
    "nvd_published_at":  "2026-06-10T22:16:59Z",
    "severity":  "LOW"
}
References

Affected packages

Go / github.com/authzed/spicedb

Package

Name
github.com/authzed/spicedb
View open source insights on deps.dev
Purl
pkg:golang/github.com/authzed/spicedb

Affected ranges

Type
SEMVER
Events
Introduced
1.15.0
Fixed
1.52.0

Database specific

source
"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/05/GHSA-mqcf-gqvg-rmhm/GHSA-mqcf-gqvg-rmhm.json"