VYPR
High severityNVD Advisory· Published Feb 8, 2021· Updated Aug 3, 2024

CVE-2021-25835

CVE-2021-25835

Description

Cosmos Network Ethermint <= v0.4.0 is affected by a cross-chain transaction replay vulnerability in the EVM module. Since ethermint uses the same chainIDEpoch and signature schemes with ethereum for compatibility, a verified signature in ethereum is still valid in ethermint with the same msg content and chainIDEpoch, which enables "cross-chain transaction replay" attack.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Cosmos Ethermint ≤ v0.4.0 reuses Ethereum's chainIDEpoch and signature scheme, allowing a signed Ethereum transaction to be replayed on an Ethermint chain with the same chainIDEpoch.

Ethermint, the Ethereum-compatible execution layer for the Cosmos SDK, adopted the same chainIDEpoch and signature schemes as Ethereum to maintain compatibility. This design choice introduced a cross-chain transaction replay vulnerability in versions up to v0.4.0. Because both chains use identical signature verification logic and can interpret different chain IDs (e.g., "Ethereum-1" vs "Ethermint-1") as the same chainIDEpoch, a transaction that was validly signed and executed on one chain can be replayed on the other without modification [1][4].

An attacker exploits this flaw by observing a signed transaction on one chain and rebroadcasting it on a second chain where the same chainIDEpoch is recognized. The attack does not require the attacker to possess the victim's private key; it only relies on the fact that a legitimate signature remains valid across both environments. A prerequisite is that the victim's account nonce on the target chain must be less than or equal to the nonce used in the replayed transaction, which is a common scenario if the victim has not used the account on the second chain [4].

Successful replay allows an attacker to make the victim's account on the second chain execute arbitrary transactions that the victim originally signed on the first chain. This could lead to unauthorized transfer of assets, token minting, or other state changes, depending on the content of the replayed message. The impact is particularly severe for users who hold accounts with the same key on both an Ethereum network and an Ethermint-based chain [4].

The vulnerability was addressed in Ethermint v0.4.1, released on March 1, 2021. The fix includes improvements to the nonce check in the EVM module's AnteHandler, ensuring that the nonce is explicitly matched rather than simply validated as greater than the current nonce [2][3]. Users should update to v0.4.1 or later to mitigate the risk.

AI Insight generated on May 21, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
github.com/cosmos/ethermintGo
< 0.4.10.4.1

Affected products

3

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

5

News mentions

0

No linked articles in our index yet.