# CVE-2022-31668: User permission validation failure and disclosure of P2P preheat execution logs

- Severity: High 7.4 (CVSS:3.1, scored by vmware) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2024-11-14T11:56:31.043Z
- Modified: 2026-09-08T08:47:52.314Z
- Also known as: GHSA-r864-28pw-8682, BIT-HARBOR-2022-31668, GHSA-3wpx-625q-22j7, GO-2024-3268
- Weaknesses: CWE-285, CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: vmware

## Description

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.

(As written by CVE List.)

## Affected

- Harbor: Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1
- github.com/goharbor/harbor (Go): from 2.0.0 before 2.4.3; from 2.5.0 before 2.5.2; from 2.0.0+incompatible before 2.4.3+incompatible; from 2.5.0+incompatible before 2.5.2+incompatible
- github.com/goharbor/harbor/src (Go): before 0.0.0-20220630175814-b4ef1db
- linuxfoundation harbor: from 2.0.0 before 2.4.3; from 2.5.0 before 2.5.2
- harbor (Bitnami): from 2.0.0 before 2.4.3; from 2.5.0 before 2.5.2

## Every score

- vmware: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L`
- NVD: CVSS:3.1 7.7 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31668> (advisory, web)
- <https://github.com/goharbor/harbor> (package)
- <https://pkg.go.dev/vuln/GO-2024-3268> (web)

## Sources

- CVE List: [CVE-2022-31668](https://www.cve.org/CVERecord?id=CVE-2022-31668), CVE Terms of Use, modified 2024-11-14
- GitHub Advisory Database: [GHSA-r864-28pw-8682](https://github.com/advisories/GHSA-r864-28pw-8682), CC-BY-4.0, modified 2024-12-12
- Go Vulnerability Database: [GO-2024-3268](https://pkg.go.dev/vuln/GO-2024-3268), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2022-31668](https://nvd.nist.gov/vuln/detail/CVE-2022-31668), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-HARBOR-2022-31668](https://osv.dev/vulnerability/BIT-HARBOR-2022-31668), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2022-31668 · Whole record: https://cve.day/CVE-2022-31668.json · Rebuilt by cve.day 2026-11-25T22:58:20.048Z
