CVE-2022-31668
Harbor vulnerability analysis and mitigation

Overview

Harbor, a container registry project, contained a vulnerability (CVE-2022-31668) where it failed to validate user permissions when updating p2p preheat policies. The vulnerability was discovered in Harbor versions 2.x<=2.4.2 and 2.5<=2.5.1, and was later addressed in versions 2.4.3+ and 2.5.2+ (GitHub Advisory).

Technical details

The vulnerability exists in the API endpoint PUT /projects/{project_name}/preheat/policies/{preheat_policy_name}. The issue stems from improper permission validation when updating p2p preheat policies. The vulnerability has been assigned a CVSS v3.1 base score of 7.4 (High severity), with the following metrics: Attack Vector: Network, Attack Complexity: Low, Privileges Required: Low, User Interaction: None, Scope: Changed, and Low impact on Confidentiality, Integrity, and Availability (GitHub Advisory).

Impact

An attacker could exploit this vulnerability to modify p2p preheat policies configured in other projects that they don't have legitimate access to. This could lead to unauthorized modifications of project configurations and potential security breaches (GitHub Advisory).

Mitigation and workarounds

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

Community reactions

The vulnerability was responsibly disclosed by security researchers Gal Goldstein and Daniel Abeles from Oxeye Security (GitHub Advisory).

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-2022-31670HIGH7.7
  • HarborHarbor
  • github.com/goharbor/harbor
NoYesNov 14, 2024
CVE-2022-31669HIGH7.7
  • HarborHarbor
  • cpe:2.3:a:linuxfoundation:harbor
NoYesNov 14, 2024
CVE-2022-31671HIGH7.4
  • HarborHarbor
  • cpe:2.3:a:linuxfoundation:harbor
NoYesNov 14, 2024
CVE-2025-30086MEDIUM4.9
  • HarborHarbor
  • github.com/goharbor/harbor
NoYesJul 25, 2025
CVE-2025-32019MEDIUM4.1
  • HarborHarbor
  • 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