Vulnerability · Published Nov 14, 2024 · Assigned by vmware
CVE-2022-31667Harbor fails to validate the user permissions when updating a robot account
Medium 6.4
In plain English
A medium-severity security flaw in Harbor. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 44% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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. By 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/goharbor/harbor | 1.10.13 | GHSA-xx9w-464f-7h6f |
| Go | github.com/goharbor/harbor | 2.4.3 | GHSA-xx9w-464f-7h6f |
| Go | github.com/goharbor/harbor | 2.5.2 | GHSA-xx9w-464f-7h6f |
Affected products (as reported)
Weakness: CWE-285 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L