Live threats

All CVEs / Consensys

CVE-2024-50354Consensys Gnark

Medium 5.5

Priority
33
CVSS 3.1
5.5
EPSS
0.3%
probability of exploitation in 30 days · percentile 18
Auth required
Yes
Published
Oct 31, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-400
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

What happens

gnark is a fast zk-SNARK library that offers a high-level API to design circuits. In gnark 0.11.0 and earlier, deserialization of Groth16 verification keys allocate excessive memory, consuming a lot of resources and triggering a crash with the error fatal error: runtime: out of memory.

Original NVD text.

What to do

  1. Apply the vendor's security update for Gnark.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/consensys/gnark < 0.11.1 0.11.1 go get github.com/consensys/gnark@v0.11.1
Go github.com/consensys/gnark < 0.12.0 0.12.0 go get github.com/consensys/gnark@v0.12.0

Per OSV / GitHub Advisories (GHSA-cph5-3pgr-c82g, GO-2024-3244). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
consensysgnark< 0.12.0

Official sources

References

Links published by the sources. Open them with care.