{"id":"CVE-2024-50354","published":"2024-10-31T15:59:30Z","modified":"2024-10-31T16:53:21Z","title":"Out-of-memory during deserialization with crafted inputs","vendor":"Consensys","product":"gnark","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00322,"percentile":0.17696,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Consensys/gnark/pull/1307","tags":["x_refsource_MISC"]},{"url":"https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d","tags":["x_refsource_MISC"]}],"priority":{"score":7.4,"factors":[{"name":"EPSS percentile","points":3.54},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"consensys","affectedVersions":[{"vendor":"Consensys","product":"gnark","versions":["<= 0.11.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-10-31T16:52:29.171674Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/consensys/gnark","vulnerableRanges":["<0.11.1","<0.12.0"],"patched":["0.11.1","0.12.0"],"from":["GHSA-cph5-3pgr-c82g","GO-2024-3244"],"provenance":"source"}],"summary":{"text":"The flaw is an uncontrolled resource consumption issue in the deserialization of Groth16 verification keys in the gnark zk-SNARK library, a Consensys product. Deserializing a crafted verification key causes excessive memory allocation, leading to an out-of-memory crash of the process; per the attack vector, exploitation requires local access and low privileges, with no user interaction.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:09:08Z"},"euvd":{"id":"EUVD-2024-3021","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-44378","published":"2023-10-09","fixed":"0.9.0","kev":false},{"cve":"CVE-2024-45039","published":"2024-09-06","fixed":"0.11.0","kev":false,"link":{"from":"CVE-2024-45039","to":"CVE-2024-50354","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/consensys/gnark","fromFixed":"0.11.0","toFixed":"0.11.1","daysApart":55}]}},{"cve":"CVE-2024-45040","published":"2024-09-06","fixed":"0.11.0","kev":false},{"cve":"CVE-2024-50354","published":"2024-10-31","fixed":"0.12.0","kev":false},{"cve":"CVE-2025-58157","published":"2025-08-29","fixed":"0.13.0","kev":false},{"cve":"CVE-2025-57801","published":"2025-08-22","fixed":"0.14.0","kev":false}],"package":"Go:github.com/consensys/gnark"}}