{"id":"CVE-2020-13794","aliases":["GHSA-q9p8-33wc-h432","BIT-harbor-2020-13794","GO-2022-0865"],"title":"Authenticated users can exploit an enumeration vulnerability in Harbor","summary":"Authenticated users can exploit an enumeration vulnerability in Harbor","severity":"medium","cvss":4.3,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","vendor":"goharbor","product":"github.com/goharbor/harbor","ecosystem":"go","affected":["github.com/goharbor/harbor < 2.0.3"],"patched":["github.com/goharbor/harbor 2.0.3"],"published":"2021-05-24","updated":"2026-07-08","source":"OSV","sourceUrl":"https://osv.dev/vulnerability/GHSA-q9p8-33wc-h432","references":[{"url":"https://github.com/goharbor/harbor/security/advisories/GHSA-q9p8-33wc-h432"},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2020-13794"},{"url":"https://github.com/goharbor/harbor"},{"url":"https://github.com/goharbor/harbor/releases"},{"url":"https://github.com/goharbor/harbor/releases/tag/v2.0.3"},{"url":"https://github.com/goharbor/harbor/releases/tag/v2.1.0"},{"url":"https://www.cybereagle.io/blog/cve-2020-13794"}],"tags":["osv","go"],"epss":0.01266,"epssPercentile":0.68491,"ingestedAt":"2026-07-09T18:56:36.697Z","slug":"CVE-2020-13794","body":"## Overview\n\n### **Impact**\n\nHidde Smit from Cyber Eagle has discovered an User Enumeration flaw in Harbor. The issue is present in the \"/users\" api endpoint. This endpoint is supposed to be restricted to administrators. This restriction is able to be bypassed and information can be obtained via the \"search\" functionality.\n\nNon-administrator users (such as those created via self-registration) can list all usernames and user IDs by sending a GET request to /api/users/search with parameter \"username\" and value \"_\", as follows:\n\n`curl -X GET \"https://<host>/api/users/search?username=_\" -H \"accept: application/json\" --user <user>:<password>`\n\nThe vulnerability was immediately fixed by the Harbor team and all supported versions were patched. With the patched versions of Harbor, the username is required for search and we have removed the support for querying by email.\n\n### **Patches**\nIf your product uses the affected releases of Harbor, update to either version 2.1.0 or 2.0.3 to fix this issue immediately\n\nhttps://github.com/goharbor/harbor/releases/tag/v2.1.0\nhttps://github.com/goharbor/harbor/releases/tag/v2.0.3\n\n### **Workarounds**\nThere is no workaround for this issue\n\n### **For more information**\nIf you have any questions or comments about this advisory, contact cncf-harbor-security@lists.cncf.io\nView our security policy at https://github.com/goharbor/harbor/security/policy\nhttps://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-13794\n\n## Affected packages\n\n- `github.com/goharbor/harbor < 2.0.3`\n\n## Remediation\n\nUpgrade to a patched release:\n\n- `github.com/goharbor/harbor 2.0.3`","depth":"sunlit","depthScore":24,"depthScoreParts":{"impact":23.7,"likelihood":0.3,"exploitation":0,"ransomware":0},"changes":[]}