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

High 8.6 Published Updated

Attackers can exploit signature malleability in gnark to bypass anti-replay checks, potentially enabling double spending in dependent protocols.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2025-57801?

CVE-2025-57801 is a high-severity vulnerability in Consensys gnark, published on 22 Aug 2025. It can only be exploited from the same machine or local network, with no action from the victim.

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

Weakness: CWE-347

Which versions are affected by CVE-2025-57801?

3 open source packages ship an affected version, including github.com/consensys/gnark. It affects 1 product.

PackageAffectedFixed in
github.com/consensys/gnark GoAll versions0.14.0
github.com/consensys/gnark GoAll versions0.14.0
github.com/consensys/gnark GoAll versions0.14.0

Products include Consensys Gnark.

How do I fix CVE-2025-57801?

Upgrade github.com/consensys/gnark to 0.14.0 or later.

Is CVE-2025-57801 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-57801 exists.

Sources

Also known as GHSA-95v9-hv42-pwrj, GO-2025-3912.

Is CVE-2025-57801 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free