CVE-2025-57801
HIGH 8.6CVSS 4.0gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks
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.
- Published
- 22 Aug 2025
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-347
- Also known as
- GHSA-95v9-hv42-pwrjGO-2025-3912
- Sources
- NVDJSONOSV GHSA-95v9-hv42-pwrjJSONOSV GO-2025-3912JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.6 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | consensys | gnarkcpe:2.3:a:consensys:gnark:*:*:*:*:*:*:*:* |
< 0.14.0 | 0.14.0 |
| OSV | Go | github.com/consensys/gnark | < 0.14.0 | 0.14.0 |
References
- https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e · Patch, WEB, FIX
- https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj · Exploit, Vendor Advisory, WEB, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2025-57801 · ADVISORY
- https://github.com/Consensys/gnark · PACKAGE
- https://pkg.go.dev/vuln/GO-2025-3912 · WEB
History
- 25 Nov 2026 20:58 UTC · NVD: first stored (published 22 Aug 2025)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Aug 2025)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 22 Aug 2025)