What’s Vulnerable › Vulnerabilities
CVE-2024-50354: Out-of-memory during deserialization with crafted inputs
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2024-10-31 · updated 2026-06-17
- Weakness: CWE-400
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
- Consensys gnark: before 0.12.0 — fixed in 0.12.0
How to fix
Upgrade to a fixed version: Consensys gnark 0.12.0. Check the vendor advisory for mitigations.
References
- https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d
- https://github.com/Consensys/gnark/pull/1307
- https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g
Get alerted when CVE-2024-50354 or the next vulnerability affects your stack