{"id":"CVE-2025-57801","published":"2025-08-22T19:54:05Z","modified":"2025-08-22T20:06:00Z","title":"gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks","vendor":"Consensys","product":"gnark","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00361,"percentile":0.22107,"provenance":"source"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"references":[{"url":"https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e","tags":["x_refsource_MISC"]}],"priority":{"score":10.4,"factors":[{"name":"EPSS percentile","points":4.42},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"consensys","affectedVersions":[{"vendor":"Consensys","product":"gnark","versions":["< 0.14.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-08-22T20:05:45.827084Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/consensys/gnark","vulnerableRanges":["<0.14.0"],"patched":["0.14.0"],"from":["GHSA-95v9-hv42-pwrj","GO-2025-3912"],"provenance":"source"}],"summary":{"text":"The gnark zero-knowledge proof framework's native EdDSA and ECDSA circuits and their Verify functions (in eddsa.go and ecdsa.go) fail to check that the signature's S value lies within the curve order, which makes signatures malleable. An attacker with local access, requiring no privileges or user interaction, can produce multiple distinct witnesses that satisfy the same public inputs, which in protocols deriving nullifiers or anti-replay checks from R and S may enable double spending.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:54Z"},"euvd":{"id":"EUVD-2025-25624","exploited":false,"provenance":"source"}}