CVE-2026-4660: HashiCorp's go-getter Library Arbitrary File Read Vulnerability

Summary

09/04/2026
Yes i
High
7.5

CVE-2026-4660: HashiCorp's go-getter library may allow arbitrary file reads. Affects github.com/hashicorp/go-getter versions < 1.8.6. Fixed in 1.8.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The go-getter library by HashiCorp is a Go package designed to facilitate the retrieval of files from various sources, including Git repositories. It is widely used in applications that require fetching and managing remote resources. The library's functionality is crucial for developers who need to automate the process of obtaining files, but it also introduces security risks if not properly managed.

Vulnerability Detail

The vulnerability identified as CVE-2026-4660 affects versions of the go-getter library up to v1.8.5. It allows for arbitrary file reads on the file system during certain git operations when a maliciously crafted URL is used. This could lead to unauthorized access to sensitive files on the server where the application is running. The issue arises from improper validation of input URLs, which can be exploited by attackers to read files outside of the intended scope.

How To Fix

Latest published version: v1.8.10 as of 23 Oct 2026

go get github.com/hashicorp/go-getter@v1.8.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.8.6

This is the first release that contains the fix.

go get github.com/hashicorp/go-getter@v1.8.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate upgrading is not feasible, consider restricting the URLs that can be processed by the go-getter library to trusted sources only. This can help mitigate the risk of exploitation until the library is updated.

Conclusion

The CVE-2026-4660 vulnerability in HashiCorp's go-getter library poses a significant risk by allowing arbitrary file reads through malicious URLs. It is crucial for developers using this library to update to version 1.8.6 or later to protect their applications from potential exploitation.

See every vulnerability recorded for github.com/hashicorp/go-getter →

Share this vulnerability

FAQ

CVE-2026-4660 is a vulnerability in HashiCorp's go-getter library that allows for arbitrary file reads due to improper URL handling.

Versions of the go-getter library up to v1.8.5 are affected by this vulnerability.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

If you cannot update the library right away, restrict the URLs processed by the go-getter library to trusted sources to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for github.com/hashicorp/go-getter.

How To Fix

Latest published version: v1.8.10 as of 23 Oct 2026

go get github.com/hashicorp/go-getter@v1.8.10

Upgrading to it may include breaking changes; the version below is the minimum fixed release for this vulnerability.

If you need the minimum change

1.8.6

This is the first release that contains the fix.

go get github.com/hashicorp/go-getter@v1.8.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback