The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-58157

CVE-2025-58157: Consensys Gnark DOS Vulnerability

CVE-2025-58157 is a denial of service vulnerability in Consensys Gnark's fake-GLV algorithm that affects scalar multiplication operations. This article covers the technical details, affected versions, and mitigation steps.

Updated: May 11, 2026

CVE-2025-58157 Overview

CVE-2025-58157 affects gnark, a zero-knowledge proof system framework developed by Consensys. The vulnerability exists in version 0.12.0 and stems from a non-convergent scalar multiplication routine that uses the fake-GLV algorithm. For certain inputs, the algorithm fails to converge quickly enough, resulting in a denial of service condition. The issue is tracked as [CWE-400] (Uncontrolled Resource Consumption) and is patched in version 0.13.0.

Critical Impact

Remote attackers can submit crafted inputs that cause scalar multiplication operations to consume excessive resources, disrupting availability of cryptographic services that depend on gnark.

Affected Products

  • Consensys gnark version 0.12.0
  • Applications embedding gnark for zero-knowledge proof generation or verification
  • Downstream components relying on gnark-crypto scalar multiplication primitives

Discovery Timeline

  • 2025-08-29 - CVE-2025-58157 published to the National Vulnerability Database
  • 2025-09-24 - Last updated in NVD database

Technical Details for CVE-2025-58157

Vulnerability Analysis

The vulnerability resides in gnark's implementation of elliptic curve scalar multiplication using the fake-GLV (Gallant-Lambert-Vanstone) algorithm. Scalar multiplication is a foundational operation in zero-knowledge proof systems, executed for every proof generation and verification routine. The fake-GLV optimization accelerates this operation by decomposing scalars into smaller components using lattice reduction techniques.

In version 0.12.0, the decomposition routine does not converge predictably for specific scalar inputs. Instead of terminating in the expected number of iterations, the routine continues iterating, consuming CPU resources without producing a result. An attacker who can supply scalar inputs to a service that invokes the affected routine can trigger sustained CPU exhaustion. The flaw is classified under [CWE-400].

Root Cause

The root cause is an algorithmic correctness defect in the fake-GLV scalar decomposition logic. The convergence condition assumed by the implementation does not hold for all inputs in the scalar field. When edge case inputs are processed, the iterative reduction step fails to reach its terminating bound within an acceptable iteration count.

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. Any service that accepts attacker-controlled scalars and forwards them to gnark's scalar multiplication API is exposed. This includes proof verifiers, rollup sequencers, and cryptographic services exposing public endpoints.

No public proof-of-concept exploit is currently published. Technical details of the convergence failure are discussed in the upstream issue tracker. See the GitHub Security Advisory GHSA-9fvj-xqr2-xwg8 and the upstream issue discussion for additional context.

Detection Methods for CVE-2025-58157

Indicators of Compromise

  • Sustained single-core CPU saturation in processes linking against gnark or gnark-crypto 0.12.0
  • Proof verification or generation requests that fail to return within expected latency budgets
  • Repeated requests from the same source supplying anomalous scalar values to ZK proof endpoints

Detection Strategies

  • Inventory all Go modules and binaries that import github.com/consensys/gnark or github.com/consensys/gnark-crypto and flag versions matching 0.12.0.
  • Instrument scalar multiplication call sites with execution time metrics and alert on operations exceeding baseline duration thresholds.
  • Monitor application logs for goroutine stalls or request timeouts originating from cryptographic processing paths.

Monitoring Recommendations

  • Track per-request CPU time on services exposing zero-knowledge proof APIs and alert on outliers.
  • Correlate high-CPU events with inbound request payloads to identify malicious scalar inputs.
  • Apply rate limiting and request size enforcement to public proof submission endpoints.

How to Mitigate CVE-2025-58157

Immediate Actions Required

  • Upgrade gnark to version 0.13.0 or later across all production and development environments.
  • Rebuild and redeploy any binary that statically links against the affected gnark or gnark-crypto packages.
  • Audit upstream dependency graphs to identify transitive consumers of gnark 0.12.0.

Patch Information

The fix is delivered in gnark 0.13.0. Upstream commits resolving the convergence behavior are available at the gnark patch commit 68be6ce and the corresponding gnark-crypto patch commit 5660088. Full advisory details are published in GHSA-9fvj-xqr2-xwg8.

Workarounds

  • Enforce strict input validation on scalar values accepted by public endpoints to reject malformed or out-of-range inputs.
  • Apply per-request execution time limits and CPU quotas to sandbox cryptographic operations.
  • Deploy reverse-proxy rate limiting to constrain the frequency of proof verification requests from individual clients.
bash
# Upgrade gnark to the patched release
go get github.com/consensys/gnark@v0.13.0
go mod tidy
go build ./...

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechConsensys Gnark

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.25%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Issue Discussion
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Commit Update

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2025-57801: Consensys Gnark Signature Malleability Issue
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English