# CVE-2022-31667: Harbor fails to validate the user permissions when updating a robot account

- Severity: Medium 6.4 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.52%, higher than 45% of CVEs (2026-12-01)
- Published: 2022-09-16T20:27:13.000Z
- Modified: 2026-09-08T08:47:52.188Z
- Also known as: GHSA-xx9w-464f-7h6f, BIT-HARBOR-2022-31667
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## 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.

(As written by CVE List.)

## Affected

- Harbor: Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1
- github.com/goharbor/harbor (Go): from 1.0.0 before 1.10.13; from 2.0.0 before 2.4.3; from 2.5.0 before 2.5.2
- linuxfoundation harbor: from 2.0.0 before 2.4.3; from 2.5.0 before 2.5.2
- harbor (Bitnami): from 2.0.0 before 2.4.3; from 2.5.0 before 2.5.2

## Every score

- vmware: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- GitHub: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- NVD: CVSS:3.1 6.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/goharbor/harbor/security/advisories/GHSA-xx9w-464f-7h6f> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31667> (advisory, web)
- <https://github.com/goharbor/harbor> (package)

## Sources

- CVE List: [CVE-2022-31667](https://www.cve.org/CVERecord?id=CVE-2022-31667), CVE Terms of Use, modified 2024-11-14
- GitHub Advisory Database: [GHSA-xx9w-464f-7h6f](https://github.com/advisories/GHSA-xx9w-464f-7h6f), CC-BY-4.0, modified 2024-11-20
- NVD: [CVE-2022-31667](https://nvd.nist.gov/vuln/detail/CVE-2022-31667), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-HARBOR-2022-31667](https://osv.dev/vulnerability/BIT-HARBOR-2022-31667), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-31667 · Whole record: https://cve.day/CVE-2022-31667.json · Rebuilt by cve.day 2026-11-25T22:58:20.048Z
