Vulnerabilities / CVE-2017-15041

critical

CVE-2017-15041

golang: arbitrary code execution during "go get" or "go get -d"

Published Modified
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat7.5CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, Photon OS. Rated lower by Red Hat (medium), Amazon (medium).

Description

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."

Affected packages and fixed versions

SourcePackageFixed in
Photon OS 2.0go1.9.1-1.ph2
amazon linux 1golang, golang-bin, golang-docs and 4 more1.8.4-1.41.amzn1
amazon linux 2golang, golang-bin, golang-docs and 3 more1.9.4-1.amzn2
debian 7golang2:1.0.2-1.1+deb7u2
debian 8golangno fix listed
debian 9golang-1.7, golang-1.81.7.4-2+deb9u3 and 1 more
Red Hatgolang, golang-bin, golang-pkg-bin-linux-amd64 and 2 moreno fix listed
Show all 23 entries from 7 sources
SourcePackageFixed in
Photon OS 2.0go1.9.1-1.ph2
amazon linux 1golang1.8.4-1.41.amzn1
amazon linux 1golang-bin1.8.4-1.41.amzn1
amazon linux 1golang-docs1.8.4-1.41.amzn1
amazon linux 1golang-misc1.8.4-1.41.amzn1
amazon linux 1golang-race1.8.4-1.41.amzn1
amazon linux 1golang-src1.8.4-1.41.amzn1
amazon linux 1golang-tests1.8.4-1.41.amzn1
amazon linux 2golang1.9.4-1.amzn2
amazon linux 2golang-bin1.9.4-1.amzn2
amazon linux 2golang-docs1.9.4-1.amzn2
amazon linux 2golang-misc1.9.4-1.amzn2
amazon linux 2golang-src1.9.4-1.amzn2
amazon linux 2golang-tests1.9.4-1.amzn2
debian 7golang2:1.0.2-1.1+deb7u2
debian 8golangno fix listed
debian 9golang-1.71.7.4-2+deb9u3
debian 9golang-1.81.8.1-1+deb9u3
Red Hatgolangno fix listed
Red Hatgolang-binno fix listed
Red Hatgolang-pkg-bin-linux-amd64no fix listed
Red Hatgolang-pkg-linux-amd64no fix listed
Red Hatgolang-srcno fix listed

References

All 13 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.