# CVE-2024-45039: gnark's Groth16 commitment extension unsound for more than one commitment

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.2
- **CVSS:** 6.2 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.19% (percentile 9, 2026-12-04)
- **CWE:** CWE-200
- **Aliases:** GHSA-q3hw-3gm4-w5cr, GO-2024-3122
- **Published:** 2024-09-06T12:56:15.080Z
- **Modified:** 2026-06-17T07:53:28.500Z

## Who should check

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

## 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

- Go `github.com/consensys/gnark`: affected \< 0.11.0; fixed 0.11.0 (osv)
- Consensys gnark: \< 0.11.0 (cvelist)

## Mitigation

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.19% chance of exploitation in the next 30 days (as of 2026-12-04).

### 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.

## References

- vendor: <https://github.com/Consensys/gnark/security/advisories/GHSA-q3hw-3gm4-w5cr>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-45039>
- patch: <https://github.com/Consensys/gnark/commit/e7c66b000454f4d2a4ae48c005c34154d4cfc2a2>
- other: <https://github.com/Consensys/gnark>
- other: <https://pkg.go.dev/vuln/GO-2024-3122>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-45039>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-q3hw-3gm4-w5cr> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GO-2024-3122> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-45039> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-45039>
