CVE-2019-11840
golang.org/x/crypto/salsa20/salsa uses insufficiently random values
Record from NVD · Published May 9, 2019
golang.org/x/crypto is fixed in 0.0.0-20190320223903-b7391e95e576 (Go Modules)
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.
EPSS 3.45% · 89.3th percentile
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| golang.org/x/crypto | Go Modules | 0.0.0-20190320223903-b7391e95e576 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| golang | crypto | |
| debian | debian_linux | 8.0, 9.0, 10.0 |
Timeline
- May 9, 2019 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Jan 20, 2026 CVE Updated
- Mar 18, 2026 Security Advisory (10 in total, the first dated here)
- Sep 15, 2026 Coalition ESS Score
- Oct 19, 2026 Distribution Patch (7 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2019-11840
vulnetix vdb fixes CVE-2019-11840
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2019-11840/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ technical
- https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html advisory
- https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html advisory
- https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html advisory
- https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d mailing_list
- https://github.com/golang/go/issues/30965 discussion
- https://bugzilla.redhat.com/show_bug.cgi?id=1691529 issue
- https://pkg.go.dev/vuln/GO-2022-0209 advisory
- https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html advisory
- https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html advisory
- https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html advisory