Advisory

GHSA-c9p4-xwr9-rfhx

Also known as: CVE-2025-23208, GO-2025-3409

Summary

Zot IdP group membership revocation ignored

Details

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 <user>, eg:

image

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2025-01-17 22:02 UTC
Modified
2026-09-10 03:50 UTC

Affected packages and fixes

zotregistry.dev/zot

Go · All systems

Affected

  • introduced 0, fixed 2.1.2 (semver)

Fixed versions

2.1.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences