CVE-2019-11840
MEDIUM 5.9CVSS 3.1golang.org/x/crypto/salsa20/salsa uses insufficiently random values
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
- 9 May 2019
- Last modified
- 10 Sep 2026
- Assigned by
- cve@mitre.org
- NVD status
- Analyzed
- Weakness
- CWE-330
- Also known as
- GHSA-r5c5-pr8j-pfp7GO-2022-0209
- Sources
- NVDJSONOSV GHSA-r5c5-pr8j-pfp7JSONOSV GO-2022-0209JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.9 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | golang | cryptocpe:2.3:a:golang:crypto:-:*:*:*:*:*:*:* |
(no version) | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:* |
= 8.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:* |
= 9.0 | |
| NVD | debian | debian_linuxcpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:* |
= 10.0 | |
| OSV | Go | golang.org/x/crypto | < 0.0.0-20190320223903-b7391e95e576 | 0.0.0-20190320223903-b7391e95e576 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=1691529 · Issue Tracking, Vendor Advisory, WEB
- https://github.com/golang/go/issues/30965 · Third Party Advisory, WEB
- https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d · Mailing List, Patch, Third Party Advisory, WEB, FIX
- https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ · Permissions Required
- 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 · 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 · WEB, FIX
- https://go.dev/issue/30965 · WEB, REPORT
- https://groups.google.com/forum/#!msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ · WEB
- https://groups.google.com/g/golang-announce/c/tjyNcJxb2vQ/m/n0NRBziSCAAJ · WEB
History
- 25 Nov 2026 20:22 UTC · NVD: first stored (published 9 May 2019)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2022)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 24 May 2022)