{"id":"CVE-2025-23208","aliases":["CVE-2025-23208","GHSA-c9p4-xwr9-rfhx","GO-2025-3409"],"related":["CGA-6236-q4pw-xvw4"],"kind":"vulnerability","state":"published","title":"IdP group membership revocation ignored in zot","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Summary\nThe group data stored for users in the boltdb database (meta.db) is an append-list so group revocations/removals are ignored in the API.\n\n### Details\n[SetUserGroups](https://github.com/project-zot/zot/blob/5e30fec65c49e3139907e2819ccb39b2e3bd784e/pkg/meta/boltdb/boltdb.go#L1665) 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.\n\n### PoC\nLogin 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:\n\n![image](https://github.com/user-attachments/assets/3491cbd2-c7d9-414d-bc33-3efc35ed0582)\n\nNote this example also has duplicates due to group hierarchy changes that were left in the database.\n\n### Impact\nAny Zot configuration that relies on group-based authorization will not respect group remove/revocation by an IdP.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Zot IdP group membership revocation ignored in zotregistry.dev/zot.\n\nNOTE: The source advisory for this report contains additional versions that could not be automatically mapped to standard Go module versions.\n\n(If this is causing false-positive reports from vulnerability scanners, please suggest an edit to the report.)\n\nThe additional affected modules and versions are: zotregistry.dev/zot before v2.1.2.","format":"markdown","source":"go"},{"lang":"es","text":"Zot es un registro de imágenes OCI independiente del proveedor y listo para producción. Los datos de grupo almacenados para los usuarios en la base de datos boltdb (meta.db) son una lista de anexos, por lo que las revocaciones/eliminaciones de grupos se ignoran en la API. SetUserGroups se agrega al iniciar sesión, pero en lugar de reemplazar las membresías de grupo, se agregan. Esto puede deberse a algún conflicto con las definiciones de grupo en el archivo de configuración, pero no me resultaría obvio si fuera el caso. Cualquier configuración de Zot que dependa de la autorización basada en grupos no respetará la eliminación/revocación de grupos por parte de un IdP. Este problema se ha solucionado en la versión 2.1.2. Se recomienda a todos los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.","source":"nvd"}],"published":"2025-01-17T22:02:26.000Z","modified":"2026-09-10T03:50:56.281Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","score":7.3,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-269"],"affected":[{"ranges":[{"version":"< 2.1.2","status":"affected"}],"vendor":"project-zot","product":"zot","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"2.1.2"}],"ecosystem":"Go","package":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"zotregistry.dev/zot","purl":"pkg:golang/zotregistry.dev/zot","source":"go"},{"ranges":[{"status":"affected","fixed":"2.1.2"}],"vendor":"zotregistry","product":"zot","cpe":"cpe:2.3:a:zotregistry:zot:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/project-zot/zot/security/advisories/GHSA-c9p4-xwr9-rfhx","tags":["advisory","exploit","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/project-zot/zot/commit/002ac62d8a15bf0cba010b3ba7bde86f9837b613","tags":["patch","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/project-zot/zot/blob/5e30fec65c49e3139907e2819ccb39b2e3bd784e/pkg/meta/boltdb/boltdb.go#L1665","tags":["product","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23208","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/project-zot/zot","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2025-01-22T14:26:14.576Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-23208","url":"https://www.cve.org/CVERecord?id=CVE-2025-23208","licence":"CVE Terms of Use","modified":"2025-01-22T14:27:12.141Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c9p4-xwr9-rfhx","url":"https://github.com/advisories/GHSA-c9p4-xwr9-rfhx","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:56.281Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3409","url":"https://pkg.go.dev/vuln/GO-2025-3409","licence":"CC-BY-4.0","modified":"2026-02-04T02:51:15.917Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-23208","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-23208","licence":"Public domain","modified":"2026-06-17T08:52:39.000Z"}],"updatedAt":"2026-11-25T22:58:53.418Z","epss":{"score":0.0042,"percentile":0.38301,"date":"2026-12-01T12:00:22.000Z"}}