{"id":"CVE-2022-31670","aliases":["BIT-harbor-2022-31670","GHSA-3637-v6vq-xqqw"],"summary":"Harbor fails to validate the user permissions when updating tag retention policies","published_at":"2022-09-16T19:29:31Z","modified_at":"2026-09-08T08:47:51.711156Z","products":[{"slug":"harbor","name":"Harbor","category":"gitops-cicd"}],"rating":{"severity":"high","score":7.7,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.00546000013127923,"percentile":0.4663499891757965,"date":"2026-11-21T00:00:00Z"},"priority":8.7,"record_count":4,"vendors":["GitHub","Bitnami"],"details":"Harbor fails to validate the user permissions when updating tag retention policies. \n\nBy sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.","affected_stack":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"}]}],"fixed":["1.10.13"],"provider":"osv","source":"GHSA-3637-v6vq-xqqw","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]}],"fixed":["2.4.3"],"provider":"osv","source":"GHSA-3637-v6vq-xqqw","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.5.2"],"provider":"osv","source":"GHSA-3637-v6vq-xqqw","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"},{"introduced":"2.0.0"},{"fixed":"2.4.3"},{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["1.10.13","2.4.3","2.5.2"],"provider":"osv","source":"BIT-harbor-2022-31670","relation":"self"},{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["1.10.13","2.4.3","2.5.2"],"provider":"nvd","source":"CVE-2022-31670","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-31670","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-31670","license":"CC-BY-4.0","published_at":"2024-11-14T11:45:22.257Z","modified_at":"2024-11-14T14:09:48.571Z","summary":"Harbor fails to validate the user permissions when updating tag retention policies","details":"Harbor fails to validate the user permissions when updating tag retention policies. \n\nBy sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","source":"CVE-2022-31670"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3637-v6vq-xqqw"}]},{"provider":"nvd","source_id":"CVE-2022-31670","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670","severity":[],"affected":[{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["1.10.13","2.4.3","2.5.2"],"provider":"nvd","source":"CVE-2022-31670","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-harbor-2022-31670","relation":"self","url":"https://osv.dev/vulnerability/BIT-harbor-2022-31670","license":"Apache-2.0","published_at":"2024-11-20T07:10:45.197Z","modified_at":"2026-09-08T08:47:51.711156Z","summary":"Harbor fails to validate the user permissions when updating tag retention policies","details":"Harbor fails to validate the user permissions when updating tag retention policies. \n\nBy sending a request to update a tag retention policy with an id that belongs to a project that the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","source":"BIT-harbor-2022-31670"}],"affected":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"},{"introduced":"2.0.0"},{"fixed":"2.4.3"},{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["1.10.13","2.4.3","2.5.2"],"provider":"osv","source":"BIT-harbor-2022-31670","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3637-v6vq-xqqw"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670"}]},{"provider":"osv","source_id":"GHSA-3637-v6vq-xqqw","relation":"self","url":"https://osv.dev/vulnerability/GHSA-3637-v6vq-xqqw","license":"CC-BY-4.0","published_at":"2022-09-16T19:29:31Z","modified_at":"2024-11-20T07:57:06.33231Z","summary":"Harbor fails to validate the user permissions when updating tag retention policies","details":"### Impact\n Harbor fails to validate the user permissions when updating tag retention policies. API call:\n\n  PUT /retentions/{id}\n\nBy sending a request to update a tag retention policy with an id that belongs to a project\nthat the currently authenticated user doesn’t have access to, the attacker could modify\ntag retention policies configured in other projects.\n\n### Patches\nThis and similar issues are fixed in Harbor v2.5.2 and later. Please upgrade as soon as possible.\n\n### Workarounds\nThere are no workarounds available.\n\n### For more information\nIf you have any questions or comments about this advisory:\n* Open an issue in [the Harbor GitHub repository](https://github.com/goharbor/harbor)\n\n### Credits\nThanks to [Gal Goldstein](https://www.linkedin.com/in/gal-goldshtein/) and [Daniel Abeles](https://www.linkedin.com/in/daniel-abeles/) from [Oxeye Security](https://www.oxeye.io/) for reporting this issue.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:N/I:H/A:N","source":"GHSA-3637-v6vq-xqqw"}],"affected":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"1.0.0"},{"fixed":"1.10.13"}]}],"fixed":["1.10.13"],"provider":"osv","source":"GHSA-3637-v6vq-xqqw","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]}],"fixed":["2.4.3"],"provider":"osv","source":"GHSA-3637-v6vq-xqqw","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.5.2"],"provider":"osv","source":"GHSA-3637-v6vq-xqqw","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3637-v6vq-xqqw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}]}],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3637-v6vq-xqqw"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-31670","url":"https://www.cve.org/CVERecord?id=CVE-2022-31670","license":"CC-BY-4.0","modified_at":"2024-11-14T14:09:48.571Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-31670","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31670","relation":"self"},{"provider":"osv","source_id":"BIT-harbor-2022-31670","url":"https://osv.dev/vulnerability/BIT-harbor-2022-31670","license":"Apache-2.0","modified_at":"2026-09-08T08:47:51.711156Z","relation":"self"},{"provider":"osv","source_id":"GHSA-3637-v6vq-xqqw","url":"https://osv.dev/vulnerability/GHSA-3637-v6vq-xqqw","license":"CC-BY-4.0","modified_at":"2024-11-20T07:57:06.33231Z","relation":"self"}]}
