# CVE-2019-11840: golang.org/x/crypto/salsa20/salsa uses insufficiently random values

- Severity: Medium 5.9 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.45%, higher than 89% of CVEs (2026-12-01)
- Published: 2019-05-09T00:00:00.000Z
- Modified: 2026-09-10T03:49:36.602Z
- Also known as: GHSA-r5c5-pr8j-pfp7, GO-2022-0209
- Related: CGA-w77q-hxpv-cjw3
- Weaknesses: CWE-330
- Assigned by: mitre

## 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 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- golang.org/x/crypto (Go): before 0.0.0-20190320223903-b7391e95e576
- golang crypto: no versions given
- debian debian_linux: 8.0; 9.0; 10.0

## Every score

- GitHub: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:2.0 4.3 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:N`

## References

- <https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ> (permissions-required)
- <https://bugzilla.redhat.com/show_bug.cgi?id=1691529> (issue-tracking, vendor-advisory, web)
- <https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d> (fix, mailing-list, patch, third-party-advisory, web)
- <https://github.com/golang/go/issues/30965> (third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html> (mailing-list, third-party-advisory, web)
- <https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html> (mailing-list, third-party-advisory, web)
- <https://pkg.go.dev/vuln/GO-2022-0209> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2019-11840> (advisory)
- <https://github.com/golang/go> (package)
- <https://go.dev/cl/168406> (fix, web)
- <https://go.dev/issue/30965> (report, web)
- <https://groups.google.com/forum/#!msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ> (web)
- <https://groups.google.com/g/golang-announce/c/tjyNcJxb2vQ/m/n0NRBziSCAAJ> (web)

## Sources

- CVE List: [CVE-2019-11840](https://www.cve.org/CVERecord?id=CVE-2019-11840), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-r5c5-pr8j-pfp7](https://github.com/advisories/GHSA-r5c5-pr8j-pfp7), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2022-0209](https://pkg.go.dev/vuln/GO-2022-0209), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2019-11840](https://nvd.nist.gov/vuln/detail/CVE-2019-11840), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2019-11840 · Whole record: https://cve.day/CVE-2019-11840.json · Rebuilt by cve.day 2026-11-25T22:57:44.740Z
