Improper authorization in Harbor
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Security bypass
- Confidentiality · integrity · availability
- None · Low · Low
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-285.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | Harbor | Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1 | — | No fix listed | CNA |
| — | github.com/goharbor/harbor (Go) | 1.0.0 to before 1.10.13 | 1.10.13 | Patch available | GHSA-xx9w-464f-7h6f |
| — | github.com/goharbor/harbor (Go) | 2.0.0 to before 2.4.3 | 2.4.3 | Patch available | GHSA-xx9w-464f-7h6f |
| — | github.com/goharbor/harbor (Go) | 2.5.0 to before 2.5.2 | 2.5.2 | Patch available | GHSA-xx9w-464f-7h6f |
- Harbor Vendor— Affected Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1 Fixed in — No fix listed CNA
- github.com/goharbor/harbor (Go) Vendor— Affected 1.0.0 to before 1.10.13 Fixed in 1.10.13 Patch available GHSA-xx9w-464f-7h6f
- github.com/goharbor/harbor (Go) Vendor— Affected 2.0.0 to before 2.4.3 Fixed in 2.4.3 Patch available GHSA-xx9w-464f-7h6f
- github.com/goharbor/harbor (Go) Vendor— Affected 2.5.0 to before 2.5.2 Fixed in 2.5.2 Patch available GHSA-xx9w-464f-7h6f
Remediation
- Fix · GHSA-xx9w-464f-7h6f github.com/goharbor/harbor (Go) Fixed in 1.10.13 Advisory →
- Fix · GHSA-xx9w-464f-7h6f github.com/goharbor/harbor (Go) Fixed in 2.4.3 Advisory →
- Fix · GHSA-xx9w-464f-7h6f github.com/goharbor/harbor (Go) Fixed in 2.5.2 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31667
- 2026-10-03 Alias added: GHSA-xx9w-464f-7h6f
References
More backstage Harbor vulnerabilities
- TI-2019-13717 Cloud Native Computing Foundation Harbor before 1.10.3 and 2.x before 2.0.1 allows… CVSS 3.1MEDIUM 5.3
- TI-2019-12090 core/api/user.go in Harbor 1.7.0 through 1.8.2 allows non-admin users to create admin… CVSS 3.1MEDIUM 6.5
- TI-2022-22962 An access control issue in Harbor v1.X.X to v2.5.3 allows attackers to access public and… CVSS 3.1HIGH 7.5
- TI-2026-03829 Hard-coded credentials in backstage Harbor CVSS 3.1CRITICAL 9.4
- TI-2019-13713 Cloud Native Computing Foundation Harbor prior to 1.8.6 and 1.9.3 has a Privilege… CVSS 3.1HIGH 8.8
- TI-2019-13714 Cloud Native Computing Foundation Harbor prior to 1.8.6 and 1.9.3 allows CSRF in the… CVSS 3.1HIGH 8.8
Sources
- CVE-2022-31667 · CVE Program
- CVE-2022-31667 · NVD
- FIRST EPSS
- GHSA-xx9w-464f-7h6f · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences