Skip to content
OpenAdvisories
High · 8.6 CVE-2025-57801 EUVD-2025-25624GHSA-95v9-hv42-pwrjGO-2025-3912

gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks

Published Aug 22, 2025 · Updated Aug 22, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
Consensys gnark < 0.14.0 —

Affected packages

EcosystemPackageAffectedFixedRecord
Go github.com/consensys/gnark < 0.14.0 0.14.0 GHSA-95v9-hv42-pwrj

References