{"id":"CVE-2022-31667","aliases":["BIT-harbor-2022-31667","GHSA-xx9w-464f-7h6f"],"summary":"Harbor fails to validate the user permissions when updating a robot account","published_at":"2022-09-16T20:27:13Z","modified_at":"2026-09-08T08:47:52.18819Z","products":[{"slug":"harbor","name":"Harbor","category":"gitops-cicd"}],"rating":{"severity":"medium","score":6.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.005210000090301037,"percentile":0.4498400092124939,"date":"2026-11-19T00:00:00Z"},"priority":7.4,"record_count":4,"vendors":["GitHub","Bitnami"],"details":"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.","affected_stack":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"}]}],"fixed":["1.10.13"],"provider":"osv","source":"GHSA-xx9w-464f-7h6f","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]}],"fixed":["2.4.3"],"provider":"osv","source":"GHSA-xx9w-464f-7h6f","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.5.2"],"provider":"osv","source":"GHSA-xx9w-464f-7h6f","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"},{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"osv","source":"BIT-harbor-2022-31667","relation":"self"},{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"nvd","source":"CVE-2022-31667","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-31667","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-31667","license":"CC-BY-4.0","published_at":"2024-11-14T11:50:48.289Z","modified_at":"2024-11-14T14:11:06.11Z","summary":"Harbor fails to validate the user permissions when updating a robot account","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","source":"CVE-2022-31667"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f"}]},{"provider":"nvd","source_id":"CVE-2022-31667","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667","severity":[],"affected":[{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"nvd","source":"CVE-2022-31667","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-harbor-2022-31667","relation":"self","url":"https://osv.dev/vulnerability/BIT-harbor-2022-31667","license":"Apache-2.0","published_at":"2024-11-20T07:11:07.078Z","modified_at":"2026-09-08T08:47:52.18819Z","summary":"Harbor fails to validate the user permissions when updating a robot account","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","source":"BIT-harbor-2022-31667"}],"affected":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"},{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"osv","source":"BIT-harbor-2022-31667","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667"}]},{"provider":"osv","source_id":"GHSA-xx9w-464f-7h6f","relation":"self","url":"https://osv.dev/vulnerability/GHSA-xx9w-464f-7h6f","license":"CC-BY-4.0","published_at":"2022-09-16T20:27:13Z","modified_at":"2024-11-20T07:57:10.971119Z","summary":"Harbor fails to validate the user permissions when updating a robot account","details":"### 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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L","source":"GHSA-xx9w-464f-7h6f"}],"affected":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"}]}],"fixed":["1.10.13"],"provider":"osv","source":"GHSA-xx9w-464f-7h6f","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]}],"fixed":["2.4.3"],"provider":"osv","source":"GHSA-xx9w-464f-7h6f","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.5.2"],"provider":"osv","source":"GHSA-xx9w-464f-7h6f","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}]}],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-31667","url":"https://www.cve.org/CVERecord?id=CVE-2022-31667","license":"CC-BY-4.0","modified_at":"2024-11-14T14:11:06.11Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-31667","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31667","relation":"self"},{"provider":"osv","source_id":"BIT-harbor-2022-31667","url":"https://osv.dev/vulnerability/BIT-harbor-2022-31667","license":"Apache-2.0","modified_at":"2026-09-08T08:47:52.18819Z","relation":"self"},{"provider":"osv","source_id":"GHSA-xx9w-464f-7h6f","url":"https://osv.dev/vulnerability/GHSA-xx9w-464f-7h6f","license":"CC-BY-4.0","modified_at":"2024-11-20T07:57:10.971119Z","relation":"self"}]}
