CVE-2019-16097 Missing Authorization in Harbor
Non-admin users can create admin accounts in Harbor when using DB authentication with self-registration enabled, allowing full system compromise.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2019-16097?
CVE-2019-16097 is a medium-severity vulnerability in n/a, published on 8 Sep 2019. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
core/api/user.go in Harbor 1.7.0 through 1.8.2 allows non-admin users to create admin accounts via the POST /api/users API, when Harbor is setup with DB as authentication backend and allow user to do self-registration. Fixed version: v1.7.6 v1.8.3. v.1.9.0. Workaround without applying the fix: configure Harbor to use non-DB authentication backend such as LDAP.
Weakness: CWE-862
Which versions are affected by CVE-2019-16097?
3 open source packages ship an affected version, including github.com/goharbor/harbor. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/goharbor/harbor Go | From 1.7.0 | 1.9.0-rc1 |
github.com/goharbor/harbor Go | From 1.7.0 | 1.9.0-rc1 |
github.com/goharbor/harbor Go | From 1.7.0 | 1.9.0-rc1 |
Products include Linuxfoundation Harbor.
How do I fix CVE-2019-16097?
Upgrade github.com/goharbor/harbor to 1.9.0-rc1 or later.
Is CVE-2019-16097 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-16097 exists.
Public exploit code: 1 Nuclei template and 6 proofs of concept on GitHub.
Other vulnerabilities in n/a
- CVE-2026-4404 Use of hard coded credentials in GoHarbor Harbor
- CVE-2019-19023 Privilege Escalation in Cloud Native Computing Foundation Harbor
- CVE-2019-19025 Cross-site Request Forgery (CSRF) in Cloud Native Computing Foundation Harbor
- CVE-2017-17697 Server-side request forgery in n/a
- CVE-2022-31666 Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies
Sources
Also known as GHSA-9wvh-ff5f-xjpj, GO-2022-0818.