Miggo Logo

CVE-2023-35930: SpiceDB's LookupResources may return partial results

3.7

CVSS Score
3.1

Basic Information

EPSS Score
0.3333%
Published
6/28/2023
Updated
11/12/2023
KEV Status
No
Technology
TechnologyGo

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/authzed/spicedbgo= 1.22.01.22.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability stemmed from improper context management in parallelized dispatch operations. The pull request #1397 specifically modified context handling in reachableresources.go and lookupresources.go to fix premature cancellation. The original implementation's context management via limit tracking caused early termination of resource lookup operations, leading to partial results. These functions directly implement the vulnerable pattern described in the advisory where cancellation errors were ignored during parallel processing.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t *ny us*r m*kin* * n***tiv* *ut*oriz*tion ***ision **s** on t** r*sults o* * LookupR*sour**s r*qu*st wit* *.**.* is *****t**. *or *x*mpl*, usin* `LookupR*sour**s` to *in* * list o* r*sour**s to *llow ****ss to ** ok*y: som* su*j**ts t**t s

Reasoning

T** vuln*r**ility st*mm** *rom improp*r *ont*xt m*n***m*nt in p*r*ll*liz** *isp*t** op*r*tions. T** pull r*qu*st #**** sp**i*i**lly mo*i*i** *ont*xt **n*lin* in `r******l*r*sour**s.*o` *n* `lookupr*sour**s.*o` to *ix pr*m*tur* **n**ll*tion. T** ori*i