CVE-2024-50354: consensys gnark Uncontrolled Resource Consumption
CVSS: 5.5v3.1MediumAnalyzed
AliasesGHSA-cph5-3pgr-c82gGO-2024-3244
Published 31-10-2024Last modified 31-10-2024
Vulnerability summary
CVE-2024-50354 is a medium (CVSS 5.5) Uncontrolled Resource Consumption vulnerability in consensys gnark. EPSS estimates a 0.33% chance of exploitation in the next 30 days, higher than 24.2% of scored vulnerabilities. 1 public exploit is recorded.
CVSS score
5.5/10
010
Medium · v3.1 (CVE.org)EPSS score
0.33%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits1github
Advisory lineage
Upstream 0 · Downstream 4 · Related 4Timeline
- 31-10-2024PublishedVulnerability first disclosed.
- 31-10-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versionsMedium 6.8Preferred score · OSV · Go (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NSourcesSingle source
Medium 5.5Preferred score · CVE.org (CNA)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HSourcesAll 3 agree
- OSV · GoEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.33%
Chance of exploitation in the next 30 days
Percentile
24%
Versus all other CVEs
30-day change
0.00 pp
From 0.33% on 21-09-2026
21-09-202621-10-2026
EPSS score0.33%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 foundGnark
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Consensys1 product
- gnark≤ 0.11.0 | < 0.12.0
Github.com/consensys1 product
- gnark< 0.11.1 | < 0.12.0
2 vendors · 2 products
References
6 links- github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82gX Refsource CONFIRMWEBExploitVendor Advisory
- github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191dX Refsource MISCWEBFIXPatch
- github.com/Consensys/gnarkPACKAGE