Lucene search

K
osvGoogleOSV:GHSA-R5C5-PR8J-PFP7
HistoryMay 24, 2022 - 4:45 p.m.

golang.org/x/crypto/salsa20/salsa uses insufficiently random values

2022-05-2416:45:25
Google
osv.dev
14
cryptography libraries
flaw found
amd64 implementation

AI Score

5.7

Confidence

High

EPSS

0.008

Percentile

81.4%

An issue was discovered in supplementary Go cryptography libraries, aka golang-googlecode-go-crypto, before 2019-03-20. A flaw was found in the amd64 implementation of golang.org/x/crypto/salsa20 and golang.org/x/crypto/salsa20/salsa. 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.

Specific Go Packages Affected

golang.org/x/crypto/salsa20/salsa

AI Score

5.7

Confidence

High

EPSS

0.008

Percentile

81.4%