Resource exhaustion in Consensys Gnark

CVE-2025-58157

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.

Vulnerability class: DoS (Denial of Service)

EPSS: 0.005 (38.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.

Affected products

Weakness classification (CWE)

References

Frequently asked questions

What is CVE-2025-58157?
CVE-2025-58157 is a high-severity vulnerability in Consensys Gnark, classified under Uncontrolled Resource Consumption. CVSS score: 7.5/10. Published 2025-08-29.
How severe is CVE-2025-58157?
High severity. CVSS v3 base score is 7.5 out of 10.