Insufficient verification of data authenticity in go-getter - CVE-2024-6257

 

Insufficient verification of data authenticity in go-getter - CVE-2024-6257

Published: August 8, 2024


Vulnerability identifier: #VU95528
CSH Severity: Low
CVSS v4: 8.5 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-6257
CWE-ID: CWE-345
Exploitation vector: Local access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a local user to compromise the affected system.

The vulnerability exists due to the way the Git config is handled by the library. 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.


Affected software

go-getter
Fedora
opentofu
IBM Cloud Pak for Watson AIOps

How to mitigate CVE-2024-6257

Install updates from vendor's website.

go-getter - update to 1.7.5
opentofu - addressed in versions 1.7.3-3.fc39, 1.7.3-3.fc40, 1.7.3-3.fc41, 1.8.0-1.fc39, 1.8.0-1.fc40
IBM Cloud Pak for Watson AIOps - update to 4.8.0

External References

Related Security Bulletins