Home
» GitHub Advisories
» GHSA-xx9w-464f-7h6f
Description
Impact
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. API call:
PUT /robots/{robot_id}
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.
Patches
This and similar issues are fixed in Harbor v2.5.2 and later. Please upgrade as soon as possible.
Workarounds
There are no workarounds available.
For more information
If you have any questions or comments about this advisory:
* Open an issue in the Harbor GitHub repository
Credits
Thanks to Gal Goldstein and Daniel Abeles from Oxeye Security for reporting this issue.
Basic information
Type
reviewed
Severity
medium
Advisory on GitHub
Open advisory ↗
Repository advisory
Open repository advisory ↗
Source code
Browse source ↗
Published (advisory)
2022-09-16 20:27:13 UTC
Updated
2024-11-19 16:25:22 UTC
GitHub reviewed
2022-09-16 20:27:13 UTC
NVD published
2024-11-14
EPSS Score
Score
Percentile
0.08%
23.41%
CVSS Scores
Base score
Version
Severity
Vector
6.4
3.1
—
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:C)
Breaking this can reach past the original component and bite other resources—bigger blast radius.
Confidentiality (C:N)
Doesn’t really leak secrets in a meaningful way.
Integrity (I:L)
Attackers could change some data, but it’s limited—not everything goes.
Availability (A:L)
Might cause slowdowns, glitches, or partial disruption—not a full brick.
CWEs
CWE id
Name
CWE-285
Improper Authorization
CWE-863
Incorrect Authorization
Affected packages (3)
Vulnerable version ranges and first patched releases as published by GitHub.
Ecosystem
Package
Vulnerable range
First patched
Vulnerable functions
go
github.com/goharbor/harbor
>= 1.0.0, <= 1.10.12
1.10.13
—
go
github.com/goharbor/harbor
>= 2.0.0, <= 2.4.2
2.4.3
—
go
github.com/goharbor/harbor
>= 2.5.0, <= 2.5.1
2.5.2
—
cvelogic
Threat Intelligence