VYPR
High severityOSV Advisory· Published Oct 2, 2025· Updated Apr 15, 2026

CVE-2025-61595

CVE-2025-61595

Description

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.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/MANTRA-Chain/mantrachain/v4Go
< 4.0.24.0.2
github.com/MANTRA-Chain/mantrachain/v3Go
>= 0
github.com/MANTRA-Chain/mantrachain/v2Go
>= 0
github.com/MANTRA-Chain/mantrachainGo
>= 0

Affected products

1

Patches

1
30d36c46e982

fix: None (#437)

https://github.com/MANTRA-Chain/mantrachainLance Lan MengSep 5, 2025via ghsa
1 file changed · +2 1
  • x/tokenfactory/keeper/before_send.go+2 1 modified
    @@ -127,7 +127,8 @@ func (k Keeper) callBeforeSendListener(ctx context.Context, from, to sdk.AccAddr
     			}
     			em := sdk.NewEventManager()
     
    -			childCtx := c.WithGasMeter(types2.NewGasMeter(types.BeforeSendHookGasLimit))
    +			newGasLimit := min(types.BeforeSendHookGasLimit, c.GasMeter().GasRemaining())
    +			childCtx := c.WithGasMeter(types2.NewGasMeter(newGasLimit))
     			_, err = k.contractKeeper.Sudo(childCtx.WithEventManager(em), cwAddr, msgBz)
     			if err != nil {
     				return errorsmod.Wrapf(err, "failed to call before send hook for denom %s", coin.Denom)
    

Vulnerability mechanics

Generated by null/stub on May 9, 2026. Inputs: CWE entries + fix-commit diffs from this CVE's patches. Citations validated against bundle.

References

6

News mentions

0

No linked articles in our index yet.