CVE-2023-44378 json
gnark vulnerable to unsoundness in variable comparison/non-unique binary decomposition
published 2023-10-04 3 y ago modified 2026-09-10 1 mo ago also GHSA-498w-5j49-vqjg , GO-2023-2098 , EUVD-2023-2641
- cvss
- 7.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 14%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- go github.com/consensys/gnark 0.9.0
- consensys gnark 0.9.0
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 2 y ago
Exploit prediction
0.23% chance of exploitation in the next 30 days, higher than 14% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
| GitHub | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/consensys/gnark | <0.9.0 |
0.9.0 |
Affected products
- Consensys gnark
Classification
References
-
github.com
/Consensys/gnark/commit/59a4087261a6c73f13e80d695c17b398c3d0934f
web, patch
-
github.com
/Consensys/gnark/security/advisories/GHSA-498w-5j49-vqjg
web, mitigation, patch, third-party-advisory
-
github.com
/Consensys/gnark/pull/835
web, patch
-
github.com
/zkopru-network/zkopru/issues/116
web, not-applicable, report
-
nvd.nist.gov
/vuln/detail/CVE-2023-44378
advisory
-
github.com
/Consensys/gnark
package
-
github.com
/advisories/GHSA-498w-5j49-vqjg
advisory
Sources
- CVE List CVE-2023-44378
- GitHub Advisory GHSA-498w-5j49-vqjg
- NVD CVE-2023-44378
- OSV GO-2023-2098
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.