{"id":"CVE-2024-50354","state":"PUBLISHED","title":"Out-of-memory during deserialization with crafted inputs","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.","publishedAt":"2024-10-31T15:59:30.063Z","updatedAt":"2024-10-31T16:53:21.298Z","severity":{"score":5.5,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"GitHub_M"},"assigner":"GitHub_M","products":["Consensys gnark"],"affected":[{"vendor":"Consensys","product":"gnark","versions":[{"version":"<= 0.11.0","status":"affected"}]}],"references":["https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g","https://github.com/Consensys/gnark/pull/1307","https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d"],"weaknesses":["CWE-400"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50354.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2024-50354","state":"PUBLISHED","datePublished":"2024-10-31T15:59:30.063Z","dateUpdated":"2024-10-31T16:53:21.298Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2024-10-22T17:54:40.958Z"},"containers":{"cna":{"title":"Out-of-memory during deserialization with crafted inputs","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Consensys","product":"gnark","versions":[{"version":"<= 0.11.0","status":"affected"}]}],"references":[{"url":"https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g","name":"https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Consensys/gnark/pull/1307","name":"https://github.com/Consensys/gnark/pull/1307","tags":["x_refsource_MISC"]},{"url":"https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d","name":"https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"attackComplexity":"LOW","attackVector":"LOCAL","availabilityImpact":"HIGH","baseScore":5.5,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"NONE","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"NONE","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","version":"3.1"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-400","lang":"en","description":"CWE-400: Uncontrolled Resource Consumption","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2024-10-31T15:59:30.063Z"},"source":{"advisory":"GHSA-cph5-3pgr-c82g","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","affected":[{"vendor":"consensys","product":"gnark","defaultStatus":"unknown","versions":[{"version":"0","status":"affected","lessThanOrEqual":"0.11.0","versionType":"custom"}],"cpes":["cpe:2.3:a:consensys:gnark:*:*:*:*:*:*:*:*"]}],"metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2024-10-31T16:52:29.171674Z","id":"CVE-2024-50354","options":[{"Exploitation":"poc"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-10-31T16:53:21.298Z"}}]}}}