Advisory

GHSA-hmq4-c2r4-5q8h

Also known as: CVE-2023-45823, GO-2023-2136

Summary

Artifact Hub arbitrary file read vulnerability

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2023-10-19 17:06 UTC
Modified
2024-08-21 14:57 UTC

Affected packages and fixes

github.com/artifacthub/hub

Go · All systems

Affected

  • introduced 0, fixed 1.16.0 (semver)

Fixed versions

1.16.0

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences