CVEfocus › CVE database › CVE-2019-11840

CVE-2019-11840

CVSS 5.9 MediumEPSS 3.5% (higher than 89% of CVEs)Published 2019-05-09Updated 2024-08-04Assigner: mitre

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

Fixed builds are available from Debian, Go: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

4Fixed
4Fix pending
6Will not fix
5Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.10snapdFix pendingUBUNTU-CVE-2019-11840
Ubuntu 26.04snapdWill not fix
snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor…
UBUNTU-CVE-2019-11840
Ubuntu 25.10golang-go.cryptoNot affected
vulnerable_code_not_present
Ubuntu 25.10snapdWill not fix
snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor…
UBUNTU-CVE-2019-11840
Ubuntu 24.04snapdWill not fix
snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor…
UBUNTU-CVE-2019-11840
Ubuntu 22.04snapdWill not fix
snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor…
UBUNTU-CVE-2019-11840
Ubuntu 20.04lxdNot affected
vulnerable_code_not_present
Ubuntu 20.04snapdFix pendingUBUNTU-CVE-2019-11840
Ubuntu 18.04golang-go.cryptoFix pendingUBUNTU-CVE-2019-11840
Ubuntu 18.04snapdFix pendingUBUNTU-CVE-2019-11840
Ubuntu 16.04golang-go.cryptoWill not fix
snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor…
UBUNTU-CVE-2019-11840
Ubuntu 16.04lxdNot affected
vulnerable_code_not_present
Ubuntu 16.04snapdWill not fix
snapd contains an embedded copy of golang-go.crypto with the affected code snapd doesn't import/use the salsa code directly, but does vendor…
UBUNTU-CVE-2019-11840
Debian 14golang-go.cryptoFixed1:0.0~git20200221.2aa609c-1DEBIAN-CVE-2019-11840
Debian 13golang-go.cryptoFixed1:0.0~git20200221.2aa609c-1DEBIAN-CVE-2019-11840
Debian 12golang-go.cryptoFixed1:0.0~git20200221.2aa609c-1DEBIAN-CVE-2019-11840
Red Hat Enterprise Linux 8gomtreeNot affected
Red Hat Enterprise Linux 7gomtreeNot affected
Go librarygolang.org/x/cryptoFixed0.0.0-20190320223903-b7391e95e576GHSA-r5c5-pr8j-pfp7

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.