5.4medium
Incorrect Docker Hub registry check in Artifact Hub
- Severity
- 5.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.24% (higher than 16% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-g6pq-x539-7w4jGO-2023-2135
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| artifacthub hub | < 1.16.0, before 1.16.0 | CVE List, NVD |
| github.com/artifacthub/hub (Go) | before 1.16.0 | GitHub Advisory Database, Go Vulnerability Database |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:L |
| NVD | 6.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Impact
During a security audit of Artifact Hub's code base, a security researcher at OffSec 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.
Patches
This issue has been resolved in version 1.16.0.
Go Vulnerability Database
Artifact Hub has Incorrect Docker Hub registry check in github.com/artifacthub/hub
NVD (es)
Artifact Hub es una aplicación basada en web que permite buscar, instalar y publicar paquetes y configuraciones para proyectos CNCF. Durante una auditoría de seguridad del código base de Artifact Hub, un investigador de seguridad identificó un error en el que la función "registryIsDockerHub" solo verificaba que el dominio de registro tuviera el sufijo "docker.io". Artifact Hub permite proporcionar algunas credenciales de Docker que se utilizan para aumentar el límite de velocidad aplicado al interactuar con la API de registro de Docker Hub para leer contenido disponible públicamente. Debido a la verificación incorrecta descrita anteriormente, sería posible secuestrar esas credenciales comprando un dominio que termine con `docker.io` e implementando un registro OCI falso en él. utiliza algunas credenciales que solo tienen permisos para leer contenido público disponible en Docker Hub. Sin embargo, aunque las credenciales para repositorios privados (deshabilitadas en `artifacthub.io`) se manejan de una manera diferente, otras implementaciones de Artifact Hub podrían haberlas usado para un propósito diferente. Este problema se resolvió en la versión `1.16.0`. Se recomienda a los usuarios que actualicen. No se conocen workarounds para esta vulnerabilidad.
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
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-45821 changed 2024-09-12 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-g6pq-x539-7w4j changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2023-2135 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2023-45821 changed 2026-06-17 | Public domain |