CVE-2022-31670
Harbor vulnerability analysis and mitigation

Overview

Harbor, an open-source artifact registry by VMware, was found to contain a vulnerability (CVE-2022-31670) where it fails to validate user permissions when updating tag retention policies. The vulnerability was discovered in 2022 and affects Harbor versions 1.x<=1.10.12, 2.x<=2.4.2, and 2.5<=2.5.1. This security flaw is classified as a high-severity access control vulnerability (GitHub Advisory, Help Net Security).

Technical details

The vulnerability is related to the API endpoint PUT /retentions/{id} and has been assigned a CVSS v3.1 base score of 7.7 (High). The CVSS vector string is CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N, indicating network vector attack, low attack complexity, low privileges required, no user interaction needed, changed scope, high impact on integrity, but no impact on confidentiality or availability (GitHub Advisory).

Impact

When exploited, this vulnerability allows an attacker to modify tag retention policies configured in other projects that they don't have access to. The vulnerability occurs because Harbor only validates the requesting user's access to the project ID specified in the request but fails to validate that the requested webhook ID belongs to the specified project ID (GitHub Advisory).

Exploitability

The vulnerability can be exploited 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 attack requires low complexity and only low-level privileges to execute (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in Harbor versions 1.10.13+, 2.4.3+, and 2.5.2+. Users are advised to upgrade to these or later versions as soon as possible. No workarounds are available for this vulnerability (GitHub Advisory).

Community reactions

The vulnerability was discovered and reported by security researchers Gal Goldstein and Daniel Abeles from Oxeye Security. It was part of a series of high-severity IDOR (Insecure Director Object Reference) vulnerabilities found in the CNCF-graduated project Harbor (Help Net Security).

Additional resources


SourceThis report was generated using AI

Related Harbor vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-4404CRITICAL9.4
  • Harbor logoHarbor
  • cpe:2.3:a:linuxfoundation:harbor
NoYesMar 23, 2026
CVE-2022-31670HIGH7.7
  • Harbor logoHarbor
  • cpe:2.3:a:linuxfoundation:harbor
NoYesNov 14, 2024
CVE-2022-31671HIGH7.4
  • Harbor logoHarbor
  • cpe:2.3:a:linuxfoundation:harbor
NoYesNov 14, 2024
CVE-2025-30086MEDIUM4.9
  • Harbor logoHarbor
  • github.com/goharbor/harbor
NoYesJul 25, 2025
CVE-2025-32019MEDIUM4.1
  • Harbor logoHarbor
  • github.com/goharbor/harbor
NoYesJul 23, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management