CVE-2024-32001: SpiceDB LookupSubjects May Return Partial Results Vulnerability
LOWCVE-2024-32001 is a LOW (CVSS 2.2) lookupsubjects may return partial results vulnerability (CWE-755: Improper Handling of Exceptional Conditions) affecting SpiceDB libraries in the Go ecosystem. The issue involves lookupsubjects may return partial results if a specific kind of relation is used. Remediation is available by upgrading affected packages to version 1.30.1.
CVE-2024-32001 at a Glance
Security Impact
CVSS: 2.2
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2024-32001
To remediate this vulnerability, upgrade all affected SpiceDB dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/authzed/spicedb to 1.30.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/authzed/spicedb
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-32001, inspect your project dependencies for SpiceDB:
inspect dependencies for github.com/authzed/spicedb
Analyze the terminal output to locate any version of SpiceDB in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.30.1), 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-755: Improper Handling of Exceptional Conditions, where the product does not handle or incorrectly handles an exceptional condition. In SpiceDB, 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
CVE-2024-32001 Affected SpiceDB Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/authzed/spicedb
|
Go |
< 1.30.1
|
1.30.1
|
References
Frequently Asked Questions
What is CVE-2024-32001?
Which SpiceDB versions are affected?
What version fixes CVE-2024-32001?
Is github.com/authzed/spicedb affected?
What is the CVSS score of CVE-2024-32001?
What CWE is associated with CVE-2024-32001?
How can I check Go dependencies for CVE-2024-32001?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-j85q-46hg-36p2",
"modified" : "2024-04-11T14:33:36Z",
"published" : "2024-04-10T22:25:17Z",
"aliases" : [ "CVE-2024-32001" ],
"summary" : "SpiceDB: LookupSubjects may return partial results if a specific kind of relation is used",
"details" : "### Background\n\nUse of a relation of the form: `relation folder: folder | folder#parent` with an arrow such as `folder->view` can cause LookupSubjects to only return the subjects found under subjects for *either* `folder` or `folder#parent`.\n\nThis bug *only* manifests if the *same* subject type is used multiple types in a relation, relationships exist for both subject types *and* an arrow is used over the relation.\n\n### Impact\n\nAny user making a negative authorization decision based on the results of a LookupSubjects request with version before v1.30.1 is affected.\n\n### Workarounds\nAvoid using LookupSubjects for negative authorization decisions and/or avoid using the broken schema.\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/authzed/spicedb"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.30.1"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/authzed/spicedb/security/advisories/GHSA-j85q-46hg-36p2"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-32001"
}, {
"type" : "WEB",
"url" : "https://github.com/authzed/spicedb/commit/a244ed1edfaf2382711dccdb699971ec97190c7b"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/authzed/spicedb"
}, {
"type" : "WEB",
"url" : "https://github.com/authzed/spicedb/releases/tag/v1.30.1"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-755" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-10T22:25:17Z",
"nvd_published_at" : "2024-04-10T23:15:07Z"
}
}