CVE-2025-57801 gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks
HighCVSS 8.6
EPSS 0.23%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| consensys github.com/consensys/gnark | < 0.14.0; = < 0.14.0 | 0.14.0 | Fixed |
| consensys github.com/consensys/gnark(Go) | < 0.14.0 | 0.14.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| consensys github.com/consensys/gnark(Go) | < 0.14.0 | 0.14.0 |
| consensys github.com/consensys/gnark | = < 0.14.0 | No fix listed |
| consensys github.com/consensys/gnark | < 0.14.0 | 0.14.0 |
References
- https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj exploit vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e patch
- github.com product
- pkg.go.dev
- github.com