CVE-2019-11840Golang Crypto
Medium 5.9 No auth needed
Follow: this CVE · Golang · Golang Crypto We alert you by email or Slack (account required).
- Priority
- 51
- CVSS 3.1
- 5.9
- EPSS
- 3.5% probability of exploitation in 30 days · percentile 90
- Auth required
- No
- Published
- May 9, 2019
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-330
- Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
What happens
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.
What to do
- Apply the vendor's security update for Crypto.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | golang.org/x/crypto |
< 0.0.0-20190320223903-b7391e95e576 |
0.0.0-20190320223903-b7391e95e576 |
go get golang.org/x/crypto@v0.0.0-20190320223903-b7391e95e576 |
| Go | golang.org/x/crypto |
< 0.0.0-20190320223903-b7391e95e576 |
0.0.0-20190320223903-b7391e95e576 |
go get golang.org/x/crypto@v0.0.0-20190320223903-b7391e95e576 |
Per OSV / GitHub Advisories (GHSA-r5c5-pr8j-pfp7, GO-2022-0209). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| golang | crypto | all |
| debian | debian_linux | 8.0 |
| debian | debian_linux | 9.0 |
| debian | debian_linux | 10.0 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Vendor Advisory
- github.com Third Party Advisory
- go.googlesource.com Mailing List Patch Third Party Advisory
- groups.google.com Permissions Required
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Mailing List Third Party Advisory
- lists.debian.org Third Party Advisory
- pkg.go.dev Third Party Advisory