Improper Authorization Affecting github.com/goharbor/harbor/src/pkg/p2p/preheat/dao/instance package, versions <2.5.2-rc1


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (11th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOHARBORHARBORSRCPKGP2PPREHEATDAOINSTANCE-8383142
  • published17 Nov 2024
  • disclosed14 Nov 2024
  • creditGal Goldstein and Daniel Abeles

Introduced: 14 Nov 2024

NewCVE-2022-31668  (opens in a new tab)
CWE-285  (opens in a new tab)
First added by Snyk

How to fix?

Upgrade github.com/goharbor/harbor/src/pkg/p2p/preheat/dao/instance to version 2.5.2-rc1 or higher.

Overview

Affected versions of this package are vulnerable to Improper Authorization where an attacker can modify P2P preheat policies configured in other projects by sending a request with an ID that belongs to a project to which the currently authenticated user does not have access.

References

CVSS Scores

version 4.0
version 3.1