IdP group membership revocation ignored in zot
Description
zot is a production-ready vendor-neutral OCI image registry. 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. 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. Any Zot configuration that relies on group-based authorization will not respect group remove/revocation by an IdP. This issue has been addressed in version 2.1.2. All users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
zotregistry.dev/zotGo | < 2.1.2 | 2.1.2 |
Affected products
1- Range: < 2.1.2
Patches
1002ac62d8a15Merge commit from fork
2 files changed · +2 −2
pkg/meta/boltdb/boltdb.go+1 −1 modified@@ -1662,7 +1662,7 @@ func (bdw *BoltDB) SetUserGroups(ctx context.Context, groups []string) error { return err } - userData.Groups = append(userData.Groups, groups...) + userData.Groups = groups err = bdw.setUserData(userid, tx, userData)
pkg/meta/dynamodb/dynamodb.go+1 −1 modified@@ -1647,7 +1647,7 @@ func (dwr DynamoDB) SetUserGroups(ctx context.Context, groups []string) error { return err } - userData.Groups = append(userData.Groups, groups...) + userData.Groups = groups return dwr.SetUserData(ctx, userData) }
Vulnerability mechanics
Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.
References
5- github.com/advisories/GHSA-c9p4-xwr9-rfhxghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2025-23208ghsaADVISORY
- github.com/project-zot/zot/blob/5e30fec65c49e3139907e2819ccb39b2e3bd784e/pkg/meta/boltdb/boltdb.goghsax_refsource_MISCWEB
- github.com/project-zot/zot/commit/002ac62d8a15bf0cba010b3ba7bde86f9837b613ghsax_refsource_MISCWEB
- github.com/project-zot/zot/security/advisories/GHSA-c9p4-xwr9-rfhxghsax_refsource_CONFIRMWEB
News mentions
0No linked articles in our index yet.