CVE-2022-31668: Harbor fails to validate the user permissions when updating p2p preheat policies
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.
Published Nov 14, 2024 · Updated Dec 12, 2024
Affected packages
github.com/goharbor/harbor
- Ecosystem
- Go
- Affected
- >= 2.0.0, < 2.4.3
- Fixed in
- 2.4.3
- Check
go list -m github.com/goharbor/harbor
github.com/goharbor/harbor
- Ecosystem
- Go
- Affected
- >= 2.5.0, < 2.5.2
- Fixed in
- 2.5.2
- Check
go list -m github.com/goharbor/harbor
github.com/goharbor/harbor/src
- Ecosystem
- Go
- Affected
- < 0.0.0-20220630175814-b4ef1db
- Fixed in
- 0.0.0-20220630175814-b4ef1db
- Check
go list -m github.com/goharbor/harbor/src
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
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
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesGHSA-prh4-vhfh-24mj
Harbor: LDAP password and OIDC secret are not redacted in the audit log
medium6.9Mar 26, 2026CVE-2026-4404
Harbor allows the use of the default password for web UI login
critical9.4No fixMar 23, 2026CVE-2025-30086
Possible ORM Leak Vulnerability in the Harbor
medium4.9Jul 23, 2025CVE-2025-32019
Harbor repository description page has Cross-site Scripting vulnerability
medium4.1No fixJul 23, 2025CVE-2024-22278
Harbor fails to validate the user permissions when updating project configurations
high5.5Jul 31, 2024CVE-2024-22244
Open Redirect URL in Harbor
medium4.3Jun 2, 2024
