{"schema_version":"1.7.3","id":"GHSA-r864-28pw-8682","published":"2024-11-14T12:31:02Z","modified":"2024-12-12T19:15:24Z","aliases":["BIT-harbor-2022-31668","CVE-2022-31668","GHSA-3wpx-625q-22j7","GO-2024-3268"],"summary":"Harbor fails to validate the user permissions when updating p2p preheat policies","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.","affected":[{"package":{"name":"github.com/goharbor/harbor","ecosystem":"Go","purl":"pkg:golang/github.com/goharbor/harbor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-r864-28pw-8682/GHSA-r864-28pw-8682.json"}},{"package":{"name":"github.com/goharbor/harbor","ecosystem":"Go","purl":"pkg:golang/github.com/goharbor/harbor"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-r864-28pw-8682/GHSA-r864-28pw-8682.json"}},{"package":{"name":"github.com/goharbor/harbor/src","ecosystem":"Go","purl":"pkg:golang/github.com/goharbor/harbor/src"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"0.0.0-20220630175814-b4ef1db"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2024/11/GHSA-r864-28pw-8682/GHSA-r864-28pw-8682.json"}}],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31668"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2024-3268"}],"database_specific":{"cwe_ids":["CWE-285"],"github_reviewed":true,"github_reviewed_at":"2024-11-14T18:33:49Z","nvd_published_at":"2024-11-14T12:15:16Z","severity":"HIGH"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"}]}