CVE-2021-25835 Authentication bypass by capture-replay in github.com/cosmos/ethermint
Attackers can replay valid Ethereum transactions on Ethermint due to shared chain ID and signature schemes, enabling unauthorized cross-chain transaction execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2021-25835?
CVE-2021-25835 is a high-severity vulnerability in n/a, published on 8 Feb 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-294
Which versions are affected by CVE-2021-25835?
3 open source packages ship an affected version, including github.com/cosmos/ethermint. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
github.com/cosmos/ethermint Go | All versions | 0.4.1 |
github.com/cosmos/ethermint Go | All versions | 0.4.1 |
github.com/cosmos/ethermint Go | All versions | 0.4.1 |
Products include Chainsafe Ethermint.
How do I fix CVE-2021-25835?
Upgrade github.com/cosmos/ethermint to 0.4.1 or later.
Is CVE-2021-25835 being exploited?
There is no known exploitation of CVE-2021-25835 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as GHSA-x5f3-qmwj-4f84, GO-2022-0889.