{"id":"CVE-2019-11840","published":"2019-05-09T00:00:00Z","modified":"2024-08-04T23:03:32Z","title":"An issue was discovered in the supplementary Go cryptography library, golang.org/x/crypto, before…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.03452,"percentile":0.89307,"provenance":"source"},"cwes":[],"references":[{"url":"https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ","tags":[]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1691529","tags":[]},{"url":"https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d","tags":[]},{"url":"https://github.com/golang/go/issues/30965","tags":[]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html","tags":["mailing-list"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html","tags":["mailing-list"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0209","tags":[]}],"priority":{"score":17.9,"factors":[{"name":"EPSS percentile","points":17.86}]},"affected":[{"ecosystem":"Go","package":"golang.org/x/crypto","vulnerableRanges":["<0.0.0-20190320223903-b7391e95e576"],"patched":["0.0.0-20190320223903-b7391e95e576"],"from":["GHSA-r5c5-pr8j-pfp7","GO-2022-0209"],"provenance":"source"}],"summary":{"text":"The flaw lies in the amd64 implementation of the golang.org/x/crypto/salsa20 and salsa20/salsa packages in the supplementary Go cryptography library golang.org/x/crypto, in versions before v0.0.0-20190320223903-b7391e95e576. When more than 256 GiB of keystream is generated, or the counter grows beyond 32 bits, the implementation first produces incorrect output and then cycles back to previously generated keystream, which can compromise confidentiality in encryption applications or predictability in CSPRNG applications.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:26:55Z"},"euvd":{"id":"EUVD-2022-5096","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-3204","published":"2017-04-04","fixed":"0.0.0-20170330155735-e4e2799dd7aa","kev":false},{"cve":"CVE-2019-11840","published":"2019-05-09","fixed":"0.0.0-20190320223903-b7391e95e576","kev":false},{"cve":"CVE-2019-11841","published":"2019-05-22","fixed":"0.0.0-20190424203555-c05e17bb3b2d","kev":false,"link":{"from":"CVE-2019-11840","to":"CVE-2019-11841","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:golang.org/x/crypto","fromFixed":"0.0.0-20190320223903-b7391e95e576","toFixed":"0.0.0-20190424203555-c05e17bb3b2d","daysApart":13}]}},{"cve":"CVE-2020-7919","published":"2020-03-16","fixed":"0.0.0-20200124225646-8b5121be2f68","kev":false},{"cve":"CVE-2020-9283","published":"2020-02-20","fixed":"0.0.0-20200220183623-bac4c82f6975","kev":false}],"package":"Go:golang.org/x/crypto"}}