{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2019-11840","id":"CVE-2019-11840","title":"golang.org/x/crypto/salsa20/salsa uses insufficiently random values","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 firs","descriptionLong":"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.","published":"2019-05-09T00:00:00.000Z","updated":"2026-06-17T02:13:43.400Z","reserved":"2019-05-09T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.9,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","rating":"medium","source":"GitHub"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:P/I:N/A:N","rating":"medium","source":"NVD"}],"rating":"medium","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"golang.org/x/crypto","purl":"pkg:golang/golang.org/x/crypto","ranges":["<0.0.0-20190320223903-b7391e95e576"],"fixed":["0.0.0-20190320223903-b7391e95e576"],"advisory":"GHSA-r5c5-pr8j-pfp7"}],"cwes":["CWE-330"],"aliases":["GHSA-r5c5-pr8j-pfp7","GO-2022-0209"],"references":[{"url":"https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ","tags":["x_transferred","Permissions Required","web"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1691529","tags":["x_transferred","Issue Tracking","Vendor Advisory","report","web"]},{"url":"https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d","tags":["x_transferred","Mailing List","Patch","Third Party Advisory","fix","web"]},{"url":"https://github.com/golang/go/issues/30965","tags":["x_transferred","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html","tags":["mailing-list","x_transferred","Mailing List","Third Party Advisory","advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html","tags":["mailing-list","x_transferred","Third Party Advisory","web"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0209","tags":["x_transferred","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-11840","tags":["advisory"]},{"url":"https://github.com/golang/go","tags":["package"]},{"url":"https://go.dev/cl/168406","tags":["web","fix"]},{"url":"https://go.dev/issue/30965","tags":["web","report"]},{"url":"https://groups.google.com/forum/#!msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ","tags":["web"]},{"url":"https://groups.google.com/g/golang-announce/c/tjyNcJxb2vQ/m/n0NRBziSCAAJ","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.03452,"epssPercentile":0.8926,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2019-11840","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2019-11840","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2019-11840","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-r5c5-pr8j-pfp7","ok":true,"note":"GHSA-r5c5-pr8j-pfp7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2019-11840","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":["go"],"critical":[],"attention":null}