CVE-2023-20902: Timing attack risk in Harbor

Published Oct 10, 2023
·
Updated

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.

Other sources

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/{jobid} Stop job task --- POST /api/v1/jobs/{jobid} Get job log task --- GET /api/v1/jobs/{jobid}/log Get job execution --- GET /api/v1/jobs/{jobid}/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.

Affected Software

7 affected componentsFixes available
go/github.com/goharbor/harbor>=2.8.0<2.8.3
2.8.3
go/github.com/goharbor/harbor>=2.0.0<2.7.3
2.7.3
go/github.com/goharbor/harbor<1.10.18
1.10.18
linuxfoundation Harbor<1.10.17
linuxfoundation Harbor>=2.6.0<=2.6.4
linuxfoundation Harbor>=2.7.0<2.7.3
linuxfoundation Harbor>=2.8.0<2.8.3

Event History

Oct 10, 2023
Advisory Published
09:29 PM
Nov 9, 2023
CVE Published
via MITRE·12:36 AM
Data Sourced
via MITRE·12:36 AM
DescriptionSeverityWeakness
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2023-20902.

2

What is the severity of CVE-2023-20902?

The severity of CVE-2023-20902 is not specified.

3

How does the vulnerability occur?

The vulnerability occurs in the Harbor jobservice container due to a comparison of secrets in the authenticator type, which is prone to timing attacks.

4

How can I fix CVE-2023-20902?

To fix CVE-2023-20902, it is recommended to update to the following versions: 2.8.3, 2.7.3, or 1.10.18 of the Harbor package.

5

Where can I find more information about CVE-2023-20902?

More information about CVE-2023-20902 can be found in the GitHub security advisory: [https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf](https://github.com/goharbor/harbor/security/advisories/GHSA-mq6f-5xh5-hgcf)

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203