Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-45039

MEDIUM 6.2EPSS 14%

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

Also known as GHSA-q3hw-3gm4-w5cr, GO-2024-3122

Mitigation

  • Upgrade github.com/consensys/gnark to 0.11.0 or later.

Who should check

  • Projects that depend on Go package github.com/consensys/gnark (< 0.11.0)
  • Anyone running Consensys gnark < 0.11.0

Vulnerability facts

Affected
github.com/consensys/gnark < 0.11.0
Fixed in
0.11.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
6.2 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: None
  • Integrity impact: High
  • Availability impact: None
EPSS
0.29% chance of exploitation in 30 days (percentile 14, 2026-11-26)
CWE
CWE-200
Published
Modified

Description

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.

Affected and fixed versions

Package / productAffectedFixedSource
Go github.com/consensys/gnark< 0.11.00.11.0osv
Consensys gnark< 0.11.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-45039. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-45039.md
Affected: github.com/consensys/gnark < 0.11.0
Fixed in: 0.11.0

Steps:
1. Search this machine and project for github.com/consensys/gnark (Go), Consensys gnark: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-45039 being exploited?

There is no confirmed exploitation: CVE-2024-45039 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.29% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-45039?

Medium: CVSS 6.2 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-45039?

github.com/consensys/gnark < 0.11.0.

Is there a fix for CVE-2024-45039?

Yes. Fixed in 0.11.0. Upgrade github.com/consensys/gnark to 0.11.0 or later.

How do I check if I'm affected by CVE-2024-45039?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors