CVE-2023-45823 Arbitrary file read in Artifact Hub
Attackers can read arbitrary internal files via symbolic links in indexed repositories, potentially leaking sensitive information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-45823?
CVE-2023-45823 is a high-severity path traversal vulnerability in artifacthub hub, published on 19 Oct 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-22
Which versions are affected by CVE-2023-45823?
3 open source packages ship an affected version, including github.com/artifacthub/hub. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/artifacthub/hub Go | All versions | 1.16.0 |
github.com/artifacthub/hub Go | All versions | 1.16.0 |
github.com/artifacthub/hub Go | All versions | 1.16.0 |
Products include Artifacthub Hub.
How do I fix CVE-2023-45823?
Upgrade github.com/artifacthub/hub to 1.16.0 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2023-45823 being exploited?
There is no known exploitation of CVE-2023-45823 in the wild and no public exploit code.
Other vulnerabilities in artifacthub hub
Sources
Also known as GHSA-hmq4-c2r4-5q8h, GO-2023-2136.