# CVE-2025-57801: gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks

- Severity: High 8.6 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-22T19:54:05.854Z
- Modified: 2026-06-17T09:43:27.693Z
- Also known as: GHSA-95v9-hv42-pwrj, GO-2025-3912
- Weaknesses: CWE-347
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Consensys gnark: < 0.14.0; before 0.14.0
- github.com/consensys/gnark (Go): before 0.14.0

## Every score

- GitHub_M: CVSS:4.0 8.6 High `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`
- GitHub: CVSS:3.1 9.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:4.0 High `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: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## References

- <https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj> (exploit, advisory, vendor-advisory, web)
- <https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e> (fix, patch, web)
- <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)

## Sources

- CVE List: [CVE-2025-57801](https://www.cve.org/CVERecord?id=CVE-2025-57801), CVE Terms of Use, modified 2025-08-22
- GitHub Advisory Database: [GHSA-95v9-hv42-pwrj](https://github.com/advisories/GHSA-95v9-hv42-pwrj), CC-BY-4.0, modified 2026-02-03
- Go Vulnerability Database: [GO-2025-3912](https://pkg.go.dev/vuln/GO-2025-3912), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-57801](https://nvd.nist.gov/vuln/detail/CVE-2025-57801), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-57801 · Whole record: https://cve.day/CVE-2025-57801.json · Rebuilt by cve.day 2026-11-25T22:59:03.583Z
