6.4medium
Harbor fails to validate the user permissions when updating tag immutability policies
- Severity
- 6.4medium CVSS:3.1 by vmware
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-8c6p-v837-77f6BIT-HARBOR-2022-31669
Description
Harbor fails to validate the user permissions when updating tag immutability policies. By sending a request to update a tag immutability policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag immutability policies configured in other projects.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Harbor | Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1 | CVE List |
| 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 | GitHub Advisory Database |
| linuxfoundation harbor | from 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2 | NVD |
| harbor (Bitnami) | from 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2 | Bitnami Vulnerability Database |
All scores
| vmware | 6.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L |
| GitHub | 6.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L |
| NVD | 7.7high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
Harbor fails to validate the user permissions when updating tag immutability policies. By sending a request to update a tag immutability policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag immutability policies configured in other projects.
GitHub Advisory Database
Impact
Harbor fails to validate the user permissions when updating tag immutability policies - API call:
PUT /projects/{project_name_or_id}/immutabletagrules/{immutable_rule_id}
By sending a request to update a tag immutability policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag immutability policies configured in other projects.
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.
NVD (es)
Harbor no puede validar los permisos de usuario al actualizar las políticas de inmutabilidad de etiquetas. Al enviar una solicitud para actualizar una política de inmutabilidad de etiquetas con un ID que pertenece a un proyecto al que el usuario autenticado actualmente no tiene acceso, el atacante podría modificar las políticas de inmutabilidad de etiquetas configuradas en otros proyectos.
References
| https://github.com/goharbor/harbor/security/advisories/GHSA-8c6p-v837-77f6 | advisory, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-31669 | advisory, web | |
| https://github.com/goharbor/harbor | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-31669 changed 2024-11-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8c6p-v837-77f6 changed 2024-11-20 | CC-BY-4.0 |
| NVD | CVE-2022-31669 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-HARBOR-2022-31669 changed 2026-09-08 | Apache-2.0 |