CVE-2019-11840
golang.org/x/crypto: Keystream loop in amd64 assembly when overflowing 32-bit counter
Overview
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.
Source: OX vulnerability database
Severity
5.9 · MEDIUM
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- High
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- None
- Availability
- None
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness: CWE-330
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Go | golang.org/x/crypto | <0.0.0-20190320223903-b7391e95e576 | 0.0.0-20190320223903-b7391e95e576 |
Open a package to see all its vulnerabilities.
Operating systems · 37 fixes
Red Hat 3 releases · 21 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| heketi +4 | wont fix | — | |
| 7 | atomic-openshift +12 | eol | — |
| 7 | rh-mongodb32-golang-golangorg-crypto-devel +2 | wont fix | — |
| 7 | python2-urllib3 | 0:1.26.2-1.el7 | RHSA-2021:0079 |
| 7 | jenkins | 0:2.204.1.1578490170-1.el7 | RHBA-2020:0063 |
| 7 | atomic-openshift-cluster-autoscaler | 0:3.11.374-1.git.0.2996f62.el7 | RHSA-2021:0079 |
17 more rows
chainguard 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| dex-k8s-authenticator | not affected | |
| k3d | 5.6.0-r11 |
debian 6 releases · 4 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-go-crypto | 1:0.0~git20181203.505ab14-1+deb10u1 |
| 11 | golang-go-crypto | 1:0.0~git20200221.2aa609c-1 |
| 12 | golang-go-crypto | 1:0.0~git20200221.2aa609c-1 |
| 13 | golang-go-crypto | 1:0.0~git20200221.2aa609c-1 |
| 14 | golang-go-crypto | 1:0.0~git20200221.2aa609c-1 |
| 9 | obfs4proxy | 0.0.7-1+deb8u1 |
3 more rows
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-go-crypto | 1:0.0~git20200221.2aa609c-1 |
ubuntu 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-go-crypto | affected |
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| k3d | 5.6.0-r11 |
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2019-11840
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1691529
- github.com https://github.com/golang/go/issues/30965
- go.dev https://go.dev/cl/168406
- go.dev https://go.dev/issue/30965
- go.googlesource.com https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d
- groups.google.com https://groups.google.com/forum/#!msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ
- groups.google.com https://groups.google.com/forum/#%21msg/golang-announce/tjyNcJxb2vQ/n0NRBziSCAAJ
- groups.google.com https://groups.google.com/g/golang-announce/c/tjyNcJxb2vQ/m/n0NRBziSCAAJ
- lists.debian.org https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html
Show all 18 references
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2019-11840
- pkg.go.dev https://pkg.go.dev/vuln/GO-2022-0209
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2019-11840
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.