Executive brief
HashiCorp go-getter is a software library used by various applications to download files and directories from the internet or internal repositories. A security flaw in this library allows an attacker to read sensitive files from the server or computer running the software by providing a specially crafted web address (URL). This could lead to the exposure of private configuration files, credentials, or other confidential data stored on the affected system.
Technical details
A vulnerability in HashiCorp's go-getter library (v1.x branch) stems from improper validation of Git URLs, leading to argument injection. When a Git URL is provided without a specific reference, the library attempts to determine the remote repository's HEAD by passing arguments to the local Git binary. An attacker can craft a malicious URL that injects additional Git arguments, which can be leveraged to read arbitrary files from the local filesystem where the library is executing. This issue is categorized as a path traversal (CWE-22) and information exposure (CWE-200) flaw. The vulnerability is fixed in version 1.8.6; the v2 branch of the library is not affected.
Affected products
- HashiCorp go-getter < 1.8.6
- Red Hat Red Hat Trusted Artifact Signer 1.3
- Red Hat Red Hat OpenShift Container Platform 4 4.16, 4.17, 4.18, 4.19, 4.20, 4.21
Timeline
- 2026-04-09: disclosed: Initial disclosure by HashiCorp
- 2026-04-09: patched: Fixed in go-getter v1.8.6
- 2026-06-08: advisory: Red Hat issued security advisory RHSA-2026:24478
References
- https://discuss.hashicorp.com/t/hcsec-2026-04-go-getter-may-allow-to-arbitrary-filesystem-reads-through-git-operations/77311
- https://access.redhat.com/errata/RHSA-2026:24478
- https://access.redhat.com/security/cve/CVE-2026-4660
- https://bugzilla.redhat.com/show_bug.cgi?id=2456909
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-4660.json