Vulnerability Report: GO-2022-0190

The "go get" command is vulnerable to directory traversal when executed with the import path of a malicious Go package which contains curly brace (both '{' and '}' characters). Specifically, it is only vulnerable in GOPATH mode, but not in module mode (the distinction is documented at https://golang.org/cmd/go/#hdr-Module_aware_go_get). The attacker can cause an arbitrary filesystem write, which can lead to code execution.

Affected Packages

  • Path
    Versions
    Symbols
  • before go1.10.6, from go1.11.0-0 before go1.11.3
    all symbols

Aliases

References

Credits

  • ztz of Tencent Security Platform

Feedback

See anything missing or incorrect? Suggest an edit to this report.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL