CVE-2025-57801 Details
Description
gnark is a zero-knowledge proof system framework. In versions prior to 0.14.0, the Verify function in eddsa.go and ecdsa.go used the S value from a signature without asserting that 0 ≤ S < order, leading to a signature malleability vulnerability. Because gnark’s native EdDSA and ECDSA circuits lack essential constraints, multiple distinct witnesses can satisfy the same public inputs. In protocols where nullifiers or anti-replay checks are derived from R and S, this enables signature malleability and may allow double spending. This issue has been addressed in version 0.14.0.
A signature malleability vulnerability has been identified in the Consensys gnark framework, specifically within the EdDSA and ECDSA circuits, in versions prior to 0.14.0. The issue arises because the Verify function in both 'eddsa.go' and 'ecdsa.go' files used the S value from a signature without validating that it fell within the acceptable range. This oversight allowed for the creation of multiple distinct witnesses that could satisfy the same public inputs, leading to potential double spending in protocols that relied on nullifiers or anti-replay checks derived from the signature values.
Users can upgrade to gnark version 0.14.0 or later, where this vulnerability has been addressed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Aug 22, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-347 | Improper Verification of Cryptographic Signature | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| consensys gnark | < 0.14.0 |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Sep 12, 2025 | Initial Analysis | [email protected] |
| Aug 22, 2025 | New CVE Received | [email protected] |