Improper Verification of Cryptographic Signature Affecting fastecdsa package, versions [,2.1.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.31% (71st 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 IDSNYK-UNMANAGED-FASTECDSA-2371749
  • published26 Jan 2022
  • disclosed2 Jun 2020
  • creditUnknown

Introduced: 2 Jun 2020

CVE-2020-12607  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade fastecdsa to version 2.1.2 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature. An issue was discovered in fastecdsa before 2.1.2. When using the NIST P-256 curve in the ECDSA implementation, the point at infinity is mishandled. This means that for an extreme value in k and s^-1, the signature verification fails even if the signature is correct. This behavior is not solely a usability problem. There are some threat models where an attacker can benefit by successfully guessing users for whom signature verification will fail.

CVSS Base Scores

version 3.1