CVE-2021-25835
vulnerability analysis and mitigation

Overview

Cosmos Network Ethermint <= v0.4.0 is affected by a cross-chain transaction replay vulnerability in the EVM module. Since ethermint uses the same type of chainIDEpoch for ethereum compatibility, a verified signature in ethereum remains valid in ethermint with identical message content and chainIDEpoch (Github Issue).

Technical details

The vulnerability stems from both Ethermint and Ethereum using the same signature scheme, with users having identical public/private key pairs on both chains. Different chainIDs can be parsed to the same chainIDEpoch (e.g., 'ethereum-1' and 'ethermint-1'). As a result, if a message is successfully executed on Ethereum with a specific chainIDEpoch (e.g., mainnet with epoch 1), it can be replayed on Ethermint with the same chainIDEpoch when the nonce check is passed, and vice versa (Github Issue).

Impact

An attacker could replay transactions across chains when the victim has accounts on both chains with the same public key. For example, if a victim transfers funds on one chain, the attacker could replay that transaction on another chain to duplicate the transfer, potentially leading to unauthorized fund movements (Github Issue).

Exploitability

The vulnerability can be exploited when: 1) Two chains exist with the same chainIDEpoch (e.g., 'Ethereum-1' and 'Ethermint-1'), 2) The victim has accounts on both chains with the same public key, 3) The victim's transaction nonce on the target chain is equal to or less than the nonce of the transaction being replayed (Github Issue).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management