Skip to content

CVE-2019-11840 golang.org/x/crypto/salsa20/salsa uses insufficiently random values

MediumCVSS 5.9 EPSS 3.5%
Published
Updated
Exploit status
No public exploit known

Description

An issue was discovered in the supplementary Go cryptography library, golang.org/x/crypto, before v0.0.0-20190320223903-b7391e95e576. A flaw was found in the amd64 implementation of the golang.org/x/crypto/salsa20 and golang.org/x/crypto/salsa20/salsa packages. If more than 256 GiB of keystream is generated, or if the counter otherwise grows greater than 32 bits, the amd64 implementation will first generate incorrect output, and then cycle back to previously generated keystream. Repeated keystream bytes can lead to loss of confidentiality in encryption applications, or to predictability in CSPRNG applications.

Affected products

ProductAffected versionsFixed in
golang.org/x/crypto(Go) < 0.0.0-20190320223903-b7391e95e576 0.0.0-20190320223903-b7391e95e576
debian/golang-go.crypto(Debian:12) < 1:0.0~git20200221.2aa609c-1 1:0.0~git20200221.2aa609c-1
debian/golang-go.crypto(Debian:13) < 1:0.0~git20200221.2aa609c-1 1:0.0~git20200221.2aa609c-1
debian/golang-go.crypto(Debian:14) < 1:0.0~git20200221.2aa609c-1 1:0.0~git20200221.2aa609c-1
golang crypto All versions No fix listed
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
ubuntu/snapd(Ubuntu:24.04) All versions No fix listed
ubuntu/snapd(Ubuntu:26.04) All versions No fix listed
ubuntu/snapd(Ubuntu:26.10) All versions No fix listed
ubuntu/snapd(Ubuntu:22.04) All versions No fix listed

References