Home / Consensys / gnark / CVE-2024-45040
CVE-2024-45040: is it exploited, and which versions of Consensys gnark are affected and fixed?
CVE-2024-45040 is an information disclosure vulnerability in Consensys gnark. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 15:39 UTC). Affected: github.com/consensys/gnark before 0.11.0 (GitHub advisory GHSA-9xcg-3q8v-7fq6). Fixed in 0.11.0 (GitHub advisory GHSA-9xcg-3q8v-7fq6). Severity: Medium (5.9, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 15:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:26 UTC.
What is CVE-2024-45040?
gnark's commitments to private witnesses in Groth16 as implemented break zero-knowledge property
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.
From the CVE record by GitHub_M, last updated September 6, 2024, 13:57 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Consensys | gnark | < 0.11.0 |
As the CVE record by GitHub_M states it, last updated September 6, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/consensys/gnark | < 0.11.0 | 0.11.0 | GHSA-9xcg-3q8v-7fq6 |
| Go | github.com/consensys/gnark | < 0.11.0 | 0.11.0 | GHSA-9xcg-3q8v-7fq6 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated November 18, 2024. Summary: gnark commitments to private witnesses in Groth16 as implemented break zero-knowledge property.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| consensys | gnark-crypto | before 0.11.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:53 UTC.
How severe is CVE-2024-45040?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | GitHub_M |
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-45040 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: partial (CISA ADP, September 6, 2024)
- EPSS
- 0.43% probability of exploitation activity in the next 30 days, percentile 38.9 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
Where are the vendor advisories and references?
- https://github.com/Consensys/gnark/security/advisories/GHSA-9xcg-3q8v-7fq6 x_refsource_CONFIRM
- https://github.com/Consensys/gnark/pull/1245 x_refsource_MISC
- https://github.com/Consensys/gnark/commit/afda68a38acca37becb8ba6d8982d03fee9559a0 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- August 21, 2024
- Published
- September 6, 2024, 12:53 UTC
- CVE record updated
- September 6, 2024, 13:57 UTC by GitHub_M
- NVD
- Analyzed, last modified June 17, 2026, 07:53 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:26 UTC; KEV December 3, 2026, 15:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect gnark?
- Aug 29, 2025CVE-2025-58157 Consensys gnark: denial of service (uncontrolled resource consumption)
- Aug 22, 2025CVE-2025-57801 Consensys gnark: cryptographic signature not verified
- Oct 31, 2024CVE-2024-50354 Consensys gnark: denial of service (uncontrolled resource consumption)
- Sep 6, 2024CVE-2024-45039 Consensys gnark: information disclosure
- Oct 9, 2023CVE-2023-44378 Consensys gnark: integer underflow
Questions about CVE-2024-45040
Is CVE-2024-45040 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 15:39 UTC. FIRST's EPSS gives it a 0.43% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Consensys gnark are affected by CVE-2024-45040?
github.com/consensys/gnark before 0.11.0, per the GitHub advisory GHSA-9xcg-3q8v-7fq6. The tables above give every range the sources list.
Which version fixes CVE-2024-45040?
0.11.0, per the GitHub advisory GHSA-9xcg-3q8v-7fq6. Check the vendor's advisory before you rely on it.
How severe is CVE-2024-45040?
Medium (5.9, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2024-45040?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.