Every CVE Search/ Get API key

CVE-2022-31666

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

7.7 HighFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
Low
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
None
Availability
None

Exploit likelihood

0.50%Up 0.5 points since Nov 15, 2024
90%50%10%1%

What each source reports

CVE List Score used 7.7

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

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.

Record
CVE-2022-31666
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-285
Updated
2026-11-02
EUVDEUVD-2022-6853 7.7

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.

Record
EUVD-2022-6853
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Updated
2026-11-03
GitHub AdvisoriesGHSA-jf8p-3vjh-pq94 7.7

Harbor fails to validate the user permissions when viewing Webhook policies

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.

Record
GHSA-jf8p-3vjh-pq94
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-285
Updated
2026-11-02
NVD 7.7

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.

Record
CVE-2022-31666
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
CVSS 3.1
5.4 MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
Weakness
CWE-285, CWE-862
Updated
2026-11-02
OSV 7.7

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

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.

Record
CVE-2022-31666
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-285
Updated
2026-11-02
OSVGHSA-jf8p-3vjh-pq94 7.7

Harbor fails to validate the user permissions when viewing Webhook policies

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.

Record
GHSA-jf8p-3vjh-pq94
CVSS 3.1
7.7 HighCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Weakness
CWE-285
Updated
2026-11-02
OSVBIT-harbor-2022-31666 No score

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

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.

Record
BIT-harbor-2022-31666
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/goharbor/harbor
Go
1.0.0 to 1.10.12
1.10.13
github.com/goharbor/harbor
Go
2.0.0 to 2.4.2
2.4.3
github.com/goharbor/harbor
Go
2.5.0 to 2.5.1
2.5.2
harbor
Bitnami
2.0.0 up to 2.4.3, 2.5.0 up to 2.5.2
2.4.32.5.2
github.com/goharbor/harbor
Go
1.0.0 up to 1.10.13
1.10.13
github.com/goharbor/harbor
Go
2.0.0 up to 2.4.3
2.4.3
github.com/goharbor/harbor
Go
2.5.0 up to 2.5.2
2.5.2

History

History
RecordedChangedSources
aliases, productsEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2022-31666 is a high vulnerability (CVSS 7.7) in Harbor, published September 16, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.50%, the 42nd percentile. Fixed in github.com/goharbor/harbor 1.10.13.

References

MoveEnter Open