{"id":"CVE-2025-61595","aliases":["CVE-2025-61595","GHSA-qwvm-wqq8-8j69","GO-2025-3997"],"related":[],"kind":"vulnerability","state":"published","title":"MANTRA tx gas limit is not enforced in send hooks","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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?_","format":"markdown","source":"ghsa"},{"lang":"en","text":"github.com/MANTRA-Chain/mantrachain/x/tokenfactory tx gas limit is not enforced in send hooks in github.com/MANTRA-Chain/mantrachain","format":"markdown","source":"go"},{"lang":"es","text":"MANTRA es una Blockchain de Capa 1 para RWA diseñada a propósito, capaz de cumplir con los requisitos regulatorios del mundo real. Las versiones 4.0.1 e inferiores no imponen el límite de gas de la transacción en sus send hooks. Los send hooks pueden gastar más gas del que queda en la transacción, combinado con llamadas recursivas en el contrato wasm, amplificando potencialmente el consumo de gas exponencialmente. Esto se ha solucionado en la versión 4.0.2.","source":"nvd"}],"published":"2025-09-30T21:06:02.000Z","modified":"2026-10-12T15:10:00.207Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.8,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-400","CWE-770"],"affected":[{"ranges":[{"version":"< 4.0.2","status":"affected"}],"vendor":"MANTRA-Chain","product":"mantrachain","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.2"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain/v4","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain/v4","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain/v3","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain/v3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain/v2","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain/v2","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain/v2","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain/v3","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain/v3","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.0.2"}],"ecosystem":"Go","package":"github.com/MANTRA-Chain/mantrachain/v4","purl":"pkg:golang/github.com/MANTRA-Chain/mantrachain/v4","source":"go"}],"references":[{"url":"https://github.com/MANTRA-Chain/mantrachain/security/advisories/GHSA-qwvm-wqq8-8j69","tags":["advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://github.com/MANTRA-Chain/mantrachain/commit/30d36c46e9823b56b8f0dcbb66e980ca5df284e4","tags":["fix","web","x-refsource-misc"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61595","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/MANTRA-Chain/mantrachain/issues/432","tags":["report","web"],"sources":["ghsa","go"]},{"url":"https://github.com/MANTRA-Chain/mantrachain","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2025-3997","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-02T19:49:42.723Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-61595","url":"https://www.cve.org/CVERecord?id=CVE-2025-61595","licence":"CVE Terms of Use","modified":"2025-10-02T19:49:51.997Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-qwvm-wqq8-8j69","url":"https://github.com/advisories/GHSA-qwvm-wqq8-8j69","licence":"CC-BY-4.0","modified":"2025-10-23T20:34:29.000Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2025-3997","url":"https://pkg.go.dev/vuln/GO-2025-3997","licence":"CC-BY-4.0","modified":"2026-03-03T04:56:57.771Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-61595","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-61595","licence":"Public domain","modified":"2026-10-12T15:10:00.207Z"}],"updatedAt":"2026-11-25T22:59:05.453Z","epss":{"score":0.00334,"percentile":0.2871,"date":"2026-12-02T12:00:21.000Z"}}