CVE-2019-16097: Github.com/goharbor/harbor Missing Authorization Vulnerability

MODERATE
Advisory Identifier: GHSA-9wvh-ff5f-xjpj
CVSS 6.5
CWE-862
Published
Advisory Summary

CVE-2019-16097 is a MODERATE (CVSS 6.5) missing authorization vulnerability (CWE-862: Missing Authorization) affecting Github.com/goharbor/harbor libraries in the Go ecosystem. The issue involves missing authorization in harbor. Remediation is available by upgrading affected packages to version 1.9.0-rc1.

CVE-2019-16097 at a Glance

CVE Identifier CVE-2019-16097
GHSA Identifier GHSA-9wvh-ff5f-xjpj
Severity MODERATE
CVSS v3.1 Base Score 6.5
CWE Classification CWE-862: Missing Authorization
Affected Product Github.com/goharbor/harbor
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 6.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2019-16097

To remediate this vulnerability, upgrade all affected Github.com/goharbor/harbor dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/goharbor/harbor fixed: 1.9.0-rc1
Upgrade github.com/goharbor/harbor to 1.9.0-rc1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/goharbor/harbor

How to Check if You Are Affected

To determine whether your application is affected by CVE-2019-16097, inspect your project dependencies for Github.com/goharbor/harbor:

inspect dependencies for github.com/goharbor/harbor

Analyze the terminal output to locate any version of Github.com/goharbor/harbor in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.0-rc1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-862: Missing Authorization, where the product does not perform an authorization check when an actor attempts to access a resource or perform an action. In Github.com/goharbor/harbor, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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. This is fixed in 1.9.0-rc1.

CVE-2019-16097 Affected Github.com/goharbor/harbor Versions

1 component(s)
Fixed Versions:
1.9.0-rc1
Product / Package Ecosystem Affected Versions Fixed Version
github.com/goharbor/harbor
Go
≥ 1.7.0
< 1.9.0-rc1
1.9.0-rc1

References

Frequently Asked Questions

What is CVE-2019-16097?
CVE-2019-16097 is a security vulnerability in Github.com/goharbor/harbor involving Missing Authorization in Harbor under CWE-862: Missing Authorization.
Which Github.com/goharbor/harbor versions are affected?
Affected versions include releases prior to 1.9.0-rc1 across affected packages: github.com/goharbor/harbor.
What version fixes CVE-2019-16097?
Upgrading to 1.9.0-rc1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/goharbor/harbor affected?
Yes, github.com/goharbor/harbor is affected in releases prior to 1.9.0-rc1. Upgrade your dependency to 1.9.0-rc1 or later.
What is the CVSS score of CVE-2019-16097?
CVE-2019-16097 has a CVSS v3.1 base score of 6.5 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N.
What CWE is associated with CVE-2019-16097?
CVE-2019-16097 is classified under CWE-862: Missing Authorization (The product does not perform an authorization check when an actor attempts to access a resource or perform an action.).
How can I check Go dependencies for CVE-2019-16097?
Run the dependency tree command: 'inspect dependencies for github.com/goharbor/harbor'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-9wvh-ff5f-xjpj",
  "modified" : "2021-05-17T16:40:42Z",
  "published" : "2022-02-15T01:57:18Z",
  "aliases" : [ "CVE-2019-16097" ],
  "summary" : "Missing Authorization in Harbor",
  "details" : "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. This is fixed in 1.9.0-rc1.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/goharbor/harbor"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "1.7.0"
      }, {
        "fixed" : "1.9.0-rc1"
      } ]
    } ],
    "database_specific" : {
      "last_known_affected_version_range" : "<= 1.8.9"
    }
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-16097"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/releases/tag/v1.7.6"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/goharbor/harbor/releases/tag/v1.8.3"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ianxtianxt/CVE-2019-16097"
  }, {
    "type" : "WEB",
    "url" : "https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097"
  }, {
    "type" : "WEB",
    "url" : "http://www.vmware.com/security/advisories/VMSA-2019-0015.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-862" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2021-05-17T16:40:42Z",
    "nvd_published_at" : null
  }
}