Read the docs
TI-2025-35973 Aliases CVE-2025-58157GHSA-9fvj-xqr2-xwg8

gnark affected by denial of service when computing scalar multiplication using fake-GLV algorithm

Priority HIGH 72CWE-400Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Denial of service
Confidentiality · integrity · availability
None · None · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-400.

Summary

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.

Why it matters now

Exploitation Proof of concept CISA SSVC · not in CISA KEV
EPSS 0.00536 45th percentileScored 2026-11-07
Public exploit Yes 1 exploit referenceTagged by NVD
Fix Fixed github.com/consensys/gnark (Go): 0.13.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
Poc
Automatable
Yes
Technical impact
Partial

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Consensysgnark= 0.12.0—No fix listedCNA
—github.com/consensys/gnark (Go)0.12.0 to before 0.13.00.13.0Patch availableGHSA-9fvj-xqr2-xwg8
  • gnark VendorConsensys Affected = 0.12.0 Fixed in — No fix listed CNA
  • github.com/consensys/gnark (Go) Vendor— Affected 0.12.0 to before 0.13.0 Fixed in 0.13.0 Patch available GHSA-9fvj-xqr2-xwg8

CPE configurations NVD · 1

CPEVersionsRoleVendor
cpe:2.3:a:consensys:gnark:0.12.0:*:*:*:*:*:*:*0.12.0VulnerableConsensys
  • cpe:2.3:a:consensys:gnark:0.12.0:*:*:*:*:*:*:* Versions 0.12.0 Vulnerable ·Consensys

Remediation

  • Fix · GHSA-9fvj-xqr2-xwg8 github.com/consensys/gnark (Go) Fixed in 0.13.0 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2025-58157
  2. 2026-10-03 Alias added: GHSA-9fvj-xqr2-xwg8

References

  • TI-2025-35684 gnark is vulnerable to signature malleability in EdDSA and ECDSA due to missing scalar checks CVSS 4.0HIGH 8.6
  • TI-2024-33789 Out-of-memory during deserialization with crafted inputs CVSS 3.1MEDIUM 5.5
  • TI-2023-23885 gnark vulnerable to unsoundness in variable comparison/non-unique binary decomposition CVSS 3.1HIGH 7.1

Sources