# CVE-2023-44378: gnark vulnerable to unsoundness in variable comparison/non-unique binary decomposition

- Severity: High 7.1 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Published: 2023-10-04T14:44:08.000Z
- Modified: 2026-09-10T03:49:24.650Z
- Also known as: GHSA-498w-5j49-vqjg, GO-2023-2098
- Weaknesses: CWE-191, CWE-697
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Consensys gnark: < 0.9.0; before 0.9.0
- github.com/consensys/gnark (Go): before 0.9.0

## Every score

- GitHub_M: CVSS:3.1 7.1 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N`
- GitHub: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/Consensys/gnark/security/advisories/GHSA-498w-5j49-vqjg> (mitigation, patch, third-party-advisory, web)
- <https://github.com/zkopru-network/zkopru/issues/116> (not-applicable, report, web)
- <https://github.com/Consensys/gnark/commit/59a4087261a6c73f13e80d695c17b398c3d0934f> (fix, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-44378> (advisory)
- <https://github.com/Consensys/gnark/pull/835> (fix, web)
- <https://github.com/Consensys/gnark> (package)
- <https://github.com/advisories/GHSA-498w-5j49-vqjg> (advisory)

## Sources

- CVE List: [CVE-2023-44378](https://www.cve.org/CVERecord?id=CVE-2023-44378), CVE Terms of Use, modified 2024-09-19
- GitHub Advisory Database: [GHSA-498w-5j49-vqjg](https://github.com/advisories/GHSA-498w-5j49-vqjg), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2023-2098](https://pkg.go.dev/vuln/GO-2023-2098), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2023-44378](https://nvd.nist.gov/vuln/detail/CVE-2023-44378), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-44378 · Whole record: https://cve.day/CVE-2023-44378.json · Rebuilt by cve.day 2026-11-25T22:58:28.538Z
