GitHub Advisoryadvisory · Go

GHSA-hmq4-c2r4-5q8h Artifact Hub arbitrary file read vulnerability

HIGH Published 2023-10-19 Modified 2023-10-19 Official page ↗
Aliases
CVE-2023-45823
Ecosystem
Go
Packages
github.com/artifacthub/hub
Severity
High
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Weaknesses
CWE-22
Reviewed
2023-10-19

Affected packages

• Go github.com/artifacthub/hub: < 1.16.0 → fixed in 1.16.0

Description

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.

Related

Alias · CVE (1)

  • CVE-2023-45823 Artifact Hub is a web-based application that enables finding, installing, and publishing packages and configurations for CNCF projects. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References