{"schemaVersion":3,"id":"CVE-2019-16097","aliases":["GHSA-9wvh-ff5f-xjpj","GO-2022-0818"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2019-09-08T15:22:49.000Z","modified":"2024-08-05T01:03:32.654Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.5,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4,"severity":"medium","vector":"AV:N/AC:L/Au:S/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":6.5,"severity":"medium","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","exploitability":7.2,"impact":6,"computed":true}]},"epss":{"probability":0.22273,"percentile":0.97665,"severity":"high","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.16999999999999793,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.22443},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.22273,"percentile":0.97665}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.22443,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.22273,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.22273,"percentile":0.97665}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-862","name":"Missing Authorization","description":"The product does not perform an authorization check when an actor attempts to access a resource or perform an action.","type":"weakness","status":"Incomplete","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/862.html"}],"affected":[{"vendor":"github.com/goharbor","product":"harbor","name":"github.com/goharbor/harbor","label":"harbor","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/goharbor/harbor","purlType":"golang","versions":[{"text":"≥ 1.7.0, < 1.9.0-rc1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 1.7.0, < 1.9.0-rc1","eol":null,"hubHref":null},{"vendor":"linuxfoundation","product":"harbor","name":"harbor","label":"harbor","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"1.7.0","noFixRecorded":false,"fixedIn":null},{"text":"1.7.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"1.7.0:rc2","noFixRecorded":false,"fixedIn":null},{"text":"1.7.1","noFixRecorded":false,"fixedIn":null},{"text":"1.7.2","noFixRecorded":false,"fixedIn":null},{"text":"1.7.3","noFixRecorded":false,"fixedIn":null},{"text":"1.7.4","noFixRecorded":false,"fixedIn":null},{"text":"1.7.5","noFixRecorded":false,"fixedIn":null},{"text":"1.8.0","noFixRecorded":false,"fixedIn":null},{"text":"1.8.0:rc1","noFixRecorded":false,"fixedIn":null},{"text":"1.8.0:rc2","noFixRecorded":false,"fixedIn":null},{"text":"1.8.1","noFixRecorded":false,"fixedIn":null},{"text":"1.8.2","noFixRecorded":false,"fixedIn":null},{"text":"1.8.2:rc1","noFixRecorded":false,"fixedIn":null},{"text":"1.8.2:rc2","noFixRecorded":false,"fixedIn":null},{"text":"1.9.0:rc1","noFixRecorded":false,"fixedIn":null}],"versionsText":"1.7.0 | 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 | 1.8.0:rc1 | 1.8.0:rc2 | 1.8.1 | 1.8.2 | 1.8.2:rc1 | 1.8.2:rc2 | 1.9.0:rc1","eol":{"isEol":true,"eolDate":"2020-09-18T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"1.9","label":"1.9","eolFrom":"2020-09-18T00:00:00.000Z","isLts":false,"isMaintained":false,"latestVersion":"1.9.4"},"product":{"name":"harbor","label":"Harbor","category":"server-app"}},"hubHref":"/vendor/linuxfoundation/harbor"}],"affectedCount":2,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517","label":"github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","WEB","FIX"]},{"url":"https://github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1","label":"github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","WEB"]},{"url":"https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/","label":"unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097","hostname":"unit42.paloaltonetworks.com","tags":["X Refsource MISC","Third Party Advisory"]},{"url":"https://github.com/goharbor/harbor/releases/tag/v1.8.3","label":"github.com/goharbor/harbor/releases/tag/v1.8.3","hostname":"github.com","tags":["X Refsource MISC","Third Party Advisory","WEB"]},{"url":"https://github.com/goharbor/harbor/releases/tag/v1.7.6","label":"github.com/goharbor/harbor/releases/tag/v1.7.6","hostname":"github.com","tags":["X Refsource MISC","Third Party Advisory","WEB"]},{"url":"http://www.vmware.com/security/advisories/VMSA-2019-0015.html","label":"www.vmware.com/security/advisories/VMSA-2019-0015.html","hostname":"www.vmware.com","tags":["X Refsource CONFIRM","Third Party Advisory","WEB"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16097","label":"nvd.nist.gov/vuln/detail/CVE-2019-16097","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/ianxtianxt/CVE-2019-16097","label":"github.com/ianxtianxt/CVE-2019-16097","hostname":"github.com","tags":["WEB"]},{"url":"https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097","label":"unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097","hostname":"unit42.paloaltonetworks.com","tags":["WEB"]},{"url":"https://github.com/advisories/GHSA-9wvh-ff5f-xjpj","label":"github.com/advisories/GHSA-9wvh-ff5f-xjpj","hostname":"github.com","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2019-09-08T15:22:49.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T01:03:32.654Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":30,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T11:39:20.655Z","stale":false,"partial":false}}