Arbitrary Code Injection Affecting golang-tests package, versions <0:1.24.5-1.amzn2023.0.1


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.02% (3rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-GOLANGTESTS-11335970
  • published30 Jul 2025
  • disclosed29 Jul 2025

Introduced: 29 Jul 2025

NewCVE-2025-4674  (opens in a new tab)
CWE-74  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 golang-tests to version 0:1.24.5-1.amzn2023.0.1 or higher.
This issue was patched in ALAS2023-2025-1104.

NVD Description

Note: Versions mentioned in the description apply only to the upstream golang-tests package and not the golang-tests package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

The go command may execute unexpected commands when operating in untrusted VCS repositories. This occurs when possibly dangerous VCS configuration is present in repositories. This can happen when a repository was fetched via one VCS (e.g. Git), but contains metadata for another VCS (e.g. Mercurial). Modules which are retrieved using the go command line, i.e. via "go get", are not affected.

CVSS Base Scores

version 3.1