| { | 
 |   "schema_version": "1.4.0", | 
 |   "id": "GHSA-xx9w-464f-7h6f", | 
 |   "modified": "2023-04-03T18:56:08Z", | 
 |   "published": "2022-09-16T20:27:13Z", | 
 |   "aliases": [ | 
 |     "CVE-2022-31667" | 
 |   ], | 
 |   "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.\n", | 
 |   "affected": [ | 
 |     { | 
 |       "package": { | 
 |         "ecosystem": "Go", | 
 |         "name": "github.com/goharbor/harbor" | 
 |       }, | 
 |       "ranges": [ | 
 |         { | 
 |           "type": "ECOSYSTEM", | 
 |           "events": [ | 
 |             { | 
 |               "introduced": "1.0.0" | 
 |             }, | 
 |             { | 
 |               "fixed": "1.10.13" | 
 |             } | 
 |           ] | 
 |         } | 
 |       ], | 
 |       "database_specific": { | 
 |         "last_known_affected_version_range": "\u003c= 1.10.12" | 
 |       } | 
 |     }, | 
 |     { | 
 |       "package": { | 
 |         "ecosystem": "Go", | 
 |         "name": "github.com/goharbor/harbor" | 
 |       }, | 
 |       "ranges": [ | 
 |         { | 
 |           "type": "ECOSYSTEM", | 
 |           "events": [ | 
 |             { | 
 |               "introduced": "2.0.0" | 
 |             }, | 
 |             { | 
 |               "fixed": "2.4.3" | 
 |             } | 
 |           ] | 
 |         } | 
 |       ], | 
 |       "database_specific": { | 
 |         "last_known_affected_version_range": "\u003c= 2.4.2" | 
 |       } | 
 |     }, | 
 |     { | 
 |       "package": { | 
 |         "ecosystem": "Go", | 
 |         "name": "github.com/goharbor/harbor" | 
 |       }, | 
 |       "ranges": [ | 
 |         { | 
 |           "type": "ECOSYSTEM", | 
 |           "events": [ | 
 |             { | 
 |               "introduced": "2.5.0" | 
 |             }, | 
 |             { | 
 |               "fixed": "2.5.2" | 
 |             } | 
 |           ] | 
 |         } | 
 |       ], | 
 |       "database_specific": { | 
 |         "last_known_affected_version_range": "\u003c= 2.5.1" | 
 |       } | 
 |     } | 
 |   ], | 
 |   "severity": [ | 
 |     { | 
 |       "type": "CVSS_V3", | 
 |       "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L" | 
 |     } | 
 |   ], | 
 |   "references": [ | 
 |     { | 
 |       "type": "WEB", | 
 |       "url": "https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f" | 
 |     }, | 
 |     { | 
 |       "type": "PACKAGE", | 
 |       "url": "https://github.com/goharbor/harbor" | 
 |     } | 
 |   ], | 
 |   "database_specific": { | 
 |     "cwe_ids": [], | 
 |     "github_reviewed": true, | 
 |     "github_reviewed_at": "2022-09-16T20:27:13Z", | 
 |     "nvd_published_at": null, | 
 |     "severity": "MODERATE" | 
 |   } | 
 | } |