golang.org/x/crypto
Affected
- introduced
0, fixed0.0.0-20190320223903-b7391e95e576(semver)
Fixed versions
0.0.0-20190320223903-b7391e95e576
Fix
- Fixed version
0.0.0-20190320223903-b7391e95e576go get golang.org/x/[email protected]
Advisory
Also known as: CVE-2019-11840, GHSA-r5c5-pr8j-pfp7
Insufficiently random values in golang.org/x/crypto/salsa20
XORKeyStream generates incorrect and insecure output for very large inputs.
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.
The issue might affect uses of golang.org/x/crypto/nacl with extremely large messages.
Architectures other than amd64 and uses that generate less than 256 GiB of keystream for a single salsa20.XORKeyStream invocation are unaffected.
Not rated by the source.
0, fixed 0.0.0-20190320223903-b7391e95e576 (semver)0.0.0-20190320223903-b7391e95e576
0.0.0-20190320223903-b7391e95e576go get golang.org/x/[email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: Go Vulnerability Database · CC BY 4.0