Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/goharbor/harbor/src
  4. ›
  5. CVE-2022-31668

CVE-2022-31668: Harbor fails to validate the user permissions when updating p2p preheat policies

November 14, 2024 (updated December 12, 2024)

Harbor fails to validate the user permissions when updating p2p preheat policies. By sending a request to update a p2p preheat policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify p2p preheat policies configured in other projects.

References

  • github.com/advisories/GHSA-r864-28pw-8682
  • github.com/goharbor/harbor
  • github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7
  • nvd.nist.gov/vuln/detail/CVE-2022-31668
  • pkg.go.dev/vuln/GO-2024-3268

Code Behaviors & Features

Detect and mitigate CVE-2022-31668 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.0.0-20220630175814-b4ef1db

Fixed versions

  • 0.0.0-20220630175814-b4ef1db

Solution

Upgrade to version 0.0.0-20220630175814-b4ef1db or above.

Impact 7.7 HIGH

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-285: Improper Authorization

Source file

go/github.com/goharbor/harbor/src/CVE-2022-31668.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:57 +0000.