Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/authzed/spicedb
  4. ›
  5. CVE-2025-49011

CVE-2025-49011: SpiceDB checks involving relations with caveats can result in no permission when permission is expected

June 6, 2025 (updated June 10, 2025)

On schemas involving arrows with caveats on the arrow’ed relation, when the path to resolve a CheckPermission request involves the evaluation of multiple caveated branches, requests may return a negative response when a positive response is expected.

For example, given this schema:

definition user {}

definition office {
relation parent: office
relation manager: user
permission read = manager + parent->read
}

definition group {
relation parent: office
permission read = parent->read
}

definition document {
relation owner: group with equals
permission read = owner->read
}

caveat equals(actual string, required string) {
actual == required
}

and these relationships:

office:headoffice#manager@user:maria
office:branch1#parent@office:headoffice 
group:admins#parent@office:branch1
group:managers#parent@office:headoffice 
document:budget#owner@group:admins[equals:{"required":"admin"}] 
document:budget#owner@group:managers[equals:{"required":"manager"}]

Permission for 'document:budget#read@user:maria with {"actual" : "admin"}' is returned as NO_PERMISSION when HAS_PERMISSION is the correct answer.

References

  • github.com/advisories/GHSA-cwwm-hr97-qfxm
  • github.com/authzed/spicedb
  • github.com/authzed/spicedb/commit/fe8dd9f491f6975b3408c401e413a530eb181a67
  • github.com/authzed/spicedb/releases/tag/v1.44.2
  • github.com/authzed/spicedb/security/advisories/GHSA-cwwm-hr97-qfxm
  • nvd.nist.gov/vuln/detail/CVE-2025-49011

Code Behaviors & Features

Detect and mitigate CVE-2025-49011 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.44.2

Fixed versions

  • 1.44.2

Solution

Upgrade to version 1.44.2 or above.

Impact 3.7 LOW

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-358: Improperly Implemented Security Check for Standard

Source file

go/github.com/authzed/spicedb/CVE-2025-49011.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:19:37 +0000.