Advisory

GO-2024-2800

Also known as: CVE-2024-3817, GHSA-q64h-39hv-4cf7

Summary

Argument injection when fetching remote default Git branches in github.com/hashicorp/go-getter

Details

When go-getter is performing a Git operation, go-getter will try to clone the given repository. If a Git reference is not passed along with the Git url, go-getter will then try to check the remote repository's HEAD reference of its default branch by passing arguments to the Git binary on the host it is executing on.

An attacker may format a Git URL in order to inject additional Git arguments to the Git call.

Severity

Not rated by the source.

Dates

Published
2024-05-10 21:39 UTC
Modified
2026-02-04 03:50 UTC

Affected packages and fixes

github.com/hashicorp/go-getter

Go · All systems

Affected

  • introduced 1.5.9, fixed 1.7.4 (semver)

Fixed versions

1.7.4

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: Go Vulnerability Database · CC BY 4.0

Sources & licences