{"id":"CVE-2024-45039","published":"2024-09-06T12:56:15Z","modified":"2024-09-06T13:59:16Z","title":"gnark's Groth16 commitment extension unsound for more than one commitment","vendor":"Consensys","product":"gnark","tier":"tail","description":{"text":"gnark is a fast zk-SNARK library that offers a high-level API to design circuits. Versions prior to 0.11.0 have a soundness issue - in case of multiple commitments used inside the circuit the prover is able to choose all but the last commitment. As gnark uses the commitments for optimized non-native multiplication, lookup checks etc. as random challenges, then it could impact the soundness of the whole circuit. However, using multiple commitments has been discouraged due to the additional cost to the verifier and it has not been supported in the recursive in-circuit Groth16 verifier and Solidity verifier. gnark's maintainers expect the impact of the issue be very small - only for the users who have implemented the native Groth16 verifier or are using it with multiple commitments. We do not have information of such users. The issue has been patched in version 0.11.0. As a workaround, users should follow gnark maintainers' recommendation to use only a single commitment and then derive in-circuit commitments as needed using the `std/multicommit` package.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.2,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0019,"percentile":0.08835,"provenance":"source"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"references":[{"url":"https://github.com/Consensys/gnark/security/advisories/GHSA-q3hw-3gm4-w5cr","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/Consensys/gnark/commit/e7c66b000454f4d2a4ae48c005c34154d4cfc2a2","tags":["x_refsource_MISC"]}],"priority":{"score":6.1,"factors":[{"name":"EPSS percentile","points":1.77},{"name":"CVSS severity","points":4.34}]},"vendorSlug":"consensys","affectedVersions":[{"vendor":"Consensys","product":"gnark","versions":["< 0.11.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-06T13:58:43.116066Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/consensys/gnark","vulnerableRanges":["<0.11.0"],"patched":["0.11.0"],"from":["GHSA-q3hw-3gm4-w5cr","GO-2024-3122"],"provenance":"source"}],"summary":{"text":"In gnark, the Groth16 commitment extension (the component that handles multiple commitments inside a circuit) fails to bind the prover to all but the last commitment in versions prior to 0.11.0. An attacker acting as the prover can exploit this when a circuit uses multiple commitments, which could weaken the soundness of the whole circuit, though the maintainers expect real-world impact to be very small because multiple commitments are discouraged and unsupported in the recursive and Solidity verifiers, and no affected users are known.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:17:34Z"},"euvd":{"id":"EUVD-2024-2851","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},{"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,"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-2025-58157","published":"2025-08-29","fixed":"0.13.0","kev":false}],"package":"Go:github.com/consensys/gnark"}}