{"cve":"CVE-2024-45040","nvd":{"published":"2024-09-06T13:15:04.893","modified":"2026-06-17T07:53:28.623","status":"Analyzed","description":"gnark is a fast zk-SNARK library that offers a high-level API to design circuits. Prior to version 0.11.0, commitments to private witnesses in Groth16 as implemented break the zero-knowledge property. The vulnerability affects only Groth16 proofs with commitments. Notably, PLONK proofs are not affected. The vulnerability affects the zero-knowledge property of the proofs - in case the witness (secret or internal) values are small, then the attacker may be able to enumerate all possible choices to deduce the actual value. If the possible choices for the variables to be committed is large or there are many values committed, then it would be computationally infeasible to enumerate all valid choices. It doesn't affect the completeness/soundness of the proofs. The vulnerability has been fixed in version 0.11.0. The patch to fix the issue is to add additional randomized value to the list of committed value at proving time to mask the rest of the values which were committed. As a workaround, the user can manually commit to a randomized value.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","score":5.9},"cwes":["CWE-200"],"references":["https://github.com/Consensys/gnark/commit/afda68a38acca37becb8ba6d8982d03fee9559a0","https://github.com/Consensys/gnark/pull/1245","https://github.com/Consensys/gnark/security/advisories/GHSA-9xcg-3q8v-7fq6"],"products":["consensys:gnark-crypto"],"source":"nvd","synced_at":"2026-10-19T21:54:38.012257375+00:00"},"epss":{"cve":"CVE-2024-45040","score":0.00427,"percentile":0.37003,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9xcg-3q8v-7fq6","url":"https://osv.dev/vulnerability/GHSA-9xcg-3q8v-7fq6","summary":"gnark commitments to private witnesses in Groth16 as implemented break zero-knowledge property","modified":"2024-11-18T16:27:10Z","packages":[{"ecosystem":"Go","name":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","ranges":["<0.11.0"],"fixed":["0.11.0"]},{"ecosystem":"Go","name":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","ranges":["<0.11.0"],"fixed":["0.11.0"]}]},{"id":"GO-2024-3123","url":"https://osv.dev/vulnerability/GO-2024-3123","summary":"Commitments to private witnesses in Groth16 as implemented break zero-knowledge property in github.com/consensys/gnark","modified":"2024-09-13T22:27:41.433242Z","packages":[{"ecosystem":"Go","name":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","ranges":["<0.11.0"],"fixed":["0.11.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}