Improper Verification of Cryptographic Signature Affecting github.com/consensys/gnark/std/signature/ecdsa package, versions <0.14.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Proof of Concept
EPSS
0.01% (1st 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-GOLANG-GITHUBCOMCONSENSYSGNARKSTDSIGNATUREECDSA-12177848
  • published24 Aug 2025
  • disclosed22 Aug 2025
  • creditUnknown

Introduced: 22 Aug 2025

NewCVE-2025-57801  (opens in a new tab)
CWE-347  (opens in a new tab)

How to fix?

Upgrade github.com/consensys/gnark/std/signature/ecdsa to version 0.14.0 or higher.

Overview

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature due to missing scalar checks in the Verify and prepareVerification functions. An attacker can produce multiple valid signatures for the same message by manipulating the S value in EdDSA and ECDSA signatures, potentially enabling double spending or bypassing anti-replay mechanisms in protocols that derive nullifiers from signature components.

References

CVSS Base Scores

version 4.0
version 3.1