CVE-2024-50354
Consensys Gnark vulnerability
gnark is a fast zk-SNARK library that offers a high-level API to design circuits. In gnark 0.11.0 and earlier, deserialization of Groth16 verification keys allocate excessive memory, consuming a lot of resources and triggering a crash with the error fatal error: runtime: out of memory.
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.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g · Exploit
- github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d · Patch
- github.com/Consensys/gnark/pull/1307 · Patch
- nvd.nist.gov/vuln/detail/CVE-2024-50354
- github.com/advisories/GHSA-cph5-3pgr-c82g
- nvd.nist.gov/vuln/detail/CVE-2024-50354
- cve.org/CVERecord?id=CVE-2024-50354
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.