CVE-2024-50354: Consensys Gnark

Medium severity, CVSS 5.5. EPSS: 0.3% chance of exploitation in the next 30 days.

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

  • Consensys Gnark: before 0.12.0 (fixed in 0.12.0)

Published 2024-10-31. Last modified 2026-06-17.