Live threats

All CVEs / Golang

CVE-2017-15041Golang Go

Critical 9.8 No auth needed

Priority
75
CVSS 3.1
9.8
EPSS
7.2%
probability of exploitation in 30 days · percentile 95
Auth required
No
Published
Oct 5, 2017
Updated
Jun 17, 2026
Category
Application · Cross-platform
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

Go before 1.8.4 and 1.9.x before 1.9.1 allows "go get" remote command execution. Using custom domains, it is possible to arrange things so that example.com/pkg1 points to a Subversion repository but example.com/pkg1/pkg2 points to a Git repository. If the Subversion repository includes a Git checkout in its pkg2 directory and some other work is done to ensure the proper ordering of operations, "go get" can be tricked into reusing this Git checkout for the fetch of code from pkg2. If the Subversion repository's Git checkout has malicious commands in .git/hooks/, they will execute on the system running "go get."

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go toolchain < 1.8.4 1.8.4 go get toolchain@v1.8.4
Go toolchain ≥ 1.9.0-0 < 1.9.1 1.9.1 go get toolchain@v1.9.1

Per OSV / GitHub Advisories (GO-2022-0177). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo≤ 1.8.3
golanggo1.9
debiandebian_linux9.0
redhatdeveloper_tools1.0
redhatenterprise_linux_eus7.6
redhatenterprise_linux_eus7.7
redhatenterprise_linux_server7.0
redhatenterprise_linux_server_aus7.6
redhatenterprise_linux_server_aus7.7
redhatenterprise_linux_tus7.6
redhatenterprise_linux_tus7.7

Official sources

References

Links published by the sources. Open them with care.