{"cve":"CVE-2022-31668","nvd":{"published":"2024-11-14T12:15:16.607","modified":"2026-06-17T04:46:00.753","status":"Analyzed","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","score":7.7},"cwes":["CWE-863","CWE-285"],"references":["https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7"],"products":["linuxfoundation:harbor"],"source":"nvd","synced_at":"2026-10-19T21:57:07.693694550+00:00"},"epss":{"cve":"CVE-2022-31668","score":0.00304,"percentile":0.23192,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-r864-28pw-8682","url":"https://osv.dev/vulnerability/GHSA-r864-28pw-8682","summary":"Harbor fails to validate the user permissions when updating p2p preheat policies","modified":"2024-12-12T19:15:24Z","packages":[{"ecosystem":"Go","name":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[">=2.0.0 <2.4.3"],"fixed":["2.4.3"]},{"ecosystem":"Go","name":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[">=2.5.0 <2.5.2"],"fixed":["2.5.2"]},{"ecosystem":"Go","name":"github.com/goharbor/harbor/src","purl":"pkg:golang/github.com/goharbor/harbor/src","ranges":["<0.0.0-20220630175814-b4ef1db"],"fixed":["0.0.0-20220630175814-b4ef1db"]}]},{"id":"GO-2024-3268","url":"https://osv.dev/vulnerability/GO-2024-3268","summary":"Harbor fails to validate the user permissions when updating p2p preheat policies in github.com/goharbor/harbor","modified":"2026-03-03T04:56:01.887693Z","packages":[{"ecosystem":"Go","name":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[">=2.0.0+incompatible <2.4.3+incompatible",">=2.5.0+incompatible <2.5.2+incompatible"],"fixed":["2.4.3+incompatible","2.5.2+incompatible"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}