Read the docs
TI-2024-30151 Aliases CVE-2024-45039GHSA-q3hw-3gm4-w5cr

gnark's Groth16 commitment extension unsound for more than one commitment

Priority MEDIUM 61CWE-200Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
None · High · None
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-200.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.0019 8th percentileScored 2026-11-07
Fix Fixed gnark (Consensys): 0.11.0github.com/consensys/gnark (Go): 0.11.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
No
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Consensysgnarkbefore 0.11.00.11.0Patch availableCNA
—github.com/consensys/gnark (Go)before 0.11.00.11.0Patch availableGHSA-q3hw-3gm4-w5cr
  • gnark VendorConsensys Affected before 0.11.0 Fixed in 0.11.0 Patch available CNA
  • github.com/consensys/gnark (Go) Vendor— Affected before 0.11.0 Fixed in 0.11.0 Patch available GHSA-q3hw-3gm4-w5cr

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:consensys:gnark-crypto:*:*:*:*:*:*:*:*before 0.11.0VulnerableConsensys
  • cpe:2.3:a:consensys:gnark-crypto:*:*:*:*:*:*:*:* Versions before 0.11.0 Vulnerable ·Consensys

Remediation

  • Fix · CNA gnark (Consensys) Fixed in 0.11.0
  • Fix · GHSA-q3hw-3gm4-w5cr github.com/consensys/gnark (Go) Fixed in 0.11.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2024-45039
  2. 2026-10-03 Alias added: GHSA-q3hw-3gm4-w5cr

References

  • TI-2024-30152 gnark's commitments to private witnesses in Groth16 as implemented break zero-knowledge property CVSS 3.1MEDIUM 5.9
  • TI-2023-23797 Consensys gnark-crypto through 0.11.2 allows Signature Malleability. CVSS 3.1CRITICAL 9.8

Sources