{"answers":{"affected":"3 open source packages ship an affected version, including github.com/goharbor/harbor. It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-16097 exists.","fix":"Upgrade github.com/goharbor/harbor to 1.9.0-rc1 or later.","what":"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."},"fix_prompt":"Check this codebase for CVE-2019-16097 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2019-16097 exists.\n\nAffected packages and fixed versions:\n- github.com/goharbor/harbor (Go): affected from 1.7.0; fixed in 1.9.0-rc1\n- github.com/goharbor/harbor (Go): affected from 1.7.0; fixed in 1.9.0-rc1\n- github.com/goharbor/harbor (Go): affected from 1.7.0; fixed in 1.9.0-rc1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2019-16097/ (Markdown: https://insights.sbomify.com/CVE-2019-16097/index.md)","id":"CVE-2019-16097","markdown":"https://insights.sbomify.com/CVE-2019-16097/index.md","name":"CVE-2019-16097","record":{"aliases":["GHSA-9wvh-ff5f-xjpj","GO-2022-0818"],"analysis":{"component_type":"server_software","fix_type":"upgrade","impacts":["privilege_escalation"],"network_reachable":"yes","non_default_config":true,"product_category":"Harbor container registry","requires_auth":"low_privilege","summary":"Non-admin users can create admin accounts in Harbor when using DB authentication with self-registration enabled, allowing full system compromise.","user_interaction":"not_required","vuln_class":"privilege_escalation"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"harbor","vendor":"linuxfoundation"}],"cvss":{"score":6.5,"severity":"medium","source":"nvd","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":"2019-09-19","github_poc":6,"max_poc_stars":23,"metasploit":0,"nuclei":1,"refs":[{"date":"2019-09-19T15:12:11Z","kind":"github_poc","ref":"https://github.com/evilAdan0s/CVE-2019-16097","stars":23,"title":"CVE-2019-16097 PoC"},{"date":"2019-09-20T02:03:45Z","kind":"github_poc","ref":"https://github.com/rockmelodies/CVE-2019-16097-batch","stars":5,"title":"CVE-2019-16097-batch"},{"date":"2019-11-14T10:19:47Z","kind":"github_poc","ref":"https://github.com/luckybool1020/CVE-2019-16097","stars":2,"title":"Harbor 未授权创建管理员漏洞原理 docker及poc[基于pocsuite框架]"},{"date":"2019-09-25T02:05:49Z","kind":"github_poc","ref":"https://github.com/dacade/cve-2019-16097","stars":1,"title":"cve-2019-1609"},{"date":"2019-09-22T11:24:28Z","kind":"github_poc","ref":"https://github.com/ianxtianxt/CVE-2019-16097","stars":0,"title":null},{"date":"2019-10-02T16:53:06Z","kind":"github_poc","ref":"https://github.com/theLSA/harbor-give-me-admin","stars":0,"title":"harbor(\u003c1.7.6/1.8.3) privilege escalation (CVE-2019-16097)"},{"date":null,"kind":"nuclei","ref":"http/cves/2019/CVE-2019-16097.yaml","stars":null,"title":"Harbor \u003c=1.82.0 - Privilege Escalation"}],"tier":"weaponised"},"has_fix":true,"headline":"Missing Authorization in Harbor","id":"CVE-2019-16097","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"privilege_escalation","year":"2019"},"n_packages":3,"n_references":6,"next":{"headline":"Privilege escalation in n/a","id":"CVE-2019-16098"},"packages":[{"ecosystem":"Go","fixed":["1.9.0-rc1"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/goharbor/harbor","purl":null,"source":"GHSA-9wvh-ff5f-xjpj"},{"ecosystem":"Go","fixed":["1.9.0-rc1"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"GHSA-9wvh-ff5f-xjpj"},{"ecosystem":"Go","fixed":["1.9.0-rc1"],"introduced":["1.7.0"],"last_affected":[],"package":"github.com/goharbor/harbor","purl":"pkg:golang/github.com/goharbor/harbor","source":"GO-2022-0818"}],"prev":{"headline":"Integer overflow in n/a","id":"CVE-2019-16096"},"products":["n/a"],"published":"2019-09-08","related":[{"cvss_score":9.4,"headline":"Use of hard coded credentials in GoHarbor Harbor","id":"CVE-2026-4404","kev_date_added":null,"published":"2026-03-23"},{"cvss_score":8.8,"headline":"Privilege Escalation in Cloud Native Computing Foundation Harbor","id":"CVE-2019-19023","kev_date_added":null,"published":"2020-03-20"},{"cvss_score":8.8,"headline":"Cross-site Request Forgery (CSRF) in Cloud Native Computing Foundation Harbor","id":"CVE-2019-19025","kev_date_added":null,"published":"2020-03-20"},{"cvss_score":8.6,"headline":"Server-side request forgery in n/a","id":"CVE-2017-17697","kev_date_added":null,"published":"2017-12-15"},{"cvss_score":7.7,"headline":"Harbor fails to validate user permissions while Viewing, updating and deleting Webhook policies","id":"CVE-2022-31666","kev_date_added":null,"published":"2024-11-14"},{"cvss_score":7.7,"headline":"Harbor fails to validate the user permissions when updating tag retention policies","id":"CVE-2022-31670","kev_date_added":null,"published":"2024-11-14"},{"cvss_score":7.5,"headline":"Missing authorization in n/a","id":"CVE-2022-46463","kev_date_added":null,"published":"2023-01-12"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"MIT","name":"Nuclei templates"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","updated":"2024-08-05","vendors":["n/a"]},"summary":"Non-admin users can create admin accounts in Harbor when using DB authentication with self-registration enabled, allowing full system compromise.","url":"https://insights.sbomify.com/CVE-2019-16097/"}