CVE-2021-25835 Authentication bypass by capture-replay in github.com/cosmos/ethermint

High 7.5 Published Updated

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.

PackageAffectedFixed in
github.com/cosmos/ethermint GoAll versions0.4.1
github.com/cosmos/ethermint GoAll versions0.4.1
github.com/cosmos/ethermint GoAll versions0.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.

Sources

Also known as GHSA-x5f3-qmwj-4f84, GO-2022-0889.

Is CVE-2021-25835 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free