CVE-2023-20902
mediumpriority · track · 26EPSS 0.005 · 39 %ileEUUSEPSS · scored 2026-10-28
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 create jobs/stop job tasks and retrieve job task information.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (14)
Products and version ranges known to be affected.
- Go github.com/goharbor/harbor2.0.0+incompatible → 2.7.3+incompatibleosvUSpkg:golang/github.com/goharbor/harbor
- Go github.com/goharbor/harbor2.8.0+incompatible → 2.8.3+incompatibleosvUSpkg:golang/github.com/goharbor/harbor
advisories (3)
Vendor and ecosystem advisories describing this.
- GHSA-mq6f-5xh5-hgcfHarbor timing attack risk2023-10-10ghsa · osvUS
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 To avoid this issue, constant time comparison should be used. ``` subtle.ConstantTimeCompare([]byte(expectedSecret), []byte(secret)) == 0 ``` ### Impact This attack might be possible theoretically, but no workable proof of concept is available, and access complexity is set at High. The jobservice exposes these APIs ``` Create a job task --- POST /api/v1/jobs Get job task information --- GET /api/v1/jobs/{job_id} Stop job task --- POST /api/v1/jobs/{job_id} Get job log task --- GET /api/v1/jobs/{job_id}/log Get job execution --- GET /api/v1/jobs/{job_id}/executions Get job stats --- GET /api/v1/stats Get job service configuration --- GET /api/v1/config ``` It 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. The following versions of Harbor are involved: <=Harbor 2.8.2, <=Harbor 2.7.2, <= Harbor 2.6.x, <=Harbor 1.10.17 ### Patches Harbor 2.8.3, Harbor 2.7.3, Harbor 1.10.18 ### Workarounds Because 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. ### Credits Thanks to Porcupiney Hairs for reporting this issue.
- BIT-harbor-2023-20902Timing attack risk in Harbor2024-03-06vendor · osvUS
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 create jobs/stop job tasks and retrieve job task information.
- GO-2023-2109Harbor timing attack risk in github.com/goharbor/harbor2024-08-21vendor · osvUS
Harbor timing attack risk in github.com/goharbor/harbor
also known as (6)
Other names and identifiers for this entity.
- CNNVD-202311-744cnnvd
- EUVD-2023-2779enisa_euvd
- GHSA-mq6f-5xh5-hgcfenisa_euvd
- BIT-harbor-2023-20902osv
- GHSA-mq6f-5xh5-hgcfosv
- GO-2023-2109osv
sources
Which sources assert this record, and when.
references (4)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2023-20902/cnnvd
- https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcfcnnvd
- https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcfenisa_euvd
- https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcfExploitVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan