Ecosyste.ms: Advisories
An open API service providing security vulnerability metadata for many open source software ecosystems.
Security Advisories: GSA_kwCzR0hTQS1obXE0LWMycjQtNXE4aM4AA2kJ
Artifact Hub arbitrary file read vulnerability
Impact
During a security audit of Artifact Hub's code base, a security researcher at OffSec 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.
Patches
This issue has been resolved in version 1.16.0.
Permalink: https://github.com/advisories/GHSA-hmq4-c2r4-5q8hJSON: https://advisories.ecosyste.ms/api/v1/advisories/GSA_kwCzR0hTQS1obXE0LWMycjQtNXE4aM4AA2kJ
Source: GitHub Advisory Database
Origin: Unspecified
Severity: High
Classification: General
Published: about 1 year ago
Updated: about 1 year ago
CVSS Score: 7.5
CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Identifiers: GHSA-hmq4-c2r4-5q8h, CVE-2023-45823
References:
- https://github.com/artifacthub/hub/security/advisories/GHSA-hmq4-c2r4-5q8h
- https://artifacthub.io/packages/helm/artifact-hub/artifact-hub?modal=changelog&version=1.16.0
- https://nvd.nist.gov/vuln/detail/CVE-2023-45823
- https://github.com/advisories/GHSA-hmq4-c2r4-5q8h
Blast Radius: 1.0
Affected Packages
go:github.com/artifacthub/hub
Dependent packages: 0Dependent repositories: 0
Downloads:
Affected Version Ranges: < 1.16.0
Fixed in: 1.16.0
All affected versions: 0.1.0, 0.2.0, 0.3.0, 0.4.0, 0.5.0, 0.6.0, 0.7.0, 0.8.0, 0.9.0, 0.10.0, 0.11.0, 0.12.0, 0.13.0, 0.14.0, 0.15.0, 0.16.0, 0.17.0, 0.18.0, 0.19.0, 0.20.0, 1.0.0, 1.1.0, 1.1.1, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 1.8.0, 1.9.0, 1.10.0, 1.11.0, 1.12.0, 1.13.0, 1.14.0, 1.15.0
All unaffected versions: 1.16.0, 1.17.0, 1.18.0, 1.19.0, 1.20.0