6.4medium
Harbor fails to validate the user permissions when updating project configurations
- Severity
- 6.4medium CVSS:3.1 by vmware
- Exploit likelihood
- 0.36% (higher than 32% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- vmware
- Also known as
- GHSA-hw28-333w-qxp3BIT-HARBOR-2024-22278GO-2024-3013
Description
Incorrect user permission validation in Harbor <v2.9.5 and Harbor <v2.10.3 allows authenticated users to modify configurations.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| harbor harbor | from 2.9.4 before <v2.9.5, from 2.10.2 before <v2.10.3 | CVE List |
| github.com/goharbor/harbor (Go) | before 2.9.5, from 2.10.0 before 2.10.3, before 2.9.5+incompatible, from 2.10.0+incompatible before 2.10.3+incompatible | GitHub Advisory Database, Go Vulnerability Database |
| linuxfoundation harbor | before 2.9.5, from 2.10.0 before 2.10.3 | NVD |
| harbor (Bitnami) | before 2.11.0 | 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 | 5.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N |
| GitHub | high CVSS:4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:N |
| NVD | 4.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Incorrect user permission validation in Harbor <v2.9.5 and Harbor <v2.10.3 allows authenticated users to modify configurations.
GitHub Advisory Database
Impact
Harbor fails to validate the maintainer role permissions when creating/updating/deleting project configurations - API call:
- PUT /projects/{project_name_or_id}/metadatas/{meta_name}
- POST /projects/{project_name_or_id}/metadatas/{meta_name}
- DELETE /projects/{project_name_or_id}/metadatas/{meta_name}
By sending a request to create/update/delete a metadata with an name that belongs to a project that the currently authenticated and granted to the maintainer role user doesn’t have access to, the attacker could modify configurations in the current project.
BTW: the maintainer role in Harbor was intended for individuals who closely support the project admin in maintaining the project but lack configuration management permissions. However, the maintainer role can utilize the metadata API to circumvent this limitation. It's important to note that any potential attacker must be authenticated and granted a specific project maintainer role to modify configurations, limiting their scope to only that project.
Patches
Will be fixed in v2.9.5, v2.10.3 and v2.11.0
Workarounds
There are no workarounds available.
Credit
Thanks to Ravid Mazon(rmazon@paloaltonetworks.com), Jay Chen (jaychen@paloaltonetworks.com) Palo Alto Networks for reporting this issue.
Go Vulnerability Database
Harbor fails to validate the user permissions when updating project configurations in github.com/goharbor/harbor
NVD (es)
La validación de permisos de usuario incorrecta en Harbor
References
| https://github.com/goharbor/harbor/security/advisories/GHSA-hw28-333w-qxp3 | advisory, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-22278 | advisory, web | |
| https://github.com/goharbor/harbor | package | |
| https://pkg.go.dev/vuln/GO-2024-3013 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-22278 changed 2024-08-14 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-hw28-333w-qxp3 changed 2024-11-18 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2024-3013 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2024-22278 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-HARBOR-2024-22278 changed 2026-09-08 | Apache-2.0 |