DHI-k3js-lopd-pmbp-x2ur

Source
https://scout.docker.com/v/DHI-k3js-lopd-pmbp-x2ur
Import Source
https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json
JSON Data
https://api.osv.dev/v1/vulns/DHI-k3js-lopd-pmbp-x2ur
Upstream
  • GHSA-w278-32qg-48q5
Published
2026-11-23T20:59:02Z
Modified
2026-11-24T21:46:09Z
Summary
### Summary
Details

Summary

An error in code that optimizes the behavior of SpiceDB checks resulted in expired relationships being included in the computation of permissionship under specific circumstances. When a relation was defined as the union (|) of a type with expiration (e.g. foo with expiration) and that same type with a nonterminal subject relation (e.g. foo#bar), a check over that relation would discard the expiration. This could result in incorrect permission checks if the expiration of one of those relationships had passed, up to the time when that relationship is garbage collected.

Details

One optimization in SpiceDB is that if a check of a particular relationship doesn't require considering the expiration of the relationship, it doesn't include expiration in the datastore query. SpiceDB does a similar optimization if it determines that a caveat isn't involved either.

In the check path, this is computed by asking whether the count of direct subjects and wildcards without expiration is equal to the total count of direct subjects and wildcards. However, the count logic was incorrect for relations whose subject relation matched the type of the relation itself.

For the purposes of this discussion, asking whether the "direct subject" of a relation matches the subject of a check is asking whether the subject of the check matches the type defined in the relation. If you're asking whether a user can view a document in the check, you're asking whether the type referenced in the relation is exactly user.

If we're considering the schema below together with this code block, both user with expiration and user#manager match the condition defined on line 341, but user#manager should not be counted as a "direct subject" for this logic. This code was looking at user with expiration and saying "that is a direct subject with an expiration" and it was looking at user#manager and saying "that is a direct subject without expiration." Instead, it should have been looking at user#manager and saying "this is not a direct subject."

This misinterpretation led to the expiration check getting skipped here, and an expired relationship being returned for the check when it should not have been returned.

Exposure Window

Postgres and MySQL both run with a 3m GC interval by default. Spanner and CockroachDB both use row-level TTLs which run a cleanup job once daily by default. Outside of your datastore's window you are not affected.

Proof of concept

This schema:

use expiration

definition user {
relation manager: user
}

definition document {
relation viewer: user with expiration | user#manager
permission view = viewer
}

And this relationship:

document:somedoc#viewer@user:alice[expiration:2020-01-01T00:00:00Z]

Will result in this check:

document:somedoc#view@user:alice

returning HAS_PERMISSION incorrectly.

Impact

If all of these apply:

  • You have a relation declaration that uses with expiration
  • It is unioned (| operator) with the same type as the with expiration type
  • That unioned type references a different relation or permission using #

Then a check for a permission that references an expired relationship can result in the inclusion of that expired relationship, resulting in an incorrect permission evaluation. See the Proof of Concept for a concrete example.

Reported by Sathwik Yadlapati.

References

Affected packages

Docker Hardened Images:Alpine:3.23
spicedb-dev

Package

Name
spicedb-dev
Purl
pkg:apk/dhi/spicedb-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb-fips-dev

Package

Name
spicedb-fips-dev
Purl
pkg:apk/dhi/spicedb-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb-fips

Package

Name
spicedb-fips
Purl
pkg:apk/dhi/spicedb-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb

Package

Name
spicedb
Purl
pkg:apk/dhi/spicedb

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
Docker Hardened Images:Alpine:3.24
spicedb-dev

Package

Name
spicedb-dev
Purl
pkg:apk/dhi/spicedb-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb-fips-dev

Package

Name
spicedb-fips-dev
Purl
pkg:apk/dhi/spicedb-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb-fips

Package

Name
spicedb-fips
Purl
pkg:apk/dhi/spicedb-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb

Package

Name
spicedb
Purl
pkg:apk/dhi/spicedb

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-r0

Affected versions

1.*
1.54.0-r0
1.54.0-r1
1.56.0-r0
1.56.0-r1
1.56.0-r2
1.56.0-r3
1.56.0-r4
1.56.0-r5
1.56.1-r0
1.56.1-r1
1.56.1-r2
1.56.1-r3
1.56.2-r0
1.56.2-r1
1.56.2-r2
1.56.2-r3
1.57.0-r0
1.57.0-r1
1.57.0-r2
1.57.1-r0
1.57.1-r1
1.57.1-r2
1.57.1-r3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
Docker Hardened Images:Debian:13
spicedb-dev

Package

Name
spicedb-dev
Purl
pkg:deb/dhi/spicedb-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-0

Affected versions

1.*
1.54.0-0
1.54.0-1
1.56.0-0
1.56.0-1
1.56.0-2
1.56.0-3
1.56.0-4
1.56.0-5
1.56.1-0
1.56.1-1
1.56.1-2
1.56.1-3
1.56.2-0
1.56.2-1
1.56.2-2
1.56.2-3
1.57.0-0
1.57.0-1
1.57.0-2
1.57.1-0
1.57.1-1
1.57.1-2
1.57.1-3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb-fips-dev

Package

Name
spicedb-fips-dev
Purl
pkg:deb/dhi/spicedb-fips-dev

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-0

Affected versions

1.*
1.54.0-0
1.54.0-1
1.56.0-0
1.56.0-1
1.56.0-2
1.56.0-3
1.56.0-4
1.56.0-5
1.56.1-0
1.56.1-1
1.56.1-2
1.56.1-3
1.56.2-0
1.56.2-1
1.56.2-2
1.56.2-3
1.57.0-0
1.57.0-1
1.57.0-2
1.57.1-0
1.57.1-1
1.57.1-2
1.57.1-3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb-fips

Package

Name
spicedb-fips
Purl
pkg:deb/dhi/spicedb-fips

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-0

Affected versions

1.*
1.54.0-0
1.54.0-1
1.56.0-0
1.56.0-1
1.56.0-2
1.56.0-3
1.56.0-4
1.56.0-5
1.56.1-0
1.56.1-1
1.56.1-2
1.56.1-3
1.56.2-0
1.56.2-1
1.56.2-2
1.56.2-3
1.57.0-0
1.57.0-1
1.57.0-2
1.57.1-0
1.57.1-1
1.57.1-2
1.57.1-3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"
spicedb

Package

Name
spicedb
Purl
pkg:deb/dhi/spicedb

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.54.0-0

Affected versions

1.*
1.54.0-0
1.54.0-1
1.56.0-0
1.56.0-1
1.56.0-2
1.56.0-3
1.56.0-4
1.56.0-5
1.56.1-0
1.56.1-1
1.56.1-2
1.56.1-3
1.56.2-0
1.56.2-1
1.56.2-2
1.56.2-3
1.57.0-0
1.57.0-1
1.57.0-2
1.57.1-0
1.57.1-1
1.57.1-2
1.57.1-3

Database specific

owner_kind
"HSP"
source
"https://github.com/docker-hardened-images/advisories/blob/main/dhi/osv/2026/DHI-k3js-lopd-pmbp-x2ur.json"