{"id":"CVE-2023-20902","aliases":["BIT-harbor-2023-20902","GHSA-mq6f-5xh5-hgcf","GO-2023-2109"],"summary":"Timing attack risk in Harbor","published_at":"2023-10-10T21:29:02Z","modified_at":"2026-09-08T08:47:52.093952Z","products":[{"slug":"harbor","name":"Harbor","category":"gitops-cicd"}],"rating":{"severity":"medium","score":6.5,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","attack_path":"internet_unauthenticated","user_interaction":false,"malicious":false},"fix_available":true,"kev":{"listed":false,"ransomware":false},"public_exploit":false,"exploits":[],"epss":{"score":0.0045900000259280205,"percentile":0.4050599932670593,"date":"2026-11-19T00:00:00Z"},"priority":8.5,"details":"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.","affected_stack":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.7.3"}]}],"fixed":["2.7.3"],"provider":"osv","source":"GHSA-mq6f-5xh5-hgcf","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.8.0"},{"fixed":"2.8.3"}]}],"fixed":["2.8.3"],"provider":"osv","source":"GHSA-mq6f-5xh5-hgcf","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.18"}]}],"fixed":["1.10.18"],"provider":"osv","source":"GHSA-mq6f-5xh5-hgcf","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.18"},{"introduced":"2.0.0+incompatible"},{"fixed":"2.7.3+incompatible"},{"introduced":"2.8.0+incompatible"},{"fixed":"2.8.3+incompatible"}]}],"fixed":["1.10.18","2.7.3+incompatible","2.8.3+incompatible"],"provider":"osv","source":"GO-2023-2109","relation":"self"}],"affected_other":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.17"},{"introduced":"2.6.0"},{"fixed":"2.6.5"},{"introduced":"2.7.0"},{"fixed":"2.7.3"},{"introduced":"2.8.0"},{"fixed":"2.8.3"}]}],"fixed":["1.10.17","2.6.5","2.7.3","2.8.3"],"provider":"osv","source":"BIT-harbor-2023-20902","relation":"self"},{"ecosystem":"CVE","package":"Harbor/Project","versions":["<=Harbor 2.6.x, <=Harbor 2.7.2, <=Harbor 2.8.2, <=Harbor 1.10.17"],"provider":"cvelistv5","source":"CVE-2023-20902","relation":"self"},{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.6.0"},{"last_affected":"2.6.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"fixed":"2.8.3"}]}],"fixed":["1.10.17","2.7.3","2.8.3"],"provider":"nvd","source":"CVE-2023-20902","relation":"self"}],"product_status":[],"records":[{"provider":"cvelistv5","source_id":"CVE-2023-20902","relation":"self","url":"https://www.cve.org/CVERecord?id=CVE-2023-20902","license":"CC-BY-4.0","published_at":"2023-11-09T00:36:25.369Z","modified_at":"2024-09-04T13:18:17.73Z","summary":"Timing attack risk in Harbor","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"CVE-2023-20902"}],"affected":[{"ecosystem":"CVE","package":"Harbor/Project","versions":["<=Harbor 2.6.x, <=Harbor 2.7.2, <=Harbor 2.8.2, <=Harbor 1.10.17"],"provider":"cvelistv5","source":"CVE-2023-20902","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf"}]},{"provider":"nvd","source_id":"CVE-2023-20902","relation":"self","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902","severity":[],"affected":[{"ecosystem":"NVD","package":"linuxfoundation:harbor","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.10.17"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.6.0"},{"last_affected":"2.6.4"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.7.0"},{"fixed":"2.7.3"}]},{"type":"ECOSYSTEM","events":[{"introduced":"2.8.0"},{"fixed":"2.8.3"}]}],"fixed":["1.10.17","2.7.3","2.8.3"],"provider":"nvd","source":"CVE-2023-20902","relation":"self"}],"product_status":[],"references":[]},{"provider":"osv","source_id":"BIT-harbor-2023-20902","relation":"self","url":"https://osv.dev/vulnerability/BIT-harbor-2023-20902","license":"Apache-2.0","published_at":"2024-03-06T10:53:13.485Z","modified_at":"2026-09-08T08:47:52.093952Z","summary":"Timing attack risk in Harbor","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:N","source":"BIT-harbor-2023-20902"}],"affected":[{"ecosystem":"Bitnami","package":"harbor","purl":"pkg:bitnami/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.17"},{"introduced":"2.6.0"},{"fixed":"2.6.5"},{"introduced":"2.7.0"},{"fixed":"2.7.3"},{"introduced":"2.8.0"},{"fixed":"2.8.3"}]}],"fixed":["1.10.17","2.6.5","2.7.3","2.8.3"],"provider":"osv","source":"BIT-harbor-2023-20902","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902"}]},{"provider":"osv","source_id":"GHSA-mq6f-5xh5-hgcf","relation":"self","url":"https://osv.dev/vulnerability/GHSA-mq6f-5xh5-hgcf","license":"CC-BY-4.0","published_at":"2023-10-10T21:29:02Z","modified_at":"2026-07-08T06:53:11.997758Z","summary":"Harbor timing attack risk","details":"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.","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"GHSA-mq6f-5xh5-hgcf"}],"affected":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.7.3"}]}],"fixed":["2.7.3"],"provider":"osv","source":"GHSA-mq6f-5xh5-hgcf","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"2.8.0"},{"fixed":"2.8.3"}]}],"fixed":["2.8.3"],"provider":"osv","source":"GHSA-mq6f-5xh5-hgcf","relation":"self"},{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.18"}]}],"fixed":["1.10.18"],"provider":"osv","source":"GHSA-mq6f-5xh5-hgcf","relation":"self"}],"product_status":[],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"},{"type":"WEB","url":"https://github.com/goharbor/harbor/blob/aaea068cceb4063ab89313d9785f2b40f35b0d63/src/jobservice/api/authenticator.go#L69-L69"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v1.10.18"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v2.7.3"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v2.8.3"}]},{"provider":"osv","source_id":"GO-2023-2109","relation":"self","url":"https://osv.dev/vulnerability/GO-2023-2109","license":"CC-BY-4.0","published_at":"2024-08-21T14:30:22Z","modified_at":"2026-03-03T04:54:15.700553Z","summary":"Harbor timing attack risk in github.com/goharbor/harbor","details":"Harbor timing attack risk in github.com/goharbor/harbor","severity":[],"affected":[{"ecosystem":"Go","package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.10.18"},{"introduced":"2.0.0+incompatible"},{"fixed":"2.7.3+incompatible"},{"introduced":"2.8.0+incompatible"},{"fixed":"2.8.3+incompatible"}]}],"fixed":["1.10.18","2.7.3+incompatible","2.8.3+incompatible"],"provider":"osv","source":"GO-2023-2109","relation":"self"}],"product_status":[],"references":[{"type":"ADVISORY","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902"},{"type":"WEB","url":"https://github.com/goharbor/harbor/blob/aaea068cceb4063ab89313d9785f2b40f35b0d63/src/jobservice/api/authenticator.go#L69-L69"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v1.10.18"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v2.7.3"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v2.8.3"}]}],"references":[{"type":"WEB","url":"https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf"},{"type":"WEB","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902"},{"type":"PACKAGE","url":"https://github.com/goharbor/harbor"},{"type":"WEB","url":"https://github.com/goharbor/harbor/blob/aaea068cceb4063ab89313d9785f2b40f35b0d63/src/jobservice/api/authenticator.go#L69-L69"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v1.10.18"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v2.7.3"},{"type":"WEB","url":"https://github.com/goharbor/harbor/releases/tag/v2.8.3"}],"sources":[{"provider":"cvelistv5","source_id":"CVE-2023-20902","url":"https://www.cve.org/CVERecord?id=CVE-2023-20902","license":"CC-BY-4.0","modified_at":"2024-09-04T13:18:17.73Z","relation":"self"},{"provider":"nvd","source_id":"CVE-2023-20902","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-20902","relation":"self"},{"provider":"osv","source_id":"BIT-harbor-2023-20902","url":"https://osv.dev/vulnerability/BIT-harbor-2023-20902","license":"Apache-2.0","modified_at":"2026-09-08T08:47:52.093952Z","relation":"self"},{"provider":"osv","source_id":"GHSA-mq6f-5xh5-hgcf","url":"https://osv.dev/vulnerability/GHSA-mq6f-5xh5-hgcf","license":"CC-BY-4.0","modified_at":"2026-07-08T06:53:11.997758Z","relation":"self"},{"provider":"osv","source_id":"GO-2023-2109","url":"https://osv.dev/vulnerability/GO-2023-2109","license":"CC-BY-4.0","modified_at":"2026-03-03T04:54:15.700553Z","relation":"self"}]}
