Vulnerability · Published Oct 19, 2023 · Assigned by GitHub_M
CVE-2023-45823Arbitrary file read in Artifact Hub
High 7.5
In plain English
A high-severity path traversal in hub from artifacthub. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 55% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 by using symbolic links in certain kinds of repositories loaded into Artifact Hub, it was possible to read internal files. Artifact Hub indexes content from a variety of sources, including git repositories. When processing git based repositories, Artifact Hub clones the repository and, depending on the artifact kind, reads some files from it. During this process, in some cases, no validation was done to check if the file was a symbolic link. This made possible to read arbitrary files in the system, potentially leaking sensitive information. This issue has been resolved in version `1.16.0`. Users are advised to upgrade. There are no known workarounds for this vulnerability.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Go | github.com/artifacthub/hub | 1.16.0 | GHSA-hmq4-c2r4-5q8h |
| Go | github.com/artifacthub/hub | 1.16.0 | GO-2023-2136 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| artifacthub | hub | < 1.16.0 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N