Advisory

GO-2024-3268

Also known as: BIT-harbor-2022-31668, CVE-2022-31668, GHSA-3wpx-625q-22j7, GHSA-r864-28pw-8682

Summary

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

Details

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.

Severity

Not rated by the source.

Dates

Published
2024-12-12 15:46 UTC
Modified
2026-03-03 04:56 UTC

Affected packages and fixes

github.com/goharbor/harbor

Go · All systems

Affected

  • introduced 2.0.0+incompatible, fixed 2.4.3+incompatible, introduced 2.5.0+incompatible, fixed 2.5.2+incompatible (semver)

Fixed versions

2.4.3+incompatible, 2.5.2+incompatible

Fix

  • Fixed version 2.4.3+incompatible
    go get github.com/goharbor/[email protected]+incompatible
  • Fixed version 2.5.2+incompatible
    go get github.com/goharbor/[email protected]+incompatible

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Go Vulnerability Database · CC BY 4.0

Sources & licences