Security mailing lists by PureSourceCode

CVE-2023-44378

MEDIUM 5.5CVSS 3.1

gnark unsoundness in variable comparison / non-unique binary decomposition

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.

Published
9 Oct 2023
Last modified
10 Sep 2026
Assigned by
security-advisories@github.com
NVD status
Modified
Weakness
CWE-191CWE-697
Also known as
GHSA-498w-5j49-vqjgGO-2023-2098
Sources
NVDJSONOSV GHSA-498w-5j49-vqjgJSONOSV GO-2023-2098JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 HIGH 7.1 CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.5 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD consensys gnark
cpe:2.3:a:consensys:gnark:*:*:*:*:*:*:*:*
< 0.9.0 0.9.0
OSV Go github.com/consensys/gnark < 0.9.0 0.9.0

References

History

  • 25 Nov 2026 20:37 UTC · NVD: first stored (published 9 Oct 2023)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 9 Oct 2023)
  • 25 Nov 2026 20:13 UTC · OSV: first stored (published 4 Oct 2023)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.