CVE-2024-32001: SpiceDB LookupSubjects May Return Partial Results Vulnerability

LOW
Advisory Identifier: GHSA-j85q-46hg-36p2
CVSS 2.2
CWE-755
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-32001
GHSA Identifier GHSA-j85q-46hg-36p2
Severity LOW
CVSS v3.1 Base Score 2.2
CWE Classification CWE-755: Improper Handling of Exceptional Conditions
Affected Product SpiceDB
Package Ecosystem Go
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity Low (I:L)
Availability None (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.

github.com/authzed/spicedb fixed: 1.30.1
Upgrade github.com/authzed/spicedb to 1.30.1
Verify Direct and Transitive Dependencies

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

### Background Use 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`. This 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. ### Impact Any user making a negative authorization decision based on the results of a LookupSubjects request with version before v1.30.1 is affected. ### Workarounds Avoid using LookupSubjects for negative authorization decisions and/or avoid using the broken schema.

CVE-2024-32001 Affected SpiceDB Versions

1 component(s)
Fixed Versions:
1.30.1
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?
CVE-2024-32001 is a security vulnerability in SpiceDB involving LookupSubjects may return partial results if a specific kind of relation is used under CWE-755: Improper Handling of Exceptional Conditions.
Which SpiceDB versions are affected?
Affected versions include releases prior to 1.30.1 across affected packages: github.com/authzed/spicedb.
What version fixes CVE-2024-32001?
Upgrading to 1.30.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/authzed/spicedb affected?
Yes, github.com/authzed/spicedb is affected in releases prior to 1.30.1. Upgrade your dependency to 1.30.1 or later.
What is the CVSS score of CVE-2024-32001?
CVE-2024-32001 has a CVSS v3.1 base score of 2.2 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:N/I:L/A:N.
What CWE is associated with CVE-2024-32001?
CVE-2024-32001 is classified under CWE-755: Improper Handling of Exceptional Conditions (The product does not handle or incorrectly handles an exceptional condition.).
How can I check Go dependencies for CVE-2024-32001?
Run the dependency tree command: 'inspect dependencies for github.com/authzed/spicedb'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}