CVE-2022-31668: GO-2024-3268 - Harbor fails to validate the user permissions when updating p2p preheat policies in github.com/goharbor/harbor

CVE-2022-31668 · Severity: low · CVSS 3.1 · Published 2024-12-12

Harbor fails to validate the user permissions when updating p2p preheat policies in github.com/goharbor/harbor

Technologies: github.com/goharbor/harbor (Go). Vendors: Go.

Quick answers

Is CVE-2022-31668 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-31668 being exploited in the wild.
How severe is CVE-2022-31668?
Low severity, with a CVSS score of 3.1, published 12 December 2024.
Which products and versions are affected?
github.com/goharbor/harbor (Go) SEMVER:introduced=2.0.0,fixed=2.4.3, SEMVER:introduced=2.0.0+incompatible,fixed=2.4.3+incompatible,introduced=2.5.0+incompatible,fixed=2.5.2+incompatible; github.com/goharbor/harbor/src (Go) SEMVER:introduced=0,fixed=0.0.0-20220630175814-b4ef1db.
Is there a fix for CVE-2022-31668?
Yes. github.com/goharbor/harbor (Go): upgrade to 2.4.3, 2.5.2+incompatible or later; github.com/goharbor/harbor/src (Go): upgrade to 0.0.0-20220630175814-b4ef1db or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2022-31668?
Check whether you run github.com/goharbor/harbor (Go) or github.com/goharbor/harbor/src (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • github.com/goharbor/harbor (Go): upgrade to 2.4.3, 2.5.2+incompatible or later
    go get github.com/goharbor/harbor@v2.5.2+incompatible
  • github.com/goharbor/harbor/src (Go): upgrade to 0.0.0-20220630175814-b4ef1db or later
    go get github.com/goharbor/harbor/src@v0.0.0-20220630175814-b4ef1db

Affected products

  • github.com/goharbor/harbor (Go) SEMVER:introduced=2.0.0,fixed=2.4.3, SEMVER:introduced=2.0.0+incompatible,fixed=2.4.3+incompatible,introduced=2.5.0+incompatible,fixed=2.5.2+incompatible
  • github.com/goharbor/harbor/src (Go) SEMVER:introduced=0,fixed=0.0.0-20220630175814-b4ef1db

Identifiers

  • CVE-2022-31668
  • GHSA-r864-28pw-8682
  • GO-2024-3268

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.