Vulnerabilities in pkg:golang/github.com/MANTRA-Chain/mantrachain/v3

PACKAGE
Advisory Identifier: GHSA-qwvm-wqq8-8j69
Advisory Summary

CVE-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.

1 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:golang/github.com/MANTRA-Chain/mantrachain/v3

1 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:golang/github.com/MANTRA-Chain/mantrachain/v3. 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

CVE Identifier CVE-2025-61595
GHSA Identifier GHSA-qwvm-wqq8-8j69
Severity HIGH
CVSS v3.1 Base Score N/A
CWE Classification CWE-400: Uncontrolled Resource Consumption
Affected Product Github.com/MANTRA Chain/mantrachain/v4
Package Ecosystem Go
Published Date
Last Updated

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.

github.com/MANTRA-Chain/mantrachain/v4 fixed: 4.0.2
Upgrade github.com/MANTRA-Chain/mantrachain/v4 to 4.0.2
github.com/MANTRA-Chain/mantrachain/v3 fixed: Latest secure release
Upgrade github.com/MANTRA-Chain/mantrachain/v3 to Latest secure release
github.com/MANTRA-Chain/mantrachain/v2 fixed: Latest secure release
Upgrade github.com/MANTRA-Chain/mantrachain/v2 to Latest secure release
github.com/MANTRA-Chain/mantrachain fixed: Latest secure release
Upgrade github.com/MANTRA-Chain/mantrachain to Latest secure release
Verify Direct and Transitive Dependencies

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

### Impact send 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. ### Patches It's patched in v4.0.2 and v5.0.0 ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_

CVE-2025-61595 Affected Github.com/MANTRA Chain/mantrachain/v4 Versions

4 component(s)
Fixed Versions:
4.0.2
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?
CVE-2025-61595 is a security vulnerability in Github.com/MANTRA Chain/mantrachain/v4 involving github.com/MANTRA-Chain/mantrachain/x/tokenfactory tx gas limit is not enforced in send hooks under CWE-400: Uncontrolled Resource Consumption.
Which Github.com/MANTRA Chain/mantrachain/v4 versions are affected?
Affected versions include releases prior to 4.0.2 across affected packages: github.com/MANTRA-Chain/mantrachain/v4, github.com/MANTRA-Chain/mantrachain/v3, github.com/MANTRA-Chain/mantrachain/v2, github.com/MANTRA-Chain/mantrachain.
What version fixes CVE-2025-61595?
Upgrading to 4.0.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/MANTRA-Chain/mantrachain/v4 affected?
Yes, github.com/MANTRA-Chain/mantrachain/v4 is affected in releases prior to 4.0.2. Upgrade your dependency to 4.0.2 or later.
Is github.com/MANTRA-Chain/mantrachain/v3 affected?
Yes, github.com/MANTRA-Chain/mantrachain/v3 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with CVE-2025-61595?
CVE-2025-61595 is classified under CWE-400: Uncontrolled Resource Consumption (The product does not properly control the allocation and maintenance of a limited resource.).
How can I check Go dependencies for CVE-2025-61595?
Run the dependency tree command: 'inspect dependencies for github.com/MANTRA-Chain/mantrachain/v4'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}