CVE-2019-16097 Missing Authorization in Harbor

Medium 6.5 Published Updated

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.

PackageAffectedFixed in
github.com/goharbor/harbor GoFrom 1.7.01.9.0-rc1
github.com/goharbor/harbor GoFrom 1.7.01.9.0-rc1
github.com/goharbor/harbor GoFrom 1.7.01.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.

Sources

Also known as GHSA-9wvh-ff5f-xjpj, GO-2022-0818.

Is CVE-2019-16097 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free