CVE-2023-45821 json
Incorrect Docker Hub registry check in Artifact Hub
published 2023-10-19 3 y ago modified 2026-06-17 4 mo ago also GHSA-g6pq-x539-7w4j , GO-2023-2135 , EUVD-2023-2736
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 15%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/artifacthub/hub 1.16.0
- artifacthub hub 1.16.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.24% chance of exploitation in the next 30 days, higher than 15% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| NVD | 3.1 | 6.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/artifacthub/hub | <1.16.0 |
1.16.0 |
Affected products
- artifacthub hub
Classification
- Weakness
-
- CWE-494 Download of Code Without Integrity Check
References
-
github.com
/artifacthub/hub/security/advisories/GHSA-g6pq-x539-7w4j
web, third-party-advisory, advisory
-
artifacthub.io
/packages/helm/artifact-hub/artifact-hub?modal=changelog&version=1.16.0
web, product
-
nvd.nist.gov
/vuln/detail/CVE-2023-45821
advisory
-
github.com
/artifacthub/hub
package
Sources
- CVE List CVE-2023-45821
- GitHub Advisory GHSA-g6pq-x539-7w4j
- NVD CVE-2023-45821
- OSV GO-2023-2135
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.