{"cve":"CVE-2025-57801","nvd":{"published":"2025-08-22T20:15:33.080","modified":"2026-06-17T09:43:27.693","status":"Analyzed","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.","cvss_v4":{"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","score":8.6},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H","score":9.1},"cwes":["CWE-347"],"references":["https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e","https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj"],"products":["consensys:gnark"],"source":"nvd","synced_at":"2026-10-19T22:07:46.309729541+00:00"},"epss":{"cve":"CVE-2025-57801","score":0.00213,"percentile":0.11564,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-95v9-hv42-pwrj","url":"https://osv.dev/vulnerability/GHSA-95v9-hv42-pwrj","summary":"gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks","modified":"2026-02-03T03:10:06.577758Z","packages":[{"ecosystem":"Go","name":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","ranges":["<0.14.0"],"fixed":["0.14.0"]}]},{"id":"GO-2025-3912","url":"https://osv.dev/vulnerability/GO-2025-3912","summary":"Gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks in github.com/consensys/gnark","modified":"2026-03-03T04:56:52.514084Z","packages":[{"ecosystem":"Go","name":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","ranges":["<0.14.0"],"fixed":["0.14.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}