{"id":"CVE-2022-31671","aliases":["CVE-2022-31671","GHSA-q76q-q8hw-hmpw","BIT-HARBOR-2022-31671"],"related":[],"kind":"vulnerability","state":"published","title":"Harbor fails to validate the user permissions when reading and updating job execution logs through the P2P preheat execution logs","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Harbor no puede validar los permisos de usuario al leer y actualizar los registros de ejecución de trabajos a través de los registros de ejecución de precalentamiento P2P. Al enviar una solicitud que intenta leer o actualizar los registros de ejecución de precalentamiento P2P y especificar diferentes identificadores de trabajo, los usuarios autenticados malintencionados podrían leer todos los registros de trabajo almacenados en la base de datos de Harbor.","source":"nvd"}],"published":"2022-09-09T19:47:03.000Z","modified":"2026-09-08T08:47:51.632Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:N/A:N","score":5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:L","score":7.4,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-285","CWE-863"],"affected":[{"ranges":[{"version":"Harbor (Go) 2.x<=2.4.2; 2.5<=2.5.1","status":"affected"}],"product":"Harbor","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"1.0.0","status":"affected","fixed":"1.10.13"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.4.3"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.5.0","status":"affected","fixed":"2.5.2"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"2.0.0","fixed":"2.4.3"},{"status":"affected","introduced":"2.5.0","fixed":"2.5.2"}],"vendor":"linuxfoundation","product":"harbor","cpe":"cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.4.3"},{"type":"semver","introduced":"2.5.0","status":"affected","fixed":"2.5.2"}],"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","source":"bitnami"}],"references":[{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q76q-q8hw-hmpw","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-3wpx-625q-22j7","tags":["advisory","vendor-advisory","web"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/goharbor/harbor","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-14T14:10:09.378Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31671","url":"https://www.cve.org/CVERecord?id=CVE-2022-31671","licence":"CVE Terms of Use","modified":"2024-11-14T14:10:27.403Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q76q-q8hw-hmpw","url":"https://github.com/advisories/GHSA-q76q-q8hw-hmpw","licence":"CC-BY-4.0","modified":"2026-02-04T04:22:02.592Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31671","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31671","licence":"Public domain","modified":"2026-06-17T04:46:01.493Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-HARBOR-2022-31671","url":"https://osv.dev/vulnerability/BIT-HARBOR-2022-31671","licence":"Apache-2.0","modified":"2026-09-08T08:47:51.632Z"}],"updatedAt":"2026-11-25T22:58:20.050Z","epss":{"score":0.0053,"percentile":0.46255,"date":"2026-12-01T12:00:22.000Z"}}