Vulnerabilities in pkg:golang/github.com/MANTRA-Chain/mantrachain
PACKAGECVE-2025-61595 is a HIGH remote code execution vulnerability (CWE-400: Uncontrolled Resource Consumption) affecting Github.com/MANTRA Chain/mantrachain/v4 libraries in the Go ecosystem. The issue involves github.com/mantra-chain/mantrachain/x/tokenfactory tx gas limit is not enforced in send hooks. Remediation is available by upgrading affected packages to version 4.0.2.
pkg:golang/github.com/MANTRA-Chain/mantrachain
Vulnerability advisories affecting package pkg:golang/github.com/MANTRA-Chain/mantrachain. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-qwvm-wqq8-8j69 | CVE-2025-61595 | HIGH | github.com/MANTRA-Chain/mantrachain/x/tokenfactory tx gas limit is not enforced in send hooks |
CVE-2025-61595 at a Glance
How to Fix CVE-2025-61595
To remediate this vulnerability, upgrade all affected Github.com/MANTRA Chain/mantrachain/v4 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/MANTRA-Chain/mantrachain/v4 to 4.0.2
Upgrade github.com/MANTRA-Chain/mantrachain/v3 to Latest secure release
Upgrade github.com/MANTRA-Chain/mantrachain/v2 to Latest secure release
Upgrade github.com/MANTRA-Chain/mantrachain to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/MANTRA-Chain/mantrachain/v4
How to Check if You Are Affected
To determine whether your application is affected by CVE-2025-61595, inspect your project dependencies for Github.com/MANTRA Chain/mantrachain/v4:
inspect dependencies for github.com/MANTRA-Chain/mantrachain/v4
Analyze the terminal output to locate any version of Github.com/MANTRA Chain/mantrachain/v4 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.0.2), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-400: Uncontrolled Resource Consumption, where the product does not properly control the allocation and maintenance of a limited resource. In Github.com/MANTRA Chain/mantrachain/v4, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2025-61595 Affected Github.com/MANTRA Chain/mantrachain/v4 Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/MANTRA-Chain/mantrachain/v4
|
Go |
< 4.0.2
|
4.0.2
|
|
github.com/MANTRA-Chain/mantrachain/v3
|
Go |
|
|
|
github.com/MANTRA-Chain/mantrachain/v2
|
Go |
|
|
|
github.com/MANTRA-Chain/mantrachain
|
Go |
|
|
References
Frequently Asked Questions
What is CVE-2025-61595?
Which Github.com/MANTRA Chain/mantrachain/v4 versions are affected?
What version fixes CVE-2025-61595?
Is github.com/MANTRA-Chain/mantrachain/v4 affected?
Is github.com/MANTRA-Chain/mantrachain/v3 affected?
What CWE is associated with CVE-2025-61595?
How can I check Go dependencies for CVE-2025-61595?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-qwvm-wqq8-8j69",
"modified" : "2025-10-23T20:34:29Z",
"published" : "2025-09-30T21:06:02Z",
"aliases" : [ "CVE-2025-61595" ],
"summary" : "github.com/MANTRA-Chain/mantrachain/x/tokenfactory tx gas limit is not enforced in send hooks",
"details" : "### Impact\n\nsend hooks can spend more gas than what's remained in tx, combined with recursive calls in the wasm contract, can amplify the gas consumption exponentially.\n\n### Patches\n\nIt's patched in v4.0.2 and v5.0.0\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/MANTRA-Chain/mantrachain/v4"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "4.0.2"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/MANTRA-Chain/mantrachain/v3"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 4.0.2"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/MANTRA-Chain/mantrachain/v2"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 4.0.2"
}
}, {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/MANTRA-Chain/mantrachain"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
} ]
} ],
"database_specific" : {
"last_known_affected_version_range" : "< 4.0.2"
}
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/MANTRA-Chain/mantrachain/security/advisories/GHSA-qwvm-wqq8-8j69"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-61595"
}, {
"type" : "WEB",
"url" : "https://github.com/MANTRA-Chain/mantrachain/issues/432"
}, {
"type" : "WEB",
"url" : "https://github.com/MANTRA-Chain/mantrachain/commit/30d36c46e9823b56b8f0dcbb66e980ca5df284e4"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/MANTRA-Chain/mantrachain"
}, {
"type" : "WEB",
"url" : "https://pkg.go.dev/vuln/GO-2025-3997"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-400", "CWE-770" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2025-09-30T21:06:02Z",
"nvd_published_at" : "2025-10-02T20:15:35Z"
}
}