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
    • 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-57801

CVE-2025-57801: Consensys Gnark Signature Malleability Issue

CVE-2025-57801 is a signature malleability flaw in Consensys Gnark's EdDSA and ECDSA circuits that allows multiple witnesses to satisfy the same inputs, potentially enabling double spending in affected protocols.

Published: March 24, 2026

CVE-2025-57801 Overview

CVE-2025-57801 is a signature malleability vulnerability affecting Consensys gnark, a zero-knowledge proof system framework written in Go. The vulnerability exists in the Verify function within eddsa.go and ecdsa.go files, where the S value from a signature was used without properly asserting that 0 ≤ S < order. This missing constraint allows multiple distinct witnesses to satisfy the same public inputs, creating a dangerous signature malleability condition.

Critical Impact

In protocols where nullifiers or anti-replay checks are derived from R and S values, this vulnerability enables signature malleability attacks and may allow double spending in blockchain and cryptographic applications.

Affected Products

  • Consensys gnark versions prior to 0.14.0
  • Applications using gnark's native EdDSA circuits
  • Applications using gnark's native ECDSA circuits

Discovery Timeline

  • 2025-08-22 - CVE CVE-2025-57801 published to NVD
  • 2025-09-12 - Last updated in NVD database

Technical Details for CVE-2025-57801

Vulnerability Analysis

The vulnerability stems from improper verification of cryptographic signatures (CWE-347) in gnark's EdDSA and ECDSA circuit implementations. Zero-knowledge proof systems rely on mathematical constraints to ensure that proofs are valid and cannot be manipulated. In the affected versions, the signature verification circuits failed to enforce that the scalar value S is within the valid range of the elliptic curve's order.

When signature components R and S are not properly bounded, an attacker can create alternative valid signatures for the same message by manipulating the S value. This is particularly dangerous in zero-knowledge proof contexts where the signature values may be used as inputs to nullifier generation or replay protection mechanisms.

Root Cause

The root cause is the absence of range assertions on signature scalar values in the circuit constraints. According to RFC 8032 Section 3.4, EdDSA implementations must verify that S is less than the group order. The gnark implementation was missing the equivalent constraint in its zero-knowledge circuit representation, allowing values of S that exceed the curve's order to pass verification.

Attack Vector

This vulnerability requires local access to exploit. An attacker with knowledge of a valid signature can mathematically derive alternative signature values that satisfy the same verification equation. In blockchain applications using gnark for zero-knowledge proofs, this could allow:

  1. Submitting multiple transactions that appear unique but derive from the same underlying signature
  2. Bypassing nullifier-based double-spend protections
  3. Replaying transactions in systems that use R and S for anti-replay derivation

The security patch adds the necessary scalar boundary assertions:

go
// Security patch in std/signature/ecdsa/ecdsa.go
 	if err != nil {
 		panic(err)
 	}

	scalarApi.AssertIsLessOrEqual(&sig.S, scalarApi.Modulus())
	scalarApi.AssertIsLessOrEqual(&sig.R, scalarApi.Modulus())

	pkpt := sw_emulated.AffinePoint[T](pk)
	msInv := scalarApi.Div(msg, &sig.S)
	rsInv := scalarApi.Div(&sig.R, &sig.S)

Source: GitHub Commit Update

go
// Security patch in std/signature/eddsa/eddsa.go
 		Y: curve.Params().Base[1],
 	}

	// Assert S < GroupSize (see https://datatracker.ietf.org/doc/html/rfc8032#section-3.4)
	curve.API().AssertIsLessOrEqual(sig.S, curve.Params().Order)

	//[S]G-[H(R,A,M)]*A
	_A := curve.Neg(pubKey.A)
	Q := curve.DoubleBaseScalarMul(base, _A, sig.S, hRAM)

Source: GitHub Commit Update

Detection Methods for CVE-2025-57801

Indicators of Compromise

  • Multiple zero-knowledge proofs submitted with mathematically related signature values
  • Nullifier collisions or duplicate nullifier attempts in protocols using gnark circuits
  • Unexpected transaction replay attempts in blockchain applications
  • Anomalous signature verification patterns where S values exceed expected ranges

Detection Strategies

  • Implement off-chain validation to verify signature scalar values are within proper bounds before accepting proofs
  • Monitor for duplicate or near-duplicate transaction submissions that may indicate malleability exploitation
  • Audit existing gnark circuit implementations for missing scalar range assertions
  • Review transaction logs for patterns consistent with double-spend attempts

Monitoring Recommendations

  • Enable detailed logging for signature verification operations in applications using gnark
  • Implement alerting for nullifier collision attempts or duplicate proof submissions
  • Monitor dependency versions in Go modules to identify systems running vulnerable gnark versions
  • Track blockchain mempool activity for suspicious signature patterns in ZK-proof based systems

How to Mitigate CVE-2025-57801

Immediate Actions Required

  • Upgrade gnark to version 0.14.0 or later immediately
  • Audit all deployed circuits using gnark's EdDSA or ECDSA implementations
  • Review transaction history for potential exploitation in production systems
  • Regenerate proofs for any circuits that were compiled with vulnerable versions

Patch Information

The vulnerability has been addressed in gnark version 0.14.0. The fix adds proper scalar boundary assertions using AssertIsLessOrEqual to ensure that signature components R and S are within the valid modulus range. Organizations should update their Go module dependencies to pull the patched version.

For detailed information, refer to the GitHub Security Advisory GHSA-95v9-hv42-pwrj and the security patch commit.

Workarounds

  • If immediate upgrade is not possible, implement additional off-chain signature validation that checks S < order before proof verification
  • Add application-layer nullifier tracking independent of signature-derived values
  • Consider implementing custom circuit constraints that manually enforce scalar bounds until upgrade is complete
  • Temporarily pause acceptance of new proofs in high-value applications until the patch can be deployed
bash
# Update gnark dependency to patched version
go get github.com/consensys/gnark@v0.14.0
go mod tidy

# Verify the installed version
go list -m github.com/consensys/gnark

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

  • Vulnerability Details
  • TypeOther

  • Vendor/TechConsensys Gnark

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-347
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-95v9-hv42-pwrj
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE Vulnerability
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