Use of a Risky Cryptographic Algorithm Affecting nettle package, versions [,3.8.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.74% (78th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use of a Risky Cryptographic Algorithm vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-NETTLE-10077813
  • published8 May 2025
  • disclosed5 Apr 2021
  • creditUnknown

Introduced: 5 Apr 2021

CVE-2021-20305  (opens in a new tab)
CWE-327  (opens in a new tab)

How to fix?

Upgrade nettle to version 3.8.1 or higher.

Overview

Affected versions of this package are vulnerable to Use of a Risky Cryptographic Algorithm. 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.

CVSS Base Scores

version 3.1