CVE-2025-58157
Consensys Gnark vulnerability
gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge quickly enough for some of the inputs. This issue has been patched in version 0.13.0.
Affected products
Gnark. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Consensys Gnark runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8 · Vendor Advisory
- github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d · Patch
- github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc · Patch
- github.com/Consensys/gnark/issues/1483 · Exploit
- nvd.nist.gov/vuln/detail/CVE-2025-58157
- github.com/advisories/GHSA-9fvj-xqr2-xwg8
- nvd.nist.gov/vuln/detail/CVE-2025-58157
- cve.org/CVERecord?id=CVE-2025-58157
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.