CVE-2022-31666
JSON

7.7high

Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies

Severity
7.7high CVSS:3.1 by vmware
Exploit likelihood
0.50% (higher than 44% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
vmware
Also known as
GHSA-jf8p-3vjh-pq94BIT-HARBOR-2022-31666GHSA-8hwq-5f22-jfr3

Description

Harbor fails to validate user permissions while deleting Webhook policies, allowing malicious users to view, update and delete Webhook policies of other users.  The attacker could modify Webhook policies configured in other projects.

Affected

Product or packageVersionsReported by
HarborHarbor 2.x<=2.4.2; 2.5<=2.5.1CVE 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.2GitHub Advisory Database
linuxfoundation harborfrom 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2NVD
harbor (Bitnami)from 2.0.0 before 2.4.3, from 2.5.0 before 2.5.2Bitnami Vulnerability Database

All scores

vmware7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
GitHub7.7high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
NVD5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-285CWE-862

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

Harbor fails to validate user permissions while deleting Webhook policies, allowing malicious users to view, update and delete Webhook policies of other users.  The attacker could modify Webhook policies configured in other projects.

GitHub Advisory Database
Impact

Harbor fails to validate the user permissions to view Webhook policies including relevant credentials configured in different projects the user doesn’t have access to, resulting in malicious users being able to read Webhook policies of other users/projects. API call is

  GET /projects/{project_name_or_id}/webhook/policies/{webhook_policy_id}

By sending the below request and specifying different Webhook policy ids in the last part of the URL, the malicious user may disclose Webhook policies related to other repositories/projects.: none;">

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:

Credits

Thanks to Gal Goldstein and Daniel Abeles from Oxeye Security for reporting this issue.

NVD (es)

Harbor no puede validar los permisos de los usuarios al eliminar políticas de Webhook, lo que permite que usuarios malintencionados vean, actualicen y eliminen políticas de Webhook de otros usuarios. El atacante podría modificar políticas de Webhook configuradas en otros proyectos.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31666 changed 2024-11-14CVE Terms of Use
GitHub Advisory DatabaseGHSA-jf8p-3vjh-pq94 changed 2026-01-26CC-BY-4.0
NVDCVE-2022-31666 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-HARBOR-2022-31666 changed 2026-09-10Apache-2.0