CVE-2019-11840
publishedgolang.org/x/crypto: Keystream loop in amd64 assembly when overflowing 32-bit counter
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | buster | golang-go.crypto | Advisory build | 1:0.0~git20181203.505ab14-1+deb10u1 | DLA-3455-1 |
| Debian | jessie | golang-go.crypto | Advisory build | 0.0~hg190-1+deb8u1 | DLA-1840-1 |
| Debian | stretch | golang-go.crypto | Advisory build | 1:0.0~git20170407.0.55a552f+REALLY.0.0~git20161012.0.5f31782-1+deb8u1 | DLA-2402-1 |
| Debian | stretch | obfs4proxy | Advisory build | 0.0.7-1+deb8u1 | DLA-2442-1 |
| Debian | stretch | rclone | Advisory build | 1.35-1+deb8u1 | DLA-2454-1 |
| Debian | stretch | snapd | Advisory build | 2.21-2+deb9u1 | DLA-2527-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
11- https://bugzilla.redhat.com/show_bug.cgi?id=1691529
- https://github.com/golang/go/issues/30965
- https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d
- https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ
- [debian-lts-announce] 20190630 [SECURITY] [DLA 1840-1] golang-go.crypto security update https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html
- [debian-lts-announce] 20201007 [SECURITY] [DLA 2402-1] golang-go.crypto security update https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html
- [debian-lts-announce] 20201109 [SECURITY] [DLA 2442-1] obfs4proxy security update https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html
- [debian-lts-announce] 20201118 [SECURITY] [DLA 2454-1] rclone security update https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html
- [debian-lts-announce] 20210117 [SECURITY] [DLA 2527-1] snapd security update https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html
- [debian-lts-announce] 20230616 [SECURITY] [DLA 3455-1] golang-go.crypto security update https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html
- https://pkg.go.dev/vuln/GO-2022-0209
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2b8c6f40d15c90da5a947a1c661c6ee3ae3f6437b077d11995070deba5a5f7b9
- Ingested
- 23 Sep 2026, 07:45:42 UTC
- Source record
- Official CVE record