Live threats

All CVEs / Golang

CVE-2019-11840Golang Crypto

Medium 5.9 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Crypto.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
golangcryptoall
debiandebian_linux8.0
debiandebian_linux9.0
debiandebian_linux10.0

Official sources

References

Links published by the sources. Open them with care.