CVE-2024-6257
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- High
- User interaction
- Required
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
8.4
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
CVE-2024-6257- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
EUVDEUVD-2024-2209
8.4
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
EUVD-2024-2209- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-xfhp-jf8p-mh5w
8.4
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution. When go-getter is performing a Git operation, go-getter will try to clone the given repository in a specified destination. Cloning initializes a git config to the provided destination and if the repository needs to get updated go-getter will pull the new changes .
An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.
- Record
GHSA-xfhp-jf8p-mh5w- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
NVD
8.4
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
CVE-2024-6257- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSVBELL-CVE-2024-6257
8.8
- Record
BELL-CVE-2024-6257- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSV
8.4
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
CVE-2024-6257- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
Show 10 moreShow less
OSVDEBIAN-CVE-2024-6257
8.8
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
DEBIAN-CVE-2024-6257- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-05
OSVGHSA-xfhp-jf8p-mh5w
8.4
HashiCorp go-getter Vulnerable to Code Execution On Git Update Via Git Config Manipulation
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution. When go-getter is performing a Git operation, go-getter will try to clone the given repository in a specified destination. Cloning initializes a git config to the provided destination and if the repository needs to get updated go-getter will pull the new changes .
An attacker may alter the Git config after the cloning step to set an arbitrary Git configuration to achieve code execution.
- Record
GHSA-xfhp-jf8p-mh5w- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Weakness
- CWE-77
- Updated
- 2026-11-02
OSVROOT-APP-GOBINARY-CVE-2024-6257
8.4
CVE-2024-6257 in github.com/hashicorp/go-getter - Patched by Root
Root has patched CVE-2024-6257 in the github.com/hashicorp/go-getter package for Root:Go. Multiple fixed versions available.
- Record
ROOT-APP-GOBINARY-CVE-2024-6257- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2024-6257
8.4
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
UBUNTU-CVE-2024-6257- CVSS 3.1
- 8.4 High
CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:H/A:H - CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVAZL-42982 No score
CVE-2024-6257 affecting package terraform for versions less than 1.3.2-17
HashiCorp’s go-getter library can be coerced into executing Git update on an existing maliciously modified Git Configuration, potentially leading to arbitrary code execution.
- Record
AZL-42982- Updated
- 2026-11-02
OSVGO-2024-2948 No score
Code Execution on Git update in github.com/hashicorp/go-getter
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.
- Record
GO-2024-2948- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0268-1 No score
Security update for trivy
trivy was updated to fix the following issues:
Update to version 0.54.1:
- fix(flag): incorrect behavior for deprected flag
--clear-cache[backport: release/v0.54] (#7285) - fix(java): Return error when trying to find a remote pom to avoid segfault [backport: release/v0.54] (#7283)
- fix(plugin): do not call GitHub content API for releases and tags [backport: release/v0.54] (#7279)
- docs: update ecosystem page reporting with plopsec.com app (#7262)
- feat(vex): retrieve VEX attestations from OCI registries (#7249)
- feat(sbom): add image labels into
SPDXandCycloneDXreports (#7257) - refactor(flag): return error if both
--download-db-onlyand--download-java-db-onlyare specified (#7259) - fix(nodejs): detect direct dependencies when using
latestversion for filesyarn.lock+package.json(#7110) - chore: show VEX notice for OSS maintainers in CI environments (#7246)
- feat(vuln): add
--pkg-relationships(#7237) - docs: show VEX cli pages + update config file page for VEX flags (#7244)
- fix(dotnet): show
nuget package dir not foundlog only when checkingnugetpackages (#7194) - feat(vex): VEX Repository support (#7206)
- fix(secret): skip regular strings contain secret patterns (#7182)
- feat: share build-in rules (#7207)
- fix(report): hide empty table when all secrets/license/misconfigs are ignored (#7171)
- fix(cli): error on missing config file (#7154)
- fix(secret): update length of
hugging-face-access-token(#7216) - feat(sbom): add vulnerability support for SPDX formats (#7213)
- fix(secret): trim excessively long lines (#7192)
- chore(vex): update subcomponents for CVE-2023-42363/42364/42365/42366 (#7201)
- fix(server): pass license categories to options (#7203)
- feat(mariner): Add support for Azure Linux (#7186)
- docs: updates config file (#7188)
- refactor(fs): remove unused field for CompositeFS (#7195)
- fix: add missing platform and type to spec (#7149)
- feat(misconf): enabled China configuration for ACRs (#7156)
- fix: close file when failed to open gzip (#7164)
- docs: Fix PR documentation to use GitHub Discussions, not Issues (#7141)
- docs(misconf): add info about limitations for terraform plan json (#7143)
- chore: add VEX for Trivy images (#7140)
- chore: add VEX document and generator for Trivy (#7128)
- fix(misconf): do not evaluate TF when a load error occurs (#7109)
- feat(cli): rename
--vuln-typeflag to--pkg-typesflag (#7104) - refactor(secret): move warning about file size after
IsBinarycheck (#7123) - feat: add openSUSE tumbleweed detection and scanning (#6965)
- test: add missing advisory details for integration tests database (#7122)
- fix: Add dependencyManagement exclusions to the child exclusions (#6969)
- fix: ignore nodes when listing permission is not allowed (#7107)
- fix(java): use
go-mvn-versionto removePackageduplicates (#7088) - refactor(secret): add warning about large files (#7085)
- feat(nodejs): add license parser to pnpm analyser (#7036)
- refactor(sbom): add sbom prefix + filepaths for decode log messages (#7074)
- feat: add
log.FilePath()function for logger (#7080) - chore: bump golangci-lint from v1.58 to v1.59 (#7077)
- perf(debian): use
bytes.IndexinemptyLineSplitto cut allocation (#7065) - refactor: pass DB dir to trivy-db (#7057)
- docs: navigate to the release highlights and summary (#7072)
Update to version 0.53.0 (bsc#1227022, CVE-2024-6257):
- feat(conda): add licenses support for
environment.ymlfiles (#6953) - fix(sbom): fix panic when scanning SBOM file without root component into SBOM format (#7051)
- feat: add memory cache backend (#7048)
- fix(sbom): use package UIDs for uniqueness (#7042)
- feat(php): add installed.json file support (#4865)
- docs: ✨ Updated ecosystem docs with reference to new community app (#7041)
- fix: use embedded when command path not found (#7037)
- refactor: use google/wire for cache (#7024)
- fix(cli): show info message only when --scanners is available (#7032)
- chore:…
- Record
openSUSE-SU-2024:0268-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:0269-1 No score
Security update for trivy
trivy was updated to fix the following issues:
Update to version 0.54.1:
- fix(flag): incorrect behavior for deprected flag
--clear-cache[backport: release/v0.54] (#7285) - fix(java): Return error when trying to find a remote pom to avoid segfault [backport: release/v0.54] (#7283)
- fix(plugin): do not call GitHub content API for releases and tags [backport: release/v0.54] (#7279)
- release: v0.54.0 [main] (#7075)
- docs: update ecosystem page reporting with plopsec.com app (#7262)
- feat(vex): retrieve VEX attestations from OCI registries (#7249)
- feat(sbom): add image labels into
SPDXandCycloneDXreports (#7257) - refactor(flag): return error if both
--download-db-onlyand--download-java-db-onlyare specified (#7259) - fix(nodejs): detect direct dependencies when using
latestversion for filesyarn.lock+package.json(#7110) - chore: show VEX notice for OSS maintainers in CI environments (#7246)
- feat(vuln): add
--pkg-relationships(#7237) - docs: show VEX cli pages + update config file page for VEX flags (#7244)
- fix(dotnet): show
nuget package dir not foundlog only when checkingnugetpackages (#7194) - feat(vex): VEX Repository support (#7206)
- fix(secret): skip regular strings contain secret patterns (#7182)
- feat: share build-in rules (#7207)
- fix(report): hide empty table when all secrets/license/misconfigs are ignored (#7171)
- fix(cli): error on missing config file (#7154)
- fix(secret): update length of
hugging-face-access-token(#7216) - feat(sbom): add vulnerability support for SPDX formats (#7213)
- fix(secret): trim excessively long lines (#7192)
- chore(vex): update subcomponents for CVE-2023-42363/42364/42365/42366 (#7201)
- fix(server): pass license categories to options (#7203)
- feat(mariner): Add support for Azure Linux (#7186)
- docs: updates config file (#7188)
- refactor(fs): remove unused field for CompositeFS (#7195)
- fix: add missing platform and type to spec (#7149)
- feat(misconf): enabled China configuration for ACRs (#7156)
- fix: close file when failed to open gzip (#7164)
- docs: Fix PR documentation to use GitHub Discussions, not Issues (#7141)
- docs(misconf): add info about limitations for terraform plan json (#7143)
- chore: add VEX for Trivy images (#7140)
- chore: add VEX document and generator for Trivy (#7128)
- fix(misconf): do not evaluate TF when a load error occurs (#7109)
- feat(cli): rename
--vuln-typeflag to--pkg-typesflag (#7104) - refactor(secret): move warning about file size after
IsBinarycheck (#7123) - feat: add openSUSE tumbleweed detection and scanning (#6965)
- test: add missing advisory details for integration tests database (#7122)
- fix: Add dependencyManagement exclusions to the child exclusions (#6969)
- fix: ignore nodes when listing permission is not allowed (#7107)
- fix(java): use
go-mvn-versionto removePackageduplicates (#7088) - refactor(secret): add warning about large files (#7085)
- feat(nodejs): add license parser to pnpm analyser (#7036)
- refactor(sbom): add sbom prefix + filepaths for decode log messages (#7074)
- feat: add
log.FilePath()function for logger (#7080) - chore: bump golangci-lint from v1.58 to v1.59 (#7077)
- perf(debian): use
bytes.IndexinemptyLineSplitto cut allocation (#7065) - refactor: pass DB dir to trivy-db (#7057)
- docs: navigate to the release highlights and summary (#7072)
Update to version 0.53.0 (bsc#1227022, CVE-2024-6257):
- release: v0.53.0 [main] (#6855)
- feat(conda): add licenses support for
environment.ymlfiles (#6953) - fix(sbom): fix panic when scanning SBOM file without root component into SBOM format (#7051)
- feat: add memory cache backend (#7048)
- fix(sbom): use package UIDs for uniqueness (#7042)
- feat(php): add installed.json file support (#4865)
- docs: ✨ Updated ecosystem docs with reference to new community app (#7041)
- fix: use embedded when command path not found (#7037)
- refactor: use google/wire for cache (#7024)
- fix(cli): show…
- Record
openSUSE-SU-2024:0269-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14183-1 No score
trivy-0.53.0-1.1 on GA media
These are all security issues fixed in the trivy-0.53.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14183-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:14190-1 No score
conftest-0.54.0-1.1 on GA media
These are all security issues fixed in the conftest-0.54.0-1.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:14190-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
github.com/hashicorp/go-getterGo |
before 1.7.5 | 1.7.5 |
terraformAzure Linux:2 |
before 1.3.2-17 | 1.3.2-17 |
grypeAlpaquita:stream |
0.100.0-r0 up to 0.114.0-r0 | 0.114.0-r0 |
golang-github-hashicorp-go-getterDebian:12 |
All versions, plus listed versions 1.4.1-11.8.9-1 |
None known |
golang-github-hashicorp-go-getterDebian:14 |
before 1.8.9-1, plus listed versions 0.0~git20160316.0.575ec4e-11.4.0-11.4.1-1 |
1.8.9-1 |
github.com/hashicorp/go-getterRoot:Go |
before v1.7.4-aikido.1 | v1.7.4-aikido.1 |
rootio-github.com/hashicorp/go-getterRoot:Go |
before v1.7.4-root.io.1 | v1.7.4-root.io.1 |
golang-github-hashicorp-go-getterUbuntu:18.04:LTS |
All versions, plus listed versions 0.0~git20160316.0.575ec4e-1 |
None known |
golang-github-hashicorp-go-getterUbuntu:20.04:LTS |
All versions, plus listed versions 0.0~git20160316.0.575ec4e-11.4.0-11.4.1-1 |
None known |
golang-github-jesseduffield-go-getterUbuntu:20.04:LTS |
All versions, plus listed versions 0.0~git20180822.906e156-3 |
None known |
Show 11 moreShow less
| Package | Affected | Fixed |
|---|---|---|
golang-github-hashicorp-go-getterUbuntu:22.04:LTS |
All versions, plus listed versions 1.4.1-1 |
None known |
golang-github-jesseduffield-go-getterUbuntu:22.04:LTS |
All versions, plus listed versions 0.0~git20180822.906e156-4 |
None known |
golang-github-hashicorp-go-getterUbuntu:24.04:LTS |
All versions, plus listed versions 1.4.1-1 |
None known |
golang-github-jesseduffield-go-getterUbuntu:24.04:LTS |
All versions, plus listed versions 0.0~git20180822.906e156-5 |
None known |
golang-github-hashicorp-go-getterUbuntu:25.10 |
All versions, plus listed versions 1.4.1-1 |
None known |
trivySUSE:Package Hub 15 SP5 From an advisory covering 3 CVEs |
before 0.54.1-bp155.2.3.1 | 0.54.1-bp155.2.3.1 |
trivyopenSUSE:Leap 15.5 From an advisory covering 3 CVEs |
before 0.54.1-bp155.2.3.1 | 0.54.1-bp155.2.3.1 |
trivySUSE:Package Hub 15 SP6 From an advisory covering 3 CVEs |
before 0.54.1-bp156.2.3.1 | 0.54.1-bp156.2.3.1 |
trivyopenSUSE:Leap 15.6 From an advisory covering 3 CVEs |
before 0.54.1-bp156.2.3.1 | 0.54.1-bp156.2.3.1 |
trivyopenSUSE:Tumbleweed |
before 0.53.0-1.1 | 0.53.0-1.1 |
conftestopenSUSE:Tumbleweed |
before 0.54.0-1.1 | 0.54.0-1.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected | ||
| affected, facts | OSV | |
| aliases, published | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2024-6257 is a high vulnerability (CVSS 8.4) in Hashicorp Go-getter, published June 25, 2024. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.98%, the 62nd percentile. Fixed in github.com/hashicorp/go-getter 1.7.5.
References
discuss.hashicorp.com/t/hcsec-2024-13-hashicorp-go-getter-vulnerable-to-code-execution-on-git-update-via-git-config-manipulation/68081
nvd.nist.gov/vuln/detail/CVE-2024-6257
github.com/hashicorp/go-getter/commit/268c11cae8cf0d9374783e06572679796abe9ce9
github.com/advisories/GHSA-xfhp-jf8p-mh5w
docs.bell-sw.com/security/cves/CVE-2024-6257
github.com/CVEProject/cvelistV5/tree/main/cves/2024/6xxx/CVE-2024-6257.json
Show 12 moreShow less
github.com/hashicorp/go-getter
security-tracker.debian.org/tracker/CVE-2024-6257
ubuntu.com/security/CVE-2024-6257
cve.org/CVERecord?id=CVE-2024-6257
github.com/hashicorp/go-getter/pull/497
lists.opensuse.org/archives/list/[email protected]/thread/6XAQOEGAUMX4BBTNYDJHKA4H3VD5H2PQ
bugzilla.suse.com/1224781
bugzilla.suse.com/1227022
suse.com/security/cve/CVE-2023-42363
suse.com/security/cve/CVE-2024-35192
suse.com/security/cve/CVE-2024-6257
lists.opensuse.org/archives/list/[email protected]/thread/OQ7DWO7D4FBUA7VBLBTF3YWOOT4647TB
Left out here: the rest of 2 source descriptions. The JSON record has them.