{"id":"CVE-2022-31671","aliases":["BIT-harbor-2022-31671","GHSA-q76q-q8hw-hmpw"],"url":"https://o3.security/vulnerability/CVE-2022-31671","summary":"Harbor fails to validate the user permissions when reading and updating 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.\n","published":"2024-11-14T11:42:22.373Z","modified":"2026-10-28T02:30:51.704654335Z","cvss":{"score":7.4,"severity":"HIGH","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L"},"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"Go","name":"github.com/goharbor/harbor","fixedVersion":"1.10.13"},{"ecosystem":"Go","name":"github.com/goharbor/harbor","fixedVersion":"2.4.3"},{"ecosystem":"Go","name":"github.com/goharbor/harbor","fixedVersion":"2.5.2"}],"fix":null,"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31671.json"},{"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":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-28T02:30:51.704654335Z"}}