# CVE-2025-58157: gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- 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.61%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-08-29T20:20:13.000Z
- Modified: 2026-10-18T21:10:00.120Z
- Also known as: GHSA-9fvj-xqr2-xwg8, GO-2025-3929
- Weaknesses: CWE-400
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- Consensys gnark: = 0.12.0; 0.12.0
- github.com/consensys/gnark (Go): from 0.12.0 before 0.13.0; before 0.13.0

## Every score

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

## References

- <https://github.com/Consensys/gnark/issues/1483> (exploit, issue-tracking, web)
- <https://github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8> (advisory, vendor-advisory, web)
- <https://github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0d> (patch, web)
- <https://github.com/Consensys/gnark/commit/68be6cede36e387ab760725beabd3c96cc94e6dc> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58157> (advisory)
- <https://github.com/Consensys/gnark> (package)

## Sources

- CVE List: [CVE-2025-58157](https://www.cve.org/CVERecord?id=CVE-2025-58157), CVE Terms of Use, modified 2025-09-02
- GitHub Advisory Database: [GHSA-9fvj-xqr2-xwg8](https://github.com/advisories/GHSA-9fvj-xqr2-xwg8), CC-BY-4.0, modified 2025-09-17
- Go Vulnerability Database: [GO-2025-3929](https://pkg.go.dev/vuln/GO-2025-3929), CC-BY-4.0, modified 2026-03-03
- NVD: [CVE-2025-58157](https://nvd.nist.gov/vuln/detail/CVE-2025-58157), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-58157 · Whole record: https://cve.day/CVE-2025-58157.json · Rebuilt by cve.day 2026-11-25T22:59:03.910Z
