CVE-2019-11840: golang.org/x/crypto - Weak Cryptography
- Cve: CVE-2019-11840
- Name: golang.org/x/crypto - Weak Cryptography
- 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.
- Impact: Attackers can cause keystream repetition, leading to loss of confidentiality or predictability in cryptographic applications.
- Remediation: Update to version v0.0.0-20190320223903-b7391e95e576 or later.
- Vulnerability type: weak_cryptography
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.9
- Cvss vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.03452
- Epss percentile: 0.89321
- Assignee: [email protected]
- Published at: 2019-05-09T16:29:00Z
- Age in days: 2756
- Modified at: 2026-06-17T02:13:43Z
- Patch available: yes
- References total: 11
- Products total: 2
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2019-11840
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-330 | Use of Insufficiently Random Values |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d | Mailing List, Patch, Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=1691529 | Issue Tracking, Vendor Advisory |
| https://github.com/golang/go/issues/30965 | Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2019/06/msg00029.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/10/msg00014.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/11/msg00016.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2020/11/msg00030.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2021/01/msg00015.html | Mailing List, Third Party Advisory |
| https://lists.debian.org/debian-lts-announce/2023/06/msg00017.html | Third Party Advisory |
| https://pkg.go.dev/vuln/GO-2022-0209 | Third Party Advisory |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| golang:crypto | all versions | no | nvd | /v1/products/golang/crypto |
| debian:debian_linux | = 10.0, = 9.0, = 8.0 | no | nvd | /v1/products/debian/debian_linux |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| golang/go | issues, package | yes | /v1/repositories/golang/go |
Index
- Repositories: 18
- Packages: 1
- Checked, none or zero: repositories high signal
Exploitation
- Remote: yes
- Exposed hosts: 4739835
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports