MANTRA Chain CVE-2025-61595
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeploy malicious wasm contract with recursive send hook
-
DeliverySubmit transaction triggering before-send hook
-
ExploitHook ignores tx gas limit and recurses
-
ExecutionGas consumption amplifies exponentially
-
ImpactNode 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – 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)
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
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
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
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.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
4DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-qwvm-wqq8-8j69
NVD
CVE.org
EPSS
Exploit-DB