CVEfocus › CVE database › CVE-2021-20305

CVE-2021-20305

CVSS 8.1 HighEPSS 1.4% (higher than 73% of CVEs)Published 2021-04-05Updated 2026-10-14Assigner: redhat

A flaw was found in Nettle in versions before 3.7.2, where several Nettle signature verification functions (GOST DSA, EDDSA & ECDSA) result in the Elliptic Curve Cryptography point (ECC) multiply function being called with out-of-range scalers, possibly resulting in incorrect results. This flaw allows an attacker to force an invalid signature, causing an assertion failure or possible validation. The highest threat to this vulnerability is to confidentiality, integrity, as well as system availability.

CWE-327

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: 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

29Fixed
1Fix pending
2Not 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 20.04nettleFixed3.5.1+really3.5.1-2ubuntu0.1UBUNTU-CVE-2021-20305
Ubuntu 18.04nettleFixed3.4-1ubuntu0.1UBUNTU-CVE-2021-20305
Ubuntu 16.04nettleFixed3.2-1ubuntu0.16.04.2UBUNTU-CVE-2021-20305
Ubuntu 14.04nettleFix pendingUBUNTU-CVE-2021-20305
Debian 14nettleFixed3.7.2-1DEBIAN-CVE-2021-20305
Debian 13nettleFixed3.7.2-1DEBIAN-CVE-2021-20305
Debian 12nettleFixed3.7.2-1DEBIAN-CVE-2021-20305
Red Hat Enterprise Linux 9nettleNot affected
Red Hat Enterprise Linux 9nettle-develNot affected
Red Hat Enterprise Linux 8gnutlsFixed0:3.6.14-8.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 8gnutls-c++Fixed0:3.6.14-8.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 8gnutls-daneFixed0:3.6.14-8.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 8gnutls-develFixed0:3.6.14-8.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 8gnutls-utilsFixed0:3.6.14-8.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 8nettleFixed0:3.4.1-4.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 8nettle-develFixed0:3.4.1-4.el8_3RHSA-2021:1206
Red Hat Enterprise Linux 7nettleFixed0:2.7.1-9.el7_9RHSA-2021:1145
Red Hat Enterprise Linux 7nettle-develFixed0:2.7.1-9.el7_9RHSA-2021:1145
Rocky Linux 8gnutlsFixed0:3.6.14-8.el8_3RLSA-2021:1206
Rocky Linux 8nettleFixed0:3.4.1-4.el8_4RLSA-2021:1206
Alpine Linux 3.24nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.23nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.22nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.21nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.20nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.19nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.18nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.17nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.16nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.15nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.14nettleFixed3.7.2-r0ALPINE-CVE-2021-20305
Alpine Linux 3.13nettleFixed3.7.2-r0ALPINE-CVE-2021-20305

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

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.