Security Resilience

CVE-2025-58157

DoS in Consensys Gnark 0.12.0

Public PoCDoS
Published
29 August 2025
Modified
18 October 2026
Patch / advisory
CVSS Score v3.1 7.5
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS Score 0.0052 43th percentile
Risk Priority 58 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2025-58157 is a high-severity Uncontrolled Resource Consumption (CWE-400) vulnerability in Consensys Gnark. Its CVSS base score is 7.5 (High).

Operationally, ranked at the 43th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to SC-5 (Denial-of-service Protection) and SC-6 (Resource Availability) — see the control section below for these in your framework.

EU & UK References

Vulnerability Data

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…

more

inputs. This issue has been patched in version 0.13.0.

CWE(s)

Related Threats

CVEs Like This One

CVE-2024-50354Same product: Consensys Gnark
CVE-2023-44378Same product: Consensys Gnark
CVE-2025-57801Same product: Consensys Gnark
CVE-2024-23688Same vendor: Consensys
CVE-2023-44273Same vendor: Consensys
CVE-2024-45039Same vendor: Consensys
CVE-2024-45040Same vendor: Consensys
CVE-2023-45621Shared CWE-400
CVE-2024-29893Shared CWE-400
CVE-2025-24211Shared CWE-400

Affected Assets

consensys
gnark
0.12.0

Mitigating Controls

Mitigating Controls (NIST 800-53 r5) AI

SC-5 directly limits the effects of resource-exhaustion events that constitute uncontrolled consumption.

SC-6 enforces explicit allocation limits on resources, structurally preventing the weakness from occurring.

Process isolation confines resource consumption to separate domains, reducing blast radius without stopping the root flaw.

Mitigating Controls (ISO/IEC 27001:2022 Annex A) AI

Derived directly from the weakness types (CWEs) cited in the NVD entry via our AI-authored CWE→ISO cross-walk (authority under review) — links open the control.

finds

Resource-utilization monitoring and alerting on bottlenecks or overloads limits the impact of denial-of-service or resource-exhaustion attacks.

blocks

A.8.6's monitoring, stress-testing, projections, tuning, demand-reduction steps (e.g. optimizing queries, deleting obsolete data, restricting non-critical bandwidth) and capacity planning directly stop most uncontrolled consumption from being exploitable by keeping resources within safe bounds; the bounded remainder is algorithmic flaws (e.g. infinite loops, uncontrolled recursion) that no amount of capacity planning can prevent from exhausting a resource when triggered.

finds

Early notification of anomalous resource consumption or system malfunctions enables throttling or isolation before availability is lost.

blocks

Monitoring network service usage and applying controls to restrict access when necessary limits an attacker’s ability to consume excessive resources through unrestricted or unauthenticated service calls.

Hardening callouts derived

DISA STIG baselines are authored against specific weaknesses. Where this CVE cites a broad weakness class, the mapping is not asserted at that abstraction (owner ruling, 2026-09-25: grade only at Base and below), so no rule is shown here rather than a rule shown against the wrong grain.

  • No fine-grained STIG row for CWE-400, a class-level weakness. Rules are authored against its narrower children: CWE-770.

References