{"schema_version":"1.9.0","id":"CVE-2025-58157","published":"2025-08-29T21:21:35.677Z","modified":"2026-09-07T03:45:30.026673298Z","aliases":["GHSA-9fvj-xqr2-xwg8","GO-2025-3929"],"related":["SUSE-SU-2025:03289-1","openSUSE-SU-2025:15564-1","openSUSE-SU-2026:21483-1"],"summary":"gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm","details":"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.","affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/consensys-incorporated/gnark","events":[{"introduced":"0"},{"fixed":"68be6cede36e387ab760725beabd3c96cc94e6dc"}],"database_specific":{"source":"REFERENCES"}},{"type":"GIT","repo":"https://github.com/Consensys-Incorporated/gnark-crypto","events":[{"introduced":"81ffe9cbd19c7fa6899c97a5ac7b3ec14b30ac06"},{"fixed":"56600883e0e9f9b159e9c7000b94e76185ec3d0d"}],"database_specific":{"extracted_events":[{"introduced":"= 0.12.0"},{"last_affected":"= 0.12.0"}],"source":["AFFECTED_FIELD","REFERENCES"]}}],"versions":["0.12.0","= 0.12.0","v0.12.0","v0.11.0","v0.10.0","v0.9.1","v0.9.0","v0.9.0-alpha","v0.8.1","v0.8.0","v0.7.1","v0.6.4","v0.7.0","v0.6.3","v0.6.2","v0.6.1","v0.6.0","v0.5.2","v0.5.1","v0.5.0","v0.4.0","v0.3.8","v0.3.7","v0.3.6","v0.3.5","v0.3.4","v0.3.3","v0.3.0","v0.3.0-alpha","v0.2.0-alpha","v0.1.0-alpha","v0.17.0","v0.16.0","v0.15.0","v0.14.0","v0.13.0","v0.12.1"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-58157.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58157.json"},{"type":"ADVISORY","url":"https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-58157"},{"type":"REPORT","url":"https://github.com/Consensys/gnark/issues/1483"},{"type":"FIX","url":"https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d"},{"type":"FIX","url":"https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc"}],"database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-400"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/58xxx/CVE-2025-58157.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}