Advisory

GHSA-3c32-4hq9-6wgj

Also known as: CVE-2024-48909, GO-2024-3200

Summary

SpiceDB calls to LookupResources using LookupResources2 with caveats may return context is missing when it is not

Details

Impact

Clients that have enabled LookupResources2 and have caveats in the evaluation path for their requests can return a permissionship of CONDITIONAL with context marked as missing, even then the context was supplied.

LookupResources2 is the new default in SpiceDB 1.37.0 and has been opt-in since SpiceDB 1.35.0

Patches
The bug will be released as part of SpiceDB 1.37.1

Workarounds
Disable LookupResources2 via the --enable-experimental-lookup-resources flag by setting it to false

--enable-experimental-lookup-resources=false

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-10-14 21:04 UTC
Modified
2024-10-15 16:11 UTC

Affected packages and fixes

github.com/authzed/spicedb

Go · All systems

Affected

  • introduced 1.35.0, fixed 1.37.1 (semver)

Fixed versions

1.37.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences