[ASA-202101-27] go: multiple issues

Morten Linderud foxboron at archlinux.org
Thu Jan 28 21:59:17 UTC 2021

Arch Linux Security Advisory ASA-202101-27

Severity: Medium
Date    : 2021-01-20
CVE-ID  : CVE-2021-3114 CVE-2021-3115
Package : go
Type    : multiple issues
Remote  : No
Link    : https://security.archlinux.org/AVG-1481


The package go before version 2:1.15.7-1 is vulnerable to multiple
issues including arbitrary command execution and incorrect calculation.


Upgrade to 2:1.15.7-1.

# pacman -Syu "go>=2:1.15.7-1"

The problems have been fixed upstream in version 1.15.7.




- CVE-2021-3114 (incorrect calculation)

A security issue was found in Go and fixed in versions 1.15.7 and
1.14.14. The P224() Curve implementation can in rare circumstances
generate incorrect outputs, including returning invalid points from
ScalarMult. The crypto/x509 and golang.org/x/crypto/ocsp (but not
crypto/tls) packages support P-224 ECDSA keys, but they are not
supported by publicly trusted certificate authorities. No other
standard library or golang.org/x/crypto package supports or uses the
P-224 curve.

- CVE-2021-3115 (arbitrary command execution)

A security issue was found in Go and fixed in versions 1.15.7 and
1.14.14. The go command may execute arbitrary code at build time when
using cgo on Windows. This can be triggered by running go get for a
malicious package, or any other time the code is built. This can be
triggered by malicious packages which contain specifically named
binaries which are executed when cgo is executed in the context of the
malicious package directory. This is due to the path lookup behavior of
os/exec.LookPath on Windows. This will also affect Unix users who have
“.” listed explicitly in their PATH and are running “go get” outside of
a module or with module mode disabled. This has been fixed by altering
the usage of os/exec.LookPath by the go command to reject the usage of
any binaries that reside in the current directory.


The handling of P-224 ECDSA keys could produce incorrect outputs,
leading to potentially incorrect results of encryption, decryption, or
signature verification operations.

Downloading a maliciously crafted binary package using "go get" can
execute arbitrary code if the user's $PATH explicitly contains the
current directory.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.archlinux.org/pipermail/arch-security/attachments/20210128/1c6f54e9/attachment.sig>

More information about the arch-security mailing list