Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2019-16097

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2019-16097
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 10:36 UTC · Revision 1

Source evidence

CVE-2019-16097

core-osv · Original source

Published 8 Sept 2019, 16:15 UTC

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.

osv:CVE-2019-16097
Complete source record
{
  "id": "a2ac75a902eb7bd689d08198031e9737ab7a67a06e8dc35003fb619f6af27027",
  "url": "https://osv.dev/vulnerability/CVE-2019-16097",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2019-16097",
    "summary": "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.",
    "evidence": "osv:CVE-2019-16097",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2019-16097",
      "aliases": [
        "CVE-2019-16097",
        "GHSA-9wvh-ff5f-xjpj",
        "GO-2022-0818"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/goharbor/harbor",
              "type": "GIT",
              "events": [
                {
                  "introduced": "8017a20e0c04a66367d71d6a9ea80c8430ee51ef"
                },
                {
                  "last_affected": "3ab5d5f0e55d905f5651ccc6c08ada719c26eb90"
                },
                {
                  "fixed": "b6db8a8a106259ec9a2c48be8a380cb3b37cf517"
                },
                {
                  "fixed": "afb558e7bcab81e98e56036f1e493cb5a3823a53"
                },
                {
                  "fixed": "220e3dee88b561bd4a4a15bc6d0aaa83d63638b0"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0-NA"
                      },
                      {
                        "last_affected": "1.7.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0-rc1"
                      },
                      {
                        "last_affected": "1.7.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.0-rc2"
                      },
                      {
                        "last_affected": "1.7.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.1"
                      },
                      {
                        "last_affected": "1.7.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.2:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.2"
                      },
                      {
                        "last_affected": "1.7.2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.3:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.3"
                      },
                      {
                        "last_affected": "1.7.3"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.4:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.4"
                      },
                      {
                        "last_affected": "1.7.4"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.7.5:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.7.5"
                      },
                      {
                        "last_affected": "1.7.5"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.0:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.0-NA"
                      },
                      {
                        "last_affected": "1.8.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.0-rc1"
                      },
                      {
                        "last_affected": "1.8.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.0:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.0-rc2"
                      },
                      {
                        "last_affected": "1.8.0-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.1:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.1"
                      },
                      {
                        "last_affected": "1.8.1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.2:-:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.2-NA"
                      },
                      {
                        "last_affected": "1.8.2-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.2:rc2:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.2-rc2"
                      },
                      {
                        "last_affected": "1.8.2-rc2"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.8.2:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.8.2-rc1"
                      },
                      {
                        "last_affected": "1.8.2-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:harbor:1.9.0:rc1:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "1.9.0-rc1"
                      },
                      {
                        "last_affected": "1.9.0-rc1"
                      }
                    ],
                    "source": "CPE_STRING"
                  },
                  {
                    "range": [
                      {
                        "fixed": "b6db8a8a106259ec9a2c48be8a380cb3b37cf517"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  },
                  {
                    "range": [
                      {
                        "fixed": "afb558e7bcab81e98e56036f1e493cb5a3823a53"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.7.6"
                  },
                  {
                    "range": [
                      {
                        "fixed": "220e3dee88b561bd4a4a15bc6d0aaa83d63638b0"
                      }
                    ],
                    "source": "REFERENCES_TAG",
                    "original_tag": "v1.8.3"
                  }
                ]
              }
            }
          ],
          "versions": [
            "1.7.0-NA",
            "1.7.0-rc1",
            "1.7.0-rc2",
            "1.7.1",
            "1.7.2",
            "1.7.3",
            "1.7.4",
            "1.7.5",
            "1.8.0-NA",
            "1.8.0-rc1",
            "1.8.0-rc2",
            "1.8.1",
            "1.8.2-NA",
            "1.8.2-rc1",
            "1.9.0-rc1",
            "v1.7.5",
            "v1.7.4",
            "v1.7.3",
            "v1.7.2",
            "v1.7.1",
            "v1.7.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-16097.json"
          }
        }
      ],
      "modified": "2026-10-20T10:50:45.668442049Z",
      "provider": "osv",
      "references": [
        "https://github.com/goharbor/harbor/releases/tag/v1.7.6",
        "https://github.com/goharbor/harbor/releases/tag/v1.8.3",
        "https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/",
        "https://github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517",
        "https://github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1"
      ],
      "provider_metadata": {}
    },
    "related_cves": [
      {
        "value": "CVE-2019-16097",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 382122,
  "published_at": "2019-09-08T16:15:11.82+00:00"
}