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-61595

CVE-2025-61595: MANTRA Blockchain DOS Vulnerability

CVE-2025-61595 is a denial of service vulnerability in MANTRA Blockchain caused by unenforced tx gas limits in send hooks. Recursive calls can amplify gas consumption exponentially. Learn about affected versions and patches.

Published: May 11, 2026

CVE-2025-61595 Overview

CVE-2025-61595 affects MANTRA Chain, a purpose-built Real World Asset (RWA) Layer 1 blockchain designed to meet regulatory requirements. Versions 4.0.1 and below fail to enforce the transaction gas limit within token factory send hooks. A malicious WebAssembly (Wasm) contract can spend more gas than what remains in the transaction context. Combined with recursive contract calls, this can amplify gas consumption exponentially and disrupt chain operation. The issue is tracked under CWE-400: Uncontrolled Resource Consumption and is fixed in version 4.0.2.

Critical Impact

Network-accessible attackers can trigger exponential gas amplification through recursive Wasm contract calls in send hooks, leading to node resource exhaustion and chain availability impact.

Affected Products

  • MANTRA Chain (mantrachain) versions 4.0.1 and below
  • Token Factory module (x/tokenfactory) before-send hook handler
  • Wasm-enabled CosmWasm contracts registered as send hooks

Discovery Timeline

  • 2025-10-02 - CVE-2025-61595 published to NVD
  • 2026-04-15 - Last updated in NVD database

Technical Details for CVE-2025-61595

Vulnerability Analysis

The defect resides in the token factory BeforeSendHook execution path. When a transfer occurs for a denom with a registered Wasm hook, the keeper creates a child context with a fresh gas meter initialized to BeforeSendHookGasLimit. The implementation does not reconcile this fresh limit against the remaining gas in the parent transaction. A Wasm contract invoked as a send hook can therefore consume gas in excess of what the transaction itself authorizes.

When the hook contract recursively dispatches further token transfers, each nested invocation again allocates a fresh BeforeSendHookGasLimit. The cumulative gas consumed across the recursion grows multiplicatively rather than being bounded by the original transaction budget. Validators executing such a transaction expend disproportionate compute resources, threatening block production and chain liveness.

Root Cause

The root cause is missing bounds enforcement between the child gas meter and the parent transaction gas meter in x/tokenfactory/keeper/before_send.go. The original code unconditionally created types2.NewGasMeter(types.BeforeSendHookGasLimit) for the child context. No call to GasRemaining() constrained the value, allowing accumulated gas use to exceed the transaction limit.

Attack Vector

An attacker deploys a CosmWasm contract that registers as a before-send hook on a token factory denom. The contract recursively triggers additional token transfers within its hook handler. Submitting a transaction that initiates a transfer of the denom causes the chain to enter the recursive hook path, amplifying gas consumption beyond intended limits without requiring authentication.

go
// Patch from x/tokenfactory/keeper/before_send.go
// Source: https://github.com/MANTRA-Chain/mantrachain/commit/30d36c46e9823b56b8f0dcbb66e980ca5df284e4
            }
            em := sdk.NewEventManager()

-           childCtx := c.WithGasMeter(types2.NewGasMeter(types.BeforeSendHookGasLimit))
+           newGasLimit := min(types.BeforeSendHookGasLimit, c.GasMeter().GasRemaining())
+           childCtx := c.WithGasMeter(types2.NewGasMeter(newGasLimit))
            _, err = k.contractKeeper.Sudo(childCtx.WithEventManager(em), cwAddr, msgBz)
            if err != nil {
                return errorsmod.Wrapf(err, "failed to call before send hook for denom %s", coin.Denom)

The fix clamps the child gas meter to the minimum of BeforeSendHookGasLimit and the remaining gas reported by the parent context. This caps total send-hook gas at the transaction's own remaining budget and prevents recursion-based amplification.

Detection Methods for CVE-2025-61595

Indicators of Compromise

  • Transactions invoking token factory transfers that consume gas approaching block limits without proportionate state changes
  • Validator logs showing elevated CPU or memory utilization during block execution of transfers with registered Wasm hooks
  • Repeated BeforeSendHook invocations originating from a single transaction trace

Detection Strategies

  • Inspect transaction traces for nested Sudo calls into CosmWasm contracts triggered via x/tokenfactory before-send hooks
  • Monitor on-chain registrations of new before-send hook contracts and review their Wasm bytecode for recursive transfer dispatch logic
  • Compare per-transaction gas used against BeforeSendHookGasLimit multiplied by hook invocation depth to flag anomalies

Monitoring Recommendations

  • Alert on validator nodes experiencing block production latency correlated with token factory transfer transactions
  • Track sudden growth in Wasm contract execution time for hook-registered denoms
  • Ingest node telemetry and Cosmos SDK event logs into a centralized analytics platform for correlation across validators

How to Mitigate CVE-2025-61595

Immediate Actions Required

  • Upgrade all MANTRA Chain validator and full nodes to version 4.0.2 or later
  • Audit existing token factory denoms for registered before-send hook contracts and review their code paths
  • Coordinate with chain governance to enforce the upgrade across the validator set before the next scheduled chain halt

Patch Information

The fix is delivered in MANTRA Chain version 4.0.2. The patch in commit 30d36c46e9823b56b8f0dcbb66e980ca5df284e4 bounds the child gas meter by c.GasMeter().GasRemaining(). Full advisory details are published in the MANTRA Chain GitHub Security Advisory GHSA-qwvm-wqq8-8j69.

Workarounds

  • Restrict creation of new token factory denoms with before-send hooks through governance until the upgrade is applied
  • Blacklist or unregister suspicious Wasm hook contracts identified during audit
  • Reduce per-block gas limits temporarily to constrain the impact of any abusive transaction
bash
# Verify node version after upgrade
mantrachaind version --long | grep -E 'version|commit'

# Expected: version >= 4.0.2

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechMantra

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.07%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/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
  • AvailabilityHigh
  • CWE References
  • CWE-400
  • Technical References
  • GitHub Commit Update

  • GitHub Security Advisory
  • Latest CVEs
  • CVE-2026-8468: Elixir Plug Library DoS Vulnerability

  • CVE-2026-8295: simdjson Information Disclosure Vulnerability

  • CVE-2025-68421: Comarch ERP Optima Auth Bypass Vulnerability

  • CVE-2025-68420: Comarch ERP Optima Privilege Escalation
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