Advisory

GO-2024-2948

Also known as: CVE-2024-6257, GHSA-xfhp-jf8p-mh5w

Summary

Code Execution on Git update in github.com/hashicorp/go-getter

Details

A crafted request can execute Git update on an existing maliciously modified Git Configuration. This can potentially lead to arbitrary code execution. When performing a Git operation, the library will try to clone the given repository to a specified destination. Cloning initializes a git config in the provided destination. An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.

Severity

Not rated by the source.

Dates

Published
2024-06-28 18:33 UTC
Modified
2026-02-04 02:53 UTC

Affected packages and fixes

github.com/hashicorp/go-getter

Go · All systems

Affected

  • introduced 0, fixed 1.7.5 (semver)

Fixed versions

1.7.5

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