GHSA-r5c5-pr8j-pfp7

Suggest an improvement
Source
https://github.com/advisories/GHSA-r5c5-pr8j-pfp7
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-r5c5-pr8j-pfp7/GHSA-r5c5-pr8j-pfp7.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r5c5-pr8j-pfp7
Aliases
Related
Published
2022-05-24T16:45:25Z
Modified
2023-11-08T04:01:02.198221Z
Severity
  • 5.9 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
golang.org/x/crypto/salsa20/salsa uses insufficiently random values
Details

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

References

Affected packages

Go / golang.org/x/crypto

Package

Name
golang.org/x/crypto
View open source insights on deps.dev
Purl
pkg:golang/golang.org/x/crypto

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.0.0-20190320223903-b7391e95e576