{"id":"CVE-2022-31667","aliases":["CVE-2022-31667","GHSA-xx9w-464f-7h6f","BIT-HARBOR-2022-31667"],"related":[],"kind":"vulnerability","state":"published","title":"Harbor fails to validate the user permissions when updating a robot account","summary":"Harbor fails to validate the user permissions when updating a robot account that belongs to a project that the authenticated user doesn’t have access to. \n\nBy sending a request that attempts to update a robot account, and specifying a robot account id and robot account name that belongs to a different project that the user doesn’t have access to, it was possible to revoke the robot account permissions.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Harbor fails to validate the user permissions when updating a robot account that belongs to a project that the authenticated user doesn’t have access to. \n\nBy sending a request that attempts to update a robot account, and specifying a robot account id and robot account name that belongs to a different project that the user doesn’t have access to, it was possible to revoke the robot account permissions.","source":"cvelist"},{"lang":"en","text":"### Impact\nHarbor fails to validate the user permissions when updating a robot account that\nbelongs to a project that the authenticated user doesn’t have access to. API call:\n\nPUT /robots/{robot_id}\n\nBy sending a request that attempts to update a robot account, and specifying a robot\naccount id and robot account name that belongs to a different project that the user\ndoesn’t have access to, it was possible to revoke the robot account permissions.\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 una cuenta de robot que pertenece a un proyecto al que el usuario autenticado no tiene acceso. Al enviar una solicitud que intenta actualizar una cuenta de robot y especificar un ID y un nombre de cuenta de robot que pertenecen a un proyecto diferente al que el usuario no tiene acceso, fue posible revocar los permisos de la cuenta de robot.","source":"nvd"}],"published":"2022-09-16T20:27:13.000Z","modified":"2026-09-08T08:47:52.188Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","score":6.4,"rating":"MEDIUM"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","score":6.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","score":6.4,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","score":6.4,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"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":"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":"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-xx9w-464f-7h6f","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667","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:10:48.659Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31667","url":"https://www.cve.org/CVERecord?id=CVE-2022-31667","licence":"CVE Terms of Use","modified":"2024-11-14T14:11:06.110Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xx9w-464f-7h6f","url":"https://github.com/advisories/GHSA-xx9w-464f-7h6f","licence":"CC-BY-4.0","modified":"2024-11-20T07:57:10.971Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31667","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667","licence":"Public domain","modified":"2026-06-17T04:46:00.557Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-HARBOR-2022-31667","url":"https://osv.dev/vulnerability/BIT-HARBOR-2022-31667","licence":"Apache-2.0","modified":"2026-09-08T08:47:52.188Z"}],"updatedAt":"2026-11-25T22:58:20.048Z","epss":{"score":0.00521,"percentile":0.45697,"date":"2026-12-01T12:00:22.000Z"}}