Advisory

GHSA-38r5-34mr-mvm7

Also known as: BIT-harbor-2020-29662, CVE-2020-29662, GO-2022-0785

Summary

"catalog's registry v2 api exposed on unauthenticated path in Harbor"

Details

Impact
Javier Provecho, member of the TCCT (Telefonica Cloud & Cybersecurity Tech better known as ElevenPaths) SRE team discovered a vulnerability regarding Harbor’s v2 API.

The catalog’s registry v2 api is exposed on an unauthenticated path. The current catalog API path is served at the following path and it requires to be authenticated as an admin.

"GET /v2/_catalog"

However, the authorization can be bypassed by using the following path

"GET /v2/_catalog/"

Patches
If your product uses the affected releases of Harbor, update to either version v2.1.2 or v2.0.5 to fix this issue immediately

https://github.com/goharbor/harbor/releases/tag/v2.1.2
https://github.com/goharbor/harbor/releases/tag/v2.0.5

Workarounds
If you cannot access a patched release, it can be mitigated by disabling that API. For example, redirecting it to a 404 sink hole in the ingress.

For more information
If you have any questions or comments about this advisory, contact [email protected]
View our security policy at https://github.com/goharbor/harbor/security/policy
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-29662

Severity

Medium Basis: The source's own band: MODERATE

Dates

Published
2022-02-12 00:01 UTC
Modified
2026-07-08 06:00 UTC

Affected packages and fixes

github.com/goharbor/harbor

Go · All systems

Affected

  • introduced 0, fixed 2.0.5 (semver)

Fixed versions

2.0.5

Fix

github.com/goharbor/harbor

Go · All systems

Affected

  • introduced 2.1.0, fixed 2.1.2 (semver)

Fixed versions

2.1.2

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences