CVE-2022-31668
HIGH 7.7CVSS 3.1Harbor 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
- 14 Nov 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security@vmware.com
- NVD status
- Analyzed
- Weakness
- CWE-285CWE-863
- Also known as
- BIT-harbor-2022-31668GHSA-3wpx-625q-22j7GHSA-r864-28pw-8682GO-2024-3268
- Sources
- NVDJSONOSV GHSA-r864-28pw-8682JSONOSV GO-2024-3268JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.7 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N |
| NVD | security@vmware.com (Secondary) | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
| OSV | GitHub | CVSS 3.1 | HIGH 7.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | linuxfoundation | harborcpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:* |
>= 2.0.0, < 2.4.3 | 2.4.3 |
| NVD | linuxfoundation | harborcpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:* |
>= 2.5.0, < 2.5.2 | 2.5.2 |
| OSV | Go | github.com/goharbor/harbor | >= 2.0.0, < 2.4.3 | 2.4.3 |
| OSV | Go | github.com/goharbor/harbor | >= 2.5.0, < 2.5.2 | 2.5.2 |
| OSV | Go | github.com/goharbor/harbor/src | < 0.0.0-20220630175814-b4ef1db | 0.0.0-20220630175814-b4ef1db |
| OSV | Go | github.com/goharbor/harbor | >= 2.0.0+incompatible, < 2.4.3+incompatible; >= 2.5.0+incompatible, < 2.5.2+incompatible | 2.4.3+incompatible, 2.5.2+incompatible |
References
- https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7 · Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2022-31668 · ADVISORY
- https://github.com/goharbor/harbor · PACKAGE
- https://pkg.go.dev/vuln/GO-2024-3268 · WEB
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 14 Nov 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 12 Dec 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 14 Nov 2024)