Live threats

All CVEs / Consensys

CVE-2023-44378Consensys Gnark

Medium 5.5

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

What happens

gnark is a zk-SNARK library that offers a high-level API to design circuits. Prior to version 0.9.0, for some in-circuit values, it is possible to construct two valid decomposition to bits. In addition to the canonical decomposition of `a`, for small values there exists a second decomposition for `a+r` (where `r` is the modulus the values are being reduced by). The second decomposition was possible due to overflowing the field where the values are defined. Upgrading to version 0.9.0 should fix the issue without needing to change the calls to value comparison methods.

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.9.0 0.9.0 go get github.com/consensys/gnark@v0.9.0
Go github.com/consensys/gnark < 0.9.0 0.9.0 go get github.com/consensys/gnark@v0.9.0

Per OSV / GitHub Advisories (GHSA-498w-5j49-vqjg, GO-2023-2098). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
consensysgnark< 0.9.0

Official sources

References

Links published by the sources. Open them with care.