CVE-2025-58157: gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm
Vulnerability summary
CVE-2025-58157 is a high (CVSS 7.5) Uncontrolled Resource Consumption vulnerability in consensys gnark. EPSS estimates a 0.54% chance of exploitation in the next 30 days, higher than 45.2% of scored vulnerabilities. 1 public exploit is recorded.
Public exploit (GitHub, Date unknown)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 3 · Related 3Timeline
- 29-08-2025PublishedVulnerability first disclosed.
- 02-09-2025Last modifiedVulnerability information updated.
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.
CVSS metrics
3 scores · 3 sources · 1 version- OSV · GoEcosystem advisory · calculated7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS trend
Probability
0.54%
Chance of exploitation in the next 30 days
Percentile
45%
Versus all other CVEs
30-day change
Increase +0.02 pp
From 0.52% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundGnark
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Consensys1 product
- gnark= 0.12.0 | 0.12.0
Github.com/consensys1 product
- gnark≥ 0.12.0, < 0.13.0 | < 0.13.0
2 vendors · 2 products
References
6 links- github.com/Consensys/gnark/security/advisories/GHSA-9fvj-xqr2-xwg8X Refsource CONFIRMWEBAdvisoryVendor Advisory
- github.com/Consensys/gnark-crypto/commit/56600883e0e9f9b159e9c7000b94e76185ec3d0dX Refsource MISCWEBPatch
- github.com/Consensys/gnarkPACKAGE