GitHub Advisoryadvisory · Go

GHSA-c9p4-xwr9-rfhx Zot IdP group membership revocation ignored

HIGH Published 2025-01-17 Modified 2025-01-21 Official page ↗
Aliases
CVE-2025-23208
Ecosystem
Go
Packages
zotregistry.dev/zot
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L
Weaknesses
CWE-269
Reviewed
2025-01-17

Affected packages

• Go zotregistry.dev/zot: < 2.1.2 → fixed in 2.1.2

Description

Summary The group data stored for users in the boltdb database (meta.db) is an append-list so group revocations/removals are ignored in the API. Details SetUserGroups is alled on login, but instead of replacing the group memberships, they are appended. This may be due to some conflict with the group definitions in the config file, but that wasn't obvious to me if it were the case. PoC Login with group claims, logout, remove the user from a group from at IdP and log in again, the API still grants access and the new list of groups is appended creating meaningless duplicate entries and no longer mathing the expected groups from the IdP. The behavior can be verified by seeing the API or UI still presenting images it should not or by viewing the data directly: `bbolt get meta.db UserData `, eg: Note this example also has duplicates due to group hierarchy changes that were left in the database. Impact Any Zot configuration that relies on group-based authorization will not respect group remove/revocation by an IdP.

Related

Alias · CVE (1)

  • CVE-2025-23208 zot is a production-ready vendor-neutral OCI image registry. vulnerability

Weakness · CWE (1)

  • CWE-269 Improper Privilege Management weakness

References