CVE-2022-31667: Harbor - Broken Access Control
- Cve: CVE-2022-31667
- Name: Harbor - Broken Access Control
- 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.
- Impact: Unauthorized users can revoke robot account permissions in projects they lack access to, potentially leading to privilege escalation or denial of service.
- Remediation: Implement proper access control checks during robot account updates to ensure users can only modify accounts within their authorized projects.
- Vulnerability type: broken_access_control
- Vulnerability impact: privilege_escalation, denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 6.4
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
- Epss score: 0.00521
- Epss percentile: 0.44823
- Assignee: [email protected]
- Published at: 2024-11-14T12:15:16Z
- Age in days: 740
- Modified at: 2026-06-17T04:46:00Z
- Patch available: yes
- References total: 1
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-31667
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-285 | Improper Authorization |
| CWE-863 | Incorrect Authorization |
References
| Url | Source | Tags |
|---|---|---|
| https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f | nvd | Vendor Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linuxfoundation:harbor | >= 2.5.0, < 2.5.2; >= 2.0.0, < 2.4.3 | no | nvd | /v1/products/linuxfoundation/harbor |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| goharbor/harbor | package, security_advisory | yes | /v1/repositories/goharbor/harbor |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Authentication required: yes
- Exposed hosts: 2419
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports