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

Source: https://junglewise.ai/threats/cve-2025-57801-gnark-is-vulnerable-to-signature-malleability-in-eddsa-and-ecdsa  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2025-08-29  
License: CC BY 4.0 with a link back

CVE-2025-57801 · Severity: low · CVSS 3.1 · Published 2025-08-29

Gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks in github.com/consensys/gnark

Technologies: [github.com/consensys/gnark (Go)](https://junglewise.ai/threats/technologies/github-com-consensys-gnark). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2025-57801 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2025-57801 being exploited in the wild.

**How severe is CVE-2025-57801?** Low severity, with a CVSS score of 3.1, published 29 August 2025.

**Which products and versions are affected?** github.com/consensys/gnark (Go) SEMVER:introduced=0,fixed=0.14.0.

**Is there a fix for CVE-2025-57801?** Yes. github.com/consensys/gnark (Go): upgrade to 0.14.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2025-57801?** Check whether you run github.com/consensys/gnark (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/consensys/gnark (Go): upgrade to 0.14.0 or later

  ```sh
  go get github.com/consensys/gnark@v0.14.0
  ```


## Affected products

- github.com/consensys/gnark (Go) SEMVER:introduced=0,fixed=0.14.0

## Identifiers

- CVE-2025-57801
- GHSA-95v9-hv42-pwrj
- GO-2025-3912

## Related threats

- [GO-2025-3929 - Denial of service when computing scalar multiplication using fake-GLV algorithm in github.com/consensys/gnark](https://junglewise.ai/threats/cve-2025-58157-gnark-affected-by-denial-of-service-when-computing-scalar)
- [GO-2024-3122 - Groth16 commitment extension unsound for more than one commitment in github.com/consensys/gnark](https://junglewise.ai/threats/cve-2024-45039-gnark-s-groth16-commitment-extension-unsound-for-more-than-one)
- [GO-2024-3244 - Gnark out-of-memory during deserialization with crafted inputs in github.com/consensys/gnark](https://junglewise.ai/threats/cve-2024-50354-gnark-out-of-memory-during-deserialization-with-crafted-inputs)
- [gnark commitments to private witnesses in Groth16 as implemented break zero-knowledge property](https://junglewise.ai/threats/cve-2024-45040-gnark-commitments-to-private-witnesses-in-groth16-as-implemented)
- [GO-2023-2333 - Range checker gadget allows wider inputs than allowed in github.com/consensys/gnark](https://junglewise.ai/threats/go-2023-2333-range-checker-gadget-allows-wider-inputs-than-allowed-in-ef7767c9)
