Improper Verification of Cryptographic Signature Affecting libsecp256k1 package, versions <0.5.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.4% (74th 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-RUST-LIBSECP256K1-1317067
  • published14 Jul 2021
  • disclosed13 Jul 2021
  • creditUnknown

Introduced: 13 Jul 2021

CVE-2021-38195  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade libsecp256k1 to version 0.5.0 or higher.

Overview

libsecp256k1 is a Rust Implementation of secp256k1.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature libsecp256k1 accepts signatures whose R or S parameter is larger than the secp256k1 curve order, which differs from other implementations. This could lead to invalid signatures being verified. The error is resolved in 0.5.0 by adding a check_overflow flag.

CVSS Scores

version 3.1