{"answers":{"affected":"3 open source packages ship an affected version, including github.com/artifacthub/hub. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-45821 in the wild and no public exploit code.","fix":"Upgrade github.com/artifacthub/hub to 1.16.0 or later.","what":"CVE-2023-45821 is a medium-severity vulnerability in artifacthub hub, published on 19 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-45821 and fix it if it is affected.\n\nWhat it is: CVE-2023-45821 is a medium-severity vulnerability in artifacthub hub, published on 19 Oct 2023. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-45821 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/artifacthub/hub (Go): affected all versions; fixed in 1.16.0\n- github.com/artifacthub/hub (Go): affected all versions; fixed in 1.16.0\n- github.com/artifacthub/hub (Go): affected all versions; fixed in 1.16.0\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-2023-45821/ (Markdown: https://insights.sbomify.com/CVE-2023-45821/index.md)","id":"CVE-2023-45821","markdown":"https://insights.sbomify.com/CVE-2023-45821/index.md","name":"CVE-2023-45821","record":{"aliases":["GHSA-g6pq-x539-7w4j","GO-2023-2135"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["data_read","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Artifact Hub","requires_auth":"low_privilege","summary":"Attackers can hijack Docker Hub credentials by spoofing a domain ending in docker.io, potentially exposing read-only public content access.","user_interaction":"not_required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"hub","vendor":"artifacthub"}],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L","version":"3.1"},"cwes":[{"id":"CWE-494","name":"Download of Code Without Integrity Check"}],"description":"Artifact Hub is a web-based application that enables finding, installing, and publishing packages and configurations for CNCF projects. During a security audit of Artifact Hub's code base a security researcher identified a bug in which the `registryIsDockerHub` function was only checking that the registry domain had the `docker.io` suffix. Artifact Hub allows providing some Docker credentials that are used to increase the rate limit applied when interacting with the Docker Hub registry API to read publicly available content. Due to the incorrect check described above, it'd be possible to hijack those credentials by purchasing a domain which ends with `docker.io` and deploying a fake OCI registry on it. \u003chttps://artifacthub.io/\u003e uses some credentials that only have permissions to read public content available in the Docker Hub. However, even though credentials for private repositories (disabled on `artifacthub.io`) are handled in a different way, other Artifact Hub deployments could have been using them for a different purpose. This issue has been resolved in version `1.16.0`. Users are advised to upgrade. There are no known workarounds for this vulnerability.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Incorrect Docker Hub registry check in Artifact Hub","id":"CVE-2023-45821","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"security_feature_bypass","year":"2023"},"n_packages":3,"n_references":2,"next":{"headline":"Unsafe rego built-in allowed in Artifact Hub","id":"CVE-2023-45822"},"packages":[{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":null,"source":"GHSA-g6pq-x539-7w4j"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":"pkg:golang/github.com/artifacthub/hub","source":"GHSA-g6pq-x539-7w4j"},{"ecosystem":"Go","fixed":["1.16.0"],"introduced":["0"],"last_affected":[],"package":"github.com/artifacthub/hub","purl":"pkg:golang/github.com/artifacthub/hub","source":"GO-2023-2135"}],"prev":{"headline":"Directus crashes on invalid WebSocket message","id":"CVE-2023-45820"},"products":["hub"],"published":"2023-10-19","related":[{"cvss_score":7.5,"headline":"Arbitrary file read in Artifact Hub","id":"CVE-2023-45823","kev_date_added":null,"published":"2023-10-19"},{"cvss_score":3.7,"headline":"Unsafe rego built-in allowed in Artifact Hub","id":"CVE-2023-45822","kev_date_added":null,"published":"2023-10-19"}],"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)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-12","vendors":["artifacthub"]},"summary":"Attackers can hijack Docker Hub credentials by spoofing a domain ending in docker.io, potentially exposing read-only public content access.","url":"https://insights.sbomify.com/CVE-2023-45821/"}