{"id":"CVE-2023-20902","aliases":["CVE-2023-20902","GHSA-mq6f-5xh5-hgcf","BIT-HARBOR-2023-20902","GO-2023-2109"],"related":[],"kind":"vulnerability","state":"published","title":"Timing attack risk in Harbor","summary":"A timing condition in Harbor 2.6.x and below, Harbor 2.7.2 and below,  Harbor 2.8.2 and below, and Harbor 1.10.17 and below allows an attacker with network access to \ncreate jobs/stop job tasks and retrieve job task information.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A timing condition in Harbor 2.6.x and below, Harbor 2.7.2 and below,  Harbor 2.8.2 and below, and Harbor 1.10.17 and below allows an attacker with network access to \ncreate jobs/stop job tasks and retrieve job task information.","source":"cvelist"},{"lang":"en","text":"In the Harbor jobservice container, the comparison of secrets in the authenticator type is prone to timing attacks. The vulnerability occurs due to the following code: https://github.com/goharbor/harbor/blob/aaea068cceb4063ab89313d9785f2b40f35b0d63/src/jobservice/api/authenticator.go#L69-L69\nTo avoid this issue, constant time comparison should be used.\n```\nsubtle.ConstantTimeCompare([]byte(expectedSecret), []byte(secret)) == 0\n```\n\n### Impact\nThis attack might be possible theoretically, but no workable proof of concept is available, and access complexity is set at High.\nThe jobservice exposes these APIs\n```\nCreate a job task --- POST /api/v1/jobs    \nGet job task information --- GET /api/v1/jobs/{job_id}\nStop job task ---  POST /api/v1/jobs/{job_id}\nGet job log task ---  GET /api/v1/jobs/{job_id}/log\nGet job execution --- GET /api/v1/jobs/{job_id}/executions\nGet job stats ---  GET /api/v1/stats\nGet job service configuration ---  GET /api/v1/config\n```\nIt is used to create jobs/stop job tasks and retrieve job task information.  If an attacker obtains the secrets, it is possible to retrieve the job information, create a job, or stop a job task. \n\nThe following versions of Harbor are involved:\n<=Harbor 2.8.2, <=Harbor 2.7.2, <= Harbor 2.6.x, <=Harbor 1.10.17\n\n\n### Patches\nHarbor 2.8.3, Harbor 2.7.3, Harbor 1.10.18\n\n### Workarounds\nBecause the jobservice only exposes HTTP service to harbor-core containers, blocking any inbound traffic from the external network to the jobservice container can reduce the risk.\n\n### Credits\nThanks to Porcupiney Hairs for reporting this issue.","format":"markdown","source":"ghsa"},{"lang":"en","text":"Harbor timing attack risk in github.com/goharbor/harbor","format":"markdown","source":"go"},{"lang":"es","text":"Una condición de sincronización en Harbor 2.6.x y anteriores, Harbor 2.7.2 y anteriores, Harbor 2.8.2 y anteriores y Harbor 1.10.17 y anteriores permite a un atacante con acceso a la red crear trabajos/detener tareas de trabajo y recuperar información de tareas de trabajo. .","source":"nvd"}],"published":"2023-10-10T21:29:02.000Z","modified":"2026-09-08T08:47:52.093Z","severity":{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},"severities":[{"scorer":"vmware","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-208","CWE-362"],"affected":[{"ranges":[{"version":"<=Harbor 2.6.x, <=Harbor 2.7.2, <=Harbor 2.8.2, <=Harbor 1.10.17","status":"affected"}],"vendor":"Harbor","product":"Project","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.18"}],"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.7.3"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.8.0","status":"affected","fixed":"2.8.3"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.18"},{"type":"semver","introduced":"2.0.0+incompatible","status":"affected","fixed":"2.7.3+incompatible"},{"type":"semver","introduced":"2.8.0+incompatible","status":"affected","fixed":"2.8.3+incompatible"}],"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"go"},{"ranges":[{"status":"affected","fixed":"1.10.17"},{"status":"affected","introduced":"2.6.0","lastAffected":"2.6.4"},{"status":"affected","introduced":"2.7.0","fixed":"2.7.3"},{"status":"affected","introduced":"2.8.0","fixed":"2.8.3"}],"vendor":"linuxfoundation","product":"harbor","cpe":"cpe:2.3:a:linuxfoundation:harbor:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.10.17"},{"type":"semver","introduced":"2.6.0","status":"affected","fixed":"2.6.5"},{"type":"semver","introduced":"2.7.0","status":"affected","fixed":"2.7.3"},{"type":"semver","introduced":"2.8.0","status":"affected","fixed":"2.8.3"}],"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","source":"bitnami"}],"references":[{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf","tags":["advisory","exploit","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","go","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902","tags":["advisory","web"],"sources":["ghsa","go","bitnami"]},{"url":"https://github.com/goharbor/harbor","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/goharbor/harbor/blob/aaea068cceb4063ab89313d9785f2b40f35b0d63/src/jobservice/api/authenticator.go#L69-L69","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/goharbor/harbor/releases/tag/v1.10.18","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/goharbor/harbor/releases/tag/v2.7.3","tags":["web"],"sources":["ghsa","go"]},{"url":"https://github.com/goharbor/harbor/releases/tag/v2.8.3","tags":["web"],"sources":["ghsa","go"]}],"credits":["Thanks to Porcupiney Hairs for reporting this issue."],"assigner":"vmware","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-04T13:11:13.739Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-20902","url":"https://www.cve.org/CVERecord?id=CVE-2023-20902","licence":"CVE Terms of Use","modified":"2024-09-04T13:18:17.730Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-mq6f-5xh5-hgcf","url":"https://github.com/advisories/GHSA-mq6f-5xh5-hgcf","licence":"CC-BY-4.0","modified":"2026-07-08T06:53:11.997Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2023-2109","url":"https://pkg.go.dev/vuln/GO-2023-2109","licence":"CC-BY-4.0","modified":"2026-03-03T04:54:15.700Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-20902","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902","licence":"Public domain","modified":"2026-06-17T05:31:08.990Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-HARBOR-2023-20902","url":"https://osv.dev/vulnerability/BIT-HARBOR-2023-20902","licence":"Apache-2.0","modified":"2026-09-08T08:47:52.093Z"}],"updatedAt":"2026-11-25T22:58:30.262Z","epss":{"score":0.00459,"percentile":0.41467,"date":"2026-12-02T12:00:21.000Z"}}