GO-2021-0068

Source
https://pkg.go.dev/vuln/GO-2021-0068
Import Source
https://vuln.go.dev/ID/GO-2021-0068.json
JSON Data
https://api.osv.dev/v1/vulns/GO-2021-0068
Aliases
Published
2021-04-14T20:04:52Z
Modified
2024-05-20T16:03:47Z
Summary
Arbitrary code injection via the go command with cgo on Windows in cmd/go
Details

The go command may execute arbitrary code at build time when using cgo on Windows. This can be triggered by running go get on a malicious module, or any other time the code is built.

Database specific
{
    "review_status": "REVIEWED",
    "url": "https://pkg.go.dev/vuln/GO-2021-0068"
}
References
Credits
    • RyotaK

Affected packages

Go / toolchain

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.14.14
Introduced
1.15.0-0
Fixed
1.15.7

Ecosystem specific

{
    "imports": [
        {
            "path": "cmd/go",
            "goos": [
                "windows"
            ]
        }
    ]
}