cve.bz

CVE-2023-44378 consensys gnark: Integer Underflow (Wrap or Wraparound)

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in consensys gnark. EPSS 0.2% estimated probability of exploitation activity in the next 30 days. Fixed in github.com/consensys/gnark 0.9.0.

On this page
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.

Severity

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
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 14th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2024-09-19. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-191 Integer Underflow (Wrap or Wraparound)
CWE-697 Incorrect Comparison
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-44378 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-44378?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-44378?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-44378 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
consensys:gnarkbefore 0.9.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-498w-5j49-vqjgGogithub.com/consensys/gnark<0.9.00.9.0
GO-2023-2098Gogithub.com/consensys/gnark<0.9.00.9.0

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-697 (29).

References

Check your stackJSON