CVE-2024-22278
JSON

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 packageVersionsReported by
harbor harborfrom 2.9.4 before <v2.9.5, from 2.10.2 before <v2.10.3CVE 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+incompatibleGitHub Advisory Database, Go Vulnerability Database
linuxfoundation harborbefore 2.9.5, from 2.10.0 before 2.10.3NVD
harbor (Bitnami)before 2.11.0Bitnami Vulnerability Database

All scores

vmware6.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
GitHub5.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:L/I:L/A:N
GitHubhigh CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:H/SC:L/SI:L/SA:N
NVD4.3medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Bitnami Vulnerability Databasemedium rating

Classification

CWE-269

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

Sources

SourceRecordLicence
CVE ListCVE-2024-22278 changed 2024-08-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-hw28-333w-qxp3 changed 2024-11-18CC-BY-4.0
Go Vulnerability DatabaseGO-2024-3013 changed 2026-03-03CC-BY-4.0
NVDCVE-2024-22278 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-HARBOR-2024-22278 changed 2026-09-08Apache-2.0