{"answers":{"affected":"3 open source packages ship an affected version, including github.com/consensys/gnark. It affects 1 product.","exploited":"There is no known exploitation of CVE-2023-44378 in the wild and no public exploit code.","fix":"Upgrade github.com/consensys/gnark to 0.9.0 or later.","what":"CVE-2023-44378 is a high-severity vulnerability in Consensys gnark, published on 9 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2023-44378 and fix it if it is affected.\n\nWhat it is: CVE-2023-44378 is a high-severity vulnerability in Consensys gnark, published on 9 Oct 2023. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2023-44378 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- github.com/consensys/gnark (Go): affected all versions; fixed in 0.9.0\n- github.com/consensys/gnark (Go): affected all versions; fixed in 0.9.0\n- github.com/consensys/gnark (Go): affected all versions; fixed in 0.9.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-44378/ (Markdown: https://insights.sbomify.com/CVE-2023-44378/index.md)","id":"CVE-2023-44378","markdown":"https://insights.sbomify.com/CVE-2023-44378/index.md","name":"CVE-2023-44378","record":{"aliases":["GHSA-498w-5j49-vqjg","GO-2023-2098"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["security_bypass"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Go zk-SNARK library","requires_auth":"none","summary":"Attackers can exploit unsoundness in variable comparison to create valid but non-unique bit decompositions, bypassing circuit constraints in gnark.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"gnark","vendor":"consensys"}],"cvss":{"score":7.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-697","name":"Incorrect Comparison"},{"id":"CWE-191","name":"Integer Underflow (Wrap or Wraparound)"}],"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.","ecosystems":["Go"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"gnark vulnerable to unsoundness in variable comparison/non-unique binary decomposition","id":"CVE-2023-44378","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"Go","product":null,"products":[],"type":"other","year":"2023"},"n_packages":3,"n_references":3,"next":{"headline":"baserCMS Cross-site Scripting vulnerability in Site search Feature","id":"CVE-2023-44379"},"packages":[{"ecosystem":"Go","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/consensys/gnark","purl":null,"source":"GHSA-498w-5j49-vqjg"},{"ecosystem":"Go","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","source":"GHSA-498w-5j49-vqjg"},{"ecosystem":"Go","fixed":["0.9.0"],"introduced":["0"],"last_affected":[],"package":"github.com/consensys/gnark","purl":"pkg:golang/github.com/consensys/gnark","source":"GO-2023-2098"}],"prev":{"headline":"This CVE ID has been rejected or withdrawn by its CVE Numbering Authority.","id":"CVE-2023-44377"},"products":["gnark"],"published":"2023-10-09","related":[{"cvss_score":8.6,"headline":"gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks","id":"CVE-2025-57801","kev_date_added":null,"published":"2025-08-22"},{"cvss_score":7.5,"headline":"gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm","id":"CVE-2025-58157","kev_date_added":null,"published":"2025-08-29"},{"cvss_score":5.5,"headline":"Out-of-memory during deserialization with crafted inputs","id":"CVE-2024-50354","kev_date_added":null,"published":"2024-10-31"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"Go Vulnerability Database","prefix":"GO"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2024-09-19","vendors":["Consensys"]},"summary":"Attackers can exploit unsoundness in variable comparison to create valid but non-unique bit decompositions, bypassing circuit constraints in gnark.","url":"https://insights.sbomify.com/CVE-2023-44378/"}