{"id":"GO-2025-3929","revision":null,"records":[{"revision":"a46a767d4c934aae9a0061fca5b1d911","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-58157","aliases":[],"title":"gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm","description":"gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge quickly enough for some of the inputs. This issue has been patched in version 0.13.0.","state":0,"publishedAt":"2025-08-29T21:21:35.677+00:00","modifiedAt":"2025-09-02T14:09:48.386+00:00","affected":[{"ecosystem":"Vendor product","name":"gnark","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"Consensys\",\n                    \"product\": \"gnark\",\n                    \"versions\": [\n                        {\n                            \"version\": \"= 0.12.0\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8","https://github.com/Consensys/gnark/issues/1483","https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d","https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-58157","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-58157","identifiers":["CVE-2025-58157"]},"retained":false,"historicalAffected":[]},{"revision":"995ca6aa6e5341618ccf4b9751266afc","observedAt":"2026-11-09T03:13:07.095+00:00","statement":{"source":"euvd","id":"EUVD-2025-28663","aliases":["CVE-2025-58157","GHSA-9fvj-xqr2-xwg8"],"title":"gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge qu…","description":"gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge quickly enough for some of the inputs. This issue has been patched in version 0.13.0.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":null}],"references":["https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8","https://github.com/Consensys/gnark/issues/1483","https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d","https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-28663","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Aug 29, 2025, 9:21:35 PM","dateUpdated":"Sep 2, 2025, 2:09:48 PM"},"relatedAdvisories":[{"id":"openSUSE-SU-2025:15564-1","title":"govulncheck-vulndb-0.0.20250917T170349-1.1 on GA media","vulnerabilityIds":["CVE-2025-4953","CVE-2025-54123","CVE-2025-54376","CVE-2025-58058","CVE-2025-58063","CVE-2025-58157","CVE-2025-58158","CVE-2025-58430","CVE-2025-58437","CVE-2025-58445","CVE-2025-58450","CVE-2025-59358","CVE-2025-59359","CVE-2025-59360","CVE-2025-59361","CVE-2025-7445","CVE-2025-8396","CVE-2025-9072","CVE-2025-9076","CVE-2025-9078","CVE-2025-9084"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-28663","identifiers":["EUVD-2025-28663","CVE-2025-58157","GHSA-9fvj-xqr2-xwg8"]},"retained":false,"historicalAffected":[]},{"revision":"1ce51da53b3a451d8c41650cb914ed01","observedAt":"2026-10-25T03:17:18.142+00:00","statement":{"source":"nvd","id":"CVE-2025-58157","aliases":[],"title":"gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge qu…","description":"gnark is a zero-knowledge proof system framework. In version 0.12.0, there is a potential denial of service vulnerability when computing scalar multiplication is using the fake-GLV algorithm. This is because the algorithm didn't converge quickly enough for some of the inputs. This issue has been patched in version 0.13.0.","state":0,"publishedAt":"2025-08-29T22:15:32.7+00:00","modifiedAt":"2026-10-18T21:10:00.12+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"severity":"HIGH"}],"references":["https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d","https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc","https://github.com/Consensys/gnark/issues/1483","https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-58157","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Analyzed","weaknesses":["CWE-400"],"productCriteria":["cpe:2.3:a:consensys:gnark:0.12.0:*:*:*:*:*:*:*"],"sourceDates":{"published":"2025-08-29T22:15:32.700","lastModified":"2026-10-18T21:10:00.120"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2025-58157","identifiers":["CVE-2025-58157"]},"retained":false,"historicalAffected":[]},{"revision":"f7ff51e58991424ea5234e12066abc82","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-9fvj-xqr2-xwg8","aliases":["CVE-2025-58157","GO-2025-3929"],"title":"gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm","description":"### Impact\n\nFor optimizing the scalar multiplication algorithm in circuit for some curves, gnark uses fake-GLV algorithm in case the curve doesn't support true-GLV. For this to work, we need to compute the scalar decomposition using the Half GCD method in gnark-crypto. However, for some of the inputs the algorithm didn't converge quickly enough.\n\nIn case the prover accepts untrusted witness, it could lead to denial of service as the prover gets stuck in a very slowly converging loop.\n\nThanks to @feltroidprime for reporting the issue and proposing a fix.\n\n### Patches\n\nThe issue has been patched in gnark-crypto commit https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d. The dependency update is implemented in gnark commit https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc.\n\n### Workarounds\n\nThis update doesn't require recompiling the circuits as the issue is in the hint function. The users can update the gnark-crypto dependency to the fixed version.\n\n### References\n\n* See bug report https://github.com/Consensys/gnark/issues/1483\n* Fake GLV description https://ethresear.ch/t/fake-glv-you-dont-need-an-efficient-endomorphism-to-implement-glv-like-scalar-multiplication-in-snark-circuits/20394","state":0,"publishedAt":"2025-08-29T20:20:13+00:00","modifiedAt":"2025-09-17T17:42:12.997037+00:00","affected":[{"ecosystem":"Go","name":"github.com/consensys/gnark","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.12.0"},{"kind":"fixed","version":"0.13.0"}]}],"versions":["0.12.0"],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8","https://nvd.nist.gov/vuln/detail/CVE-2025-58157","https://github.com/Consensys/gnark/issues/1483","https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d","https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc","https://github.com/Consensys/gnark"],"sourceUrl":"https://github.com/advisories/GHSA-9fvj-xqr2-xwg8","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-9fvj-xqr2-xwg8","identifiers":["GHSA-9fvj-xqr2-xwg8","CVE-2025-58157","GO-2025-3929"]},"retained":false,"historicalAffected":[]},{"revision":"6c7bdf646d68493db24de0f600cc907e","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2025-3929","aliases":["CVE-2025-58157","GHSA-9fvj-xqr2-xwg8"],"title":"Denial of service when computing scalar multiplication using fake-GLV algorithm in github.com/consensys/gnark","description":"Denial of service when computing scalar multiplication using fake-GLV algorithm in github.com/consensys/gnark","state":0,"publishedAt":"2025-09-17T17:03:38+00:00","modifiedAt":"2026-03-03T04:57:27.659807+00:00","affected":[{"ecosystem":"Go","name":"github.com/consensys/gnark","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.13.0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8","https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d","https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc","https://github.com/Consensys/gnark/issues/1483"],"sourceUrl":"https://osv.dev/vulnerability/GO-2025-3929","license":"OSV · upstream source license applies","key":"osv:GO-2025-3929","identifiers":["GO-2025-3929","CVE-2025-58157","GHSA-9fvj-xqr2-xwg8"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-09T06:02:15.5744295+00:00","complete":true,"records":1769,"lastAttemptAt":"2026-11-09T06:02:15.5744295+00:00","lastSuccessAt":"2026-11-09T06:02:15.8100724+00:00","error":null,"lastVerifiedAt":"2026-11-09T06:02:15.8100756+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-24e6fde7b744113daefb8f6135035fb8a5c69c9617c9c0d40574a0376532ffd3-61bf15172f364246efc204ad9b25e3f89710939e13c23b3efb3d009b5fdad808","complete":true,"records":421290,"lastAttemptAt":"2026-11-09T06:02:14.4940664+00:00","lastSuccessAt":"2026-11-09T05:02:14.5253969+00:00","error":"HttpRequestException","lastVerifiedAt":"2026-11-09T05:02:14.5383867+00:00","snapshotPublishedAt":"2026-11-09T04:29:38+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-52f0bd58a8564ba89a1952b43ef3bc92","complete":false,"records":13654,"lastAttemptAt":"2026-11-09T06:14:09.0160642+00:00","lastSuccessAt":"2026-11-09T06:14:09.013+00:00","error":"8 identifier lookups failed; latest failures include HTTP 403. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-09T06:14:09.013+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13674,"expectedIdentifiers":13706,"failedIdentifiers":8},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-09T06:02:15.5744295+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-09T06:02:15.5744295+00:00","lastSuccessAt":"2026-11-09T06:02:15.8108397+00:00","error":null,"lastVerifiedAt":"2026-11-09T06:02:15.81084+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-5a44a451442747cb81d83104fe1e7771","complete":true,"records":13666,"lastAttemptAt":"2026-11-09T06:02:16.371904+00:00","lastSuccessAt":"2026-11-09T02:08:52.274+00:00","error":null,"lastVerifiedAt":"2026-11-09T02:08:52.274+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13706,"expectedIdentifiers":13706,"failedIdentifiers":0},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-980593e6977a6d1b4fb1eed5a1ffe88a468736f89f0a06f710924ad59132c023","complete":true,"records":9914,"lastAttemptAt":"2026-11-09T06:02:15.5156789+00:00","lastSuccessAt":"2026-11-08T11:07:07.068788+00:00","error":null,"lastVerifiedAt":"2026-11-09T06:02:15.5156789+00:00","snapshotPublishedAt":"2026-11-08T11:02:46+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-fde804134ecdda0ddd5ff5c26ee1fff5a6fa659311f7ef2e51c6ad54964db0e2","complete":true,"records":1971,"lastAttemptAt":"2026-11-09T06:02:14.6970768+00:00","lastSuccessAt":"2026-11-06T19:03:17.0399903+00:00","error":null,"lastVerifiedAt":"2026-11-09T06:02:14.6970768+00:00","snapshotPublishedAt":"2026-11-06T18:17:57+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-f6d341f4320a5a0c059c28102ee651c3dd06abc87b84d2bafa4e2a823ec07d35","complete":true,"records":3056,"lastAttemptAt":"2026-11-09T06:02:15.5284383+00:00","lastSuccessAt":"2026-11-09T05:02:23.1539412+00:00","error":null,"lastVerifiedAt":"2026-11-09T06:02:15.5284383+00:00","snapshotPublishedAt":"2026-11-09T04:47:48+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-6a1c845b1938b1aa788f0e95c9ac8a8d5a1f07caed5d155840b0616b548c1455","complete":true,"records":231296,"lastAttemptAt":"2026-11-09T06:02:15.4064738+00:00","lastSuccessAt":"2026-11-09T04:03:49.859595+00:00","error":null,"lastVerifiedAt":"2026-11-09T06:02:15.4064738+00:00","snapshotPublishedAt":"2026-11-09T03:33:06+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}