Junglewise Threat Intelligence

CVE-2026-4660: HashiCorp go-getter arbitrary file read via argument injection in Git URLs

CVE-2026-4660 · Severity: high · CVSS 7.5 · Published 2026-04-09

Technologies: Red Hat Trusted Artifact Signer, Red Hat OpenShift Container Platform 4, github.com/hashicorp/go-getter (Go). Vendors: Red Hat, Go, HashiCorp.

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

Related threats