# CVE-2023-45821: Incorrect Docker Hub registry check in Artifact Hub

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2023-10-19T17:04:50.000Z
- Modified: 2026-06-17T06:29:35.607Z
- Also known as: GHSA-g6pq-x539-7w4j, GO-2023-2135
- Weaknesses: CWE-494
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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. <https://artifacthub.io/> 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.

(As written by CVE List.)

## Affected

- artifacthub hub: < 1.16.0; before 1.16.0
- github.com/artifacthub/hub (Go): before 1.16.0

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L`
- NVD: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`

## References

- <https://github.com/artifacthub/hub/security/advisories/GHSA-g6pq-x539-7w4j> (advisory, third-party-advisory, web)
- <https://artifacthub.io/packages/helm/artifact-hub/artifact-hub?modal=changelog&version=1.16.0> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-45821> (advisory)
- <https://github.com/artifacthub/hub> (package)

## Sources

- CVE List: [CVE-2023-45821](https://www.cve.org/CVERecord?id=CVE-2023-45821), CVE Terms of Use, modified 2024-09-12
- GitHub Advisory Database: [GHSA-g6pq-x539-7w4j](https://github.com/advisories/GHSA-g6pq-x539-7w4j), CC-BY-4.0, modified 2024-08-21
- Go Vulnerability Database: [GO-2023-2135](https://pkg.go.dev/vuln/GO-2023-2135), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2023-45821](https://nvd.nist.gov/vuln/detail/CVE-2023-45821), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-45821 · Whole record: https://cve.day/CVE-2023-45821.json · Rebuilt by cve.day 2026-11-25T22:58:28.947Z
