Skip to main content

MANTRA Chain CVE-2025-61595

HIGH
Uncontrolled Resource Consumption (CWE-400)
2025-10-02 security-advisories@github.com GHSA-qwvm-wqq8-8j69
8.8
CVSS 4.0 · Vendor: github
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Deploy malicious wasm contract with recursive send hook
  2. Delivery
    Submit transaction triggering before-send hook
  3. Exploit
    Hook ignores tx gas limit and recurses
  4. Execution
    Gas consumption amplifies exponentially
  5. Impact
    Node resource exhaustion / chain DoS

Vulnerability Assessment

Weakness
CWE
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the targeted MANTRA chain to be running the x/tokenfactory module (default on MANTRA) and the attacker to deploy a CosmWasm contract that registers a before-send listener making recursive calls, then issue token transfers that invoke that hook. The defect is that callBeforeSendListener created the hook's gas meter with a fixed BeforeSendHookGasLimit rather than min(limit, remaining tx gas), so no non-default configuration is needed on the victim side. Limiting factors: the attacker must be able to deploy/instantiate a wasm contract and fund transactions on the chain (a low but real barrier on permissioned deployments), and only unpatched versions (<4.0.2) are affected - impact is availability/DoS, not data disclosure or integrity loss.

Impact

Signals conflict sharply in direction, resolving to a moderate real-world priority. The vendor CVSS 4.0 vector (AV:N/AC:L/PR:N/UI:N, VA:H) frames this as a network-reachable, low-complexity availability attack, and the base score of 8.8 is high. However, EPSS is only 0.07% (21st percentile), there is no CISA KEV listing, and no public exploit code has been identified - so there is no public exploit identified at time of analysis and no evidence of active or imminent mass exploitation. The CWE-400 (uncontrolled resource consumption) nature is confirmed by the source diff, which shows the send-hook gas meter was created with a fixed BeforeSendHookGasLimit instead of being clamped to the transaction's remaining gas. The realistic impact is a chain-level denial of service (node resource exhaustion / block processing stall) rather than data compromise, so the VC:L in the vendor vector is questionable - this is fundamentally an availability bug. Net: a genuine availability concern for anyone running or depending on a MANTRA node, but the very low EPSS and absence of KEV/POC mean it is a patch-promptly issue, not an emergency drop-everything one. Note PR:N is debatable: exploitation requires the attacker to deploy a malicious CosmWasm contract and submit funded transactions, which is a low but non-zero barrier on a permissionless chain.

Exploit ScenarioDerived

An attacker deploys a malicious CosmWasm contract on a MANTRA chain (v4.0.1 or below) whose token-factory before-send hook makes recursive calls, then submits a transaction triggering the hook. Because the send hook is given a fresh fixed gas budget instead of being bounded by the transaction's remaining gas, each recursion can spend more gas than the tx accounts for, amplifying consumption exponentially and exhausting node resources. No public exploit code is known, but the fix commit and advisory describe the mechanism precisely enough to reproduce.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Oct 08, 2026

Denial of service in MANTRA Chain versions 4.0.1 and below can be triggered by an authenticated attacker who is able to deploy or instantiate a CosmWasm contract that registers a recursive tokenfactory before-send hook, then induces token transfers that invoke the hook. The hook can consume more gas than remains in the transaction, and recursion in the Wasm contract amplifies gas use exponentially, exhausting resources and disrupting chain availability. The issue is fixed in version 4.0.2 and v5.0.0; no public exploit has been identified at time of analysis, and EPSS is 0.07% (21st percentile), indicating low predicted exploitation activity. The impact is availability-only, not data disclosure or integrity loss, and exploitation requires the target chain to run the x/tokenfactory module and the attacker to deploy a malicious contract.

Earlier versions of this analysis (1)
v1 Mar 13, 2026 - 19:12

RemediationAI

Vendor-released patch: upgrade to MANTRA Chain 4.0.2 or v5.0.0, as stated in GHSA-qwvm-wqq8-8j69. The fix commit is 30d36c46e9823b56b8f0dcbb66e980ca5df284e4, which bounds the before-send hook gas meter by the transaction's remaining gas. If immediate upgrade is not possible, the GHSA does not list a vendor workaround. Specific compensating controls include restricting or suspending deployment and instantiation of untrusted CosmWasm contracts and registration of tokenfactory before-send listeners to a trusted allowlist, and, where tokenfactory hooks are not required, disabling or restricting x/tokenfactory token creation and hook-invoking transfers; these measures may break RWA compliance features and legitimate token workflows. Monitor for abnormal recursive hook calls, repeated before-send listener invocations, and unusual gas consumption. Verify which chain version and module packages are deployed and apply the vendor advisory.

Affected Packages

go github.com/mantra-chain/mantrachain no fix
go github.com/mantra-chain/mantrachain/v2 no fix
go github.com/mantra-chain/mantrachain/v3 no fix
go github.com/mantra-chain/mantrachain/v4 fix: 4.0.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 4 packages in go

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

MANTRA Chain is a Cosmos SDK-based RWA Layer 1 blockchain, and the affected component is the x/tokenfactory module. Token transfers can invoke before-send hooks, including CosmWasm smart-contract listeners capable of making recursive calls. CWE-400 (Uncontrolled Resource Consumption) is the root-cause class: callBeforeSendListener created the hook's child context with a fixed BeforeSendHookGasLimit gas meter instead of min(BeforeSendHookGasLimit, transaction gas remaining), so a hook could spend beyond the transaction's remaining gas. The patch commit 30d36c46e9823b56b8f0dcbb66e980ca5df284e4 changes this to newGasLimit := min(types.BeforeSendHookGasLimit, c.GasMeter().GasRemaining()). The GHSA advisory lists Go module packages github.com/MANTRA-Chain/mantrachain/v4 vulnerable before 4.0.2 and fixed in 4.0.2, while v3, v2, and the generic module entries are shown as vulnerable before 4.0.2 with no fixed version listed. The provided CVSS 4.0 vector indicates network attack, low complexity, no privileges, and high availability impact; the independent assessment uses CVSS 3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, so authenticated access with permission to deploy or instantiate a Wasm contract is required.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (github) PRIMARY 8.8 HIGH
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
vuln.today AI 6.5 MEDIUM

Network-reachable via submitted transactions (AV:N, AC:L); requires deploying a malicious wasm contract and funded txs so PR:L; pure availability DoS with no confidentiality or integrity impact.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (github).

CVSS VectorVendor: github

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
None
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
CVSS changed
Oct 08, 2026 - 23:22 NVD
8.8 (HIGH)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Oct 02, 2025 - 20:15 cve.org
HIGH 8.8
CVE Published
Oct 02, 2025 - 20:15 nvd
N/A

DescriptionCVE.org

MANTRA is a purpose-built RWA Layer 1 Blockchain, capable of adherence to real world regulatory requirements. Versions 4.0.1 and below do not enforce the tx gas limit in its send hooks. Send hooks can spend more gas than what remains in tx, combined with recursive calls in the wasm contract, potentially amplifying the gas consumption exponentially. This is fixed in version 4.0.2.

Executive ViewAI

Why It Matters

MANTRA Chain versions 4.0.1 and below carry a high-severity availability defect that could allow a malicious contract deployment to degrade or halt chain services. For organizations relying on MANTRA Chain for transactions or dependent applications, an outage would disrupt operations and customer-facing services. Although no public exploit has been identified at time of analysis, the availability-only impact and required contract deployment make timely patching the primary risk control.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 79% exploitable
Prevalence
Low
niche RWA-specific Layer 1 blockchain, limited node operator footprint
Data Quality
4 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy