{"id":"CVE-2022-31671","aliases":["BIT-harbor-2022-31671","GHSA-q76q-q8hw-hmpw"],"summary":"Harbor fails to validate the user permissions when reading and updating job execution logs through the P2P preheat execution logs","published_at":"2022-09-09T19:47:03Z","modified_at":"2026-09-08T08:47:51.632481Z","products":[{"slug":"harbor","name":"Harbor","category":"gitops-cicd"}],"rating":{"severity":"high","score":7.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","attack_path":"internet_authenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0052999998442828655,"percentile":0.45669999718666077,"date":"2026-11-21T00:00:00Z"},"priority":8.4,"record_count":4,"vendors":["GitHub","Bitnami"],"details":"Harbor fails to validate user permissions when reading and updating job execution logs through the P2P preheat execution logs. By sending a request that attempts to read/update P2P preheat execution logs and specifying different job IDs, malicious authenticated users could read all the job logs stored in the Harbor database.","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-q76q-q8hw-hmpw","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-q76q-q8hw-hmpw","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-q76q-q8hw-hmpw","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"},{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"osv","source":"BIT-harbor-2022-31671","relation":"self"},{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"nvd","source":"CVE-2022-31671","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2022-31671","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2022-31671","license":"CC-BY-4.0","published_at":"2024-11-14T11:42:22.373Z","modified_at":"2024-11-14T14:10:27.403Z","summary":"Harbor fails to validate the user permissions when reading and updating job execution logs through the P2P preheat execution logs","details":"Harbor fails to validate user permissions when reading and updating job execution logs through the P2P preheat execution logs. By sending a request that attempts to read/update P2P preheat execution logs and specifying different job IDs, malicious authenticated users could read all the job logs stored in the Harbor database.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","source":"CVE-2022-31671"}],"affected":[],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw"},{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7"}]},{"provider":"nvd","source_id":"CVE-2022-31671","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671","severity":[],"affected":[{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"nvd","source":"CVE-2022-31671","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-harbor-2022-31671","relation":"self","url":"https://osv.dev/vulnerability/BIT-harbor-2022-31671","license":"Apache-2.0","published_at":"2024-11-20T07:10:37.789Z","modified_at":"2026-09-08T08:47:51.632481Z","summary":"Harbor fails to validate the user permissions when reading and updating job execution logs through the P2P preheat execution logs","details":"Harbor fails to validate user permissions when reading and updating job execution logs through the P2P preheat execution logs. By sending a request that attempts to read/update P2P preheat execution logs and specifying different job IDs, malicious authenticated users could read all the job logs stored in the Harbor database.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","source":"BIT-harbor-2022-31671"}],"affected":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.4.3"},{"introduced":"2.5.0"},{"fixed":"2.5.2"}]}],"fixed":["2.4.3","2.5.2"],"provider":"osv","source":"BIT-harbor-2022-31671","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7"},{"type":"ADVISORY","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671"}]},{"provider":"osv","source_id":"GHSA-q76q-q8hw-hmpw","relation":"self","url":"https://osv.dev/vulnerability/GHSA-q76q-q8hw-hmpw","license":"CC-BY-4.0","published_at":"2022-09-09T19:47:03Z","modified_at":"2026-02-04T04:22:02.59259Z","summary":"Harbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs","details":"### Impact\nHarbor fails to validate the user permissions when reading job execution logs through the P2P preheat execution logs - API call\n\n  GET /projects/{project_name}/preheat/policies/{preheat_policy_name}/executions/{execution_id}/tasks/{task_id}/logs\n\nBy sending a request that attempts to read P2P preheat execution logs and specifying different job ids, malicious authenticatedusers could read all the job logs stored in the Harbor database.\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:L/I:N/A:N","source":"GHSA-q76q-q8hw-hmpw"}],"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-q76q-q8hw-hmpw","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-q76q-q8hw-hmpw","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-q76q-q8hw-hmpw","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7"},{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}]}],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw"},{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2022-31671","url":"https://www.cve.org/CVERecord?id=CVE-2022-31671","license":"CC-BY-4.0","modified_at":"2024-11-14T14:10:27.403Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2022-31671","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671","relation":"self"},{"provider":"osv","source_id":"BIT-harbor-2022-31671","url":"https://osv.dev/vulnerability/BIT-harbor-2022-31671","license":"Apache-2.0","modified_at":"2026-09-08T08:47:51.632481Z","relation":"self"},{"provider":"osv","source_id":"GHSA-q76q-q8hw-hmpw","url":"https://osv.dev/vulnerability/GHSA-q76q-q8hw-hmpw","license":"CC-BY-4.0","modified_at":"2026-02-04T04:22:02.59259Z","relation":"self"}]}
