{"id":"CVE-2022-31670","aliases":["CVE-2022-31670","GHSA-3637-v6vq-xqqw","BIT-HARBOR-2022-31670"],"related":[],"kind":"vulnerability","state":"published","title":"Harbor fails to validate the user permissions when updating tag retention policies","summary":"Harbor fails to validate the user permissions when updating tag retention policies. \n\nBy sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Harbor fails to validate the user permissions when updating tag retention policies. \n\nBy sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.","source":"cvelist"},{"lang":"en","text":"### Impact\n Harbor fails to validate the user permissions when updating tag retention policies. API call:\n\n  PUT /retentions/{id}\n\nBy sending a request to update a tag retention policy with an id that belongs to a project\nthat the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.\n\n### Patches\nThis and similar issues are fixed in Harbor v2.5.2 and later. Please upgrade as soon as possible.\n\n### Workarounds\nThere are no workarounds available.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the Harbor GitHub repository](https://github.com/goharbor/harbor)\n\n### Credits\nThanks to [Gal Goldstein](https://www.linkedin.com/in/gal-goldshtein/) and [Daniel Abeles](https://www.linkedin.com/in/daniel-abeles/) from [Oxeye Security](https://www.oxeye.io/) for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Harbor no puede validar los permisos de usuario al actualizar las políticas de retención de etiquetas. Al enviar una solicitud para actualizar una política de retención de etiquetas con un ID que pertenece a un proyecto al que el usuario autenticado actualmente no tiene acceso, el atacante podría modificar las políticas de retención de etiquetas configuradas en otros proyectos.","source":"nvd"}],"published":"2022-09-16T19:29:31.000Z","modified":"2026-09-08T08:47:51.711Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"version":"Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1","status":"affected"}],"product":"Harbor","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.10.13"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.4.3"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.5.0","status":"affected","fixed":"2.5.2"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"1.0.0","fixed":"1.10.13"},{"status":"affected","introduced":"2.0.0","fixed":"2.4.3"},{"status":"affected","introduced":"2.5.0","fixed":"2.5.2"}],"vendor":"linuxfoundation","product":"harbor","cpe":"cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.10.13"},{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.4.3"},{"type":"semver","introduced":"2.5.0","status":"affected","fixed":"2.5.2"}],"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","source":"bitnami"}],"references":[{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3637-v6vq-xqqw","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/goharbor/harbor","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-14T14:09:30.950Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31670","url":"https://www.cve.org/CVERecord?id=CVE-2022-31670","licence":"CVE Terms of Use","modified":"2024-11-14T14:09:48.571Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-3637-v6vq-xqqw","url":"https://github.com/advisories/GHSA-3637-v6vq-xqqw","licence":"CC-BY-4.0","modified":"2024-11-20T07:57:06.332Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31670","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670","licence":"Public domain","modified":"2026-06-17T04:46:01.230Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-HARBOR-2022-31670","url":"https://osv.dev/vulnerability/BIT-HARBOR-2022-31670","licence":"Apache-2.0","modified":"2026-09-08T08:47:51.711Z"}],"updatedAt":"2026-11-25T22:58:20.049Z","epss":{"score":0.00546,"percentile":0.47178,"date":"2026-12-01T12:00:22.000Z"}}