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 (23.1th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 23rd percentile — 23.1% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.003 · newest: 0.003 · change: 0.000
Affected products
- Consensys Gnark — versions <= 0.11.0
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g (Exploit, Vendor Advisory)
- github.com/Consensys/gnark/pull/1307 (Patch, Issue Tracking)
- github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d (Patch)
Frequently asked questions
- What is CVE-2024-50354?
- CVE-2024-50354 is a medium-severity vulnerability in Consensys Gnark, classified under Uncontrolled Resource Consumption. CVSS score: 5.5/10. Published 2024-10-31.
- How severe is CVE-2024-50354?
- Medium severity. CVSS v3 base score is 5.5 out of 10.
- Is CVE-2024-50354 known to be exploited?
- 1 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.