Resource exhaustion in Consensys Gnark
CVE-2024-50354
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.
Vulnerability class: DoS (Denial of Service)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.003, 25.9th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Consensys Gnark — versions <= 0.11.0
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 1 other repository (fkie-cad/nvd-json-data-feeds). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g (Exploit, Vendor Advisory)
- https://github.com/Consensys/gnark/pull/1307 (Patch, Issue Tracking)
- https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d (Patch)