CVE-2024-50354
MEDIUM 5.5CVSS 3.1Gnark out-of-memory during deserialization with crafted inputs
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.
- Published
- 31 Oct 2024
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-400
- Also known as
- GHSA-cph5-3pgr-c82gGO-2024-3244
- Sources
- NVDJSONOSV GHSA-cph5-3pgr-c82gJSONOSV GO-2024-3244JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | consensys | gnarkcpe:2.3:a:consensys:gnark:*:*:*:*:*:*:*:* |
< 0.12.0 | 0.12.0 |
| OSV | Go | github.com/consensys/gnark | < 0.11.1 | 0.11.1 |
| OSV | Go | github.com/consensys/gnark | < 0.12.0 | 0.12.0 |
References
- https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d · Patch, WEB, FIX
- https://github.com/Consensys/gnark/pull/1307 · Issue Tracking, Patch, WEB, FIX
- https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-50354 · ADVISORY
- https://github.com/Consensys/gnark · PACKAGE
- https://github.com/advisories/GHSA-cph5-3pgr-c82g · ADVISORY
History
- 25 Nov 2026 20:56 UTC · NVD: first stored (published 31 Oct 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Nov 2024)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 31 Oct 2024)