What’s Vulnerable › Vulnerabilities

CVE-2024-50354: Out-of-memory during deserialization with crafted inputs

Description

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

How to fix

Upgrade to a fixed version: Consensys gnark 0.12.0. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-50354 or the next vulnerability affects your stack