CVE-2025-57801

Critical

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.

SeverityCritical
CVSS9.1
Exploit probability—
ProductConsensys Gnark
PublishedAug 22, 2025
First seenAug 22, 2025
Weakness typeCWE-347CWE-347

How to fix

Update
  • consensys gnark0.14.0 or later
  • github.com/consensys/gnark0.14.0 or later

Affected products

ProductAffected versionsFixed in
consensys gnarkv < 0.14.00.14.0
github.com/consensys/gnarkGov < 0.14.00.14.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-57801 · Consensys Gnark · Dark Radar