{"id":"CVE-2024-50354","summary":"Out-of-memory during deserialization with crafted inputs","details":"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.","aliases":["GHSA-cph5-3pgr-c82g","GO-2024-3244"],"modified":"2026-05-18T05:57:18.797185288Z","published":"2024-10-31T15:59:30.063Z","related":["SUSE-SU-2024:3950-1","SUSE-SU-2025:0429-1","openSUSE-SU-2024:0350-1","openSUSE-SU-2024:14452-1"],"database_specific":{"cwe_ids":["CWE-400"],"cna_assigner":"GitHub_M","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50354.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50354.json"},{"type":"ADVISORY","url":"https://github.com/Consensys/gnark/security/advisories/GHSA-cph5-3pgr-c82g"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50354"},{"type":"FIX","url":"https://github.com/Consensys/gnark/commit/47ae846339add2bdf9983e499342bfdfe195191d"},{"type":"FIX","url":"https://github.com/Consensys/gnark/pull/1307"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/consensys/gnark","events":[{"introduced":"0"},{"fixed":"47ae846339add2bdf9983e499342bfdfe195191d"}]}],"versions":["v0.11.0","v0.10.0","v0.9.1","v0.9.0","v0.9.0-alpha","v0.8.1","v0.8.0","v0.7.1","v0.6.4","v0.7.0","v0.6.3","v0.6.2","v0.6.1","v0.6.0","v0.5.2","v0.5.1","v0.5.0","v0.4.0","v0.3.8","v0.3.7","v0.3.6","v0.3.5","v0.3.4","v0.3.3","v0.3.0","v0.3.0-alpha","v0.2.0-alpha","v0.1.0-alpha"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-50354.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"}]}