Loading advisory.
Loading advisory.
Ethermint vulnerable to DoS through unintended Contract Selfdestruct
Smart contract applications that make use of the selfdestruct functionality and their end-users.
Published 2022-08-05 12:55 UTC · Modified 2026-03-03 04:52 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score.
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| github.com/evmos/ethermint | Go | < 0.18.0 | 0.18.0 | go get github.com/evmos/ethermint@v0.18.0 |
| github.com/evmos/evmos | Go | < 7.0.0 all versions | 7.0.0 | go get github.com/evmos/evmos@v7.0.0 |
| github.com/crypto-org-chain/cronos | Go | < 0.7.1-rc2 | 0.7.1-rc2 | go get github.com/crypto-org-chain/cronos@v0.7.1-rc2 |
| github.com/Kava-Labs/kava | Go | < 0.18.0 | 0.18.0 | go get github.com/Kava-Labs/kava@v0.18.0 |
| github.com/evmos/evmos/v2 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v3 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v4 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v5 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v6 | Go | all versions | No patch yet | No command until a fix exists. |
| github.com/evmos/evmos/v7 | Go | < 7.0.0 | 7.0.0 | go get github.com/evmos/evmos/v7@v7.0.0 |
| github.com/kava-labs/kava | Go | < 0.18.0 | 0.18.0 | go get github.com/kava-labs/kava@v0.18.0 |
Smart contract applications that make use of the selfdestruct functionality and their end-users.
The vulnerability has been classified as high with a CVSS score of 8.2. It has the potential to create a denial-of-service to all contracts that can invoke the selfdestruct function to destroy a smart contract.
Due to the successfully coordinated security vulnerability disclosure, no smart contracts were impacted through the use of this vulnerability. Smart contract states and storage values are not affected by this vulnerability. User funds and balances are safe.
In Ethermint running versions before v0.17.2, the contract selfdestruct invocation permanently removes the corresponding bytecode from the internal database storage. However, due to a bug in the DeleteAccount function, all contracts that used the identical bytecode (i.e shared the same CodeHash) will also stop working once one contract invokes selfdestruct, even though the other contracts did not invoke the selfdestruct OPCODE.
The same contract bytecode can be deployed multiple times to create multiple contract instances. In the internal database, the bytecode is stored as a key-value entry bytecode hash --> bytecode which is shared by those contracts. Unfortunately, when one of the contracts invokes selfdestruct, it will remove the corresponding bytecode hash -> bytecode entry, and thus it disables all the contracts that share the same bytecode.
The attack scenario is as follows:
The malicious attacker identifies a vulnerable contract that can invoke selfdestruct
The attacker deploys a copy of the contract with identical bytecode
Finally, the attacker triggers the selfdestruct operation on their redeployed contract, actively causing a DoS on the original and vulnerable contract. All transactions will fail until a workaround is used (see below).
Has the problem been patched? What versions should users upgrade to?
This vulnerability has been patched in Ethermint versions ≥v0.18.0. The patch has state machine-breaking changes for applications using Ethermint so a coordinated upgrade procedure is required.
The patch removes the bytecode deletion logic, i.e. contract bytecodes are never deleted from the internal database after the patch.
At the moment, Ethermint does not track how many times each bytecode is used, and thus it cannot determine if it is safe to delete a particular bytecode on selfdestruct invocations. This behavior is the same with go-ethereum.
Is there a way for users to fix or remediate the vulnerability without upgrading?
If a contract is subject to DoS due to this issue, the user can redeploy the same contract, i.e with identical bytecode, so that the original contract's code is recovered.
The new contract deployment restores the bytecode hash -> bytecode entry in the internal state.
Are there any links users can visit to find out more?
If you have any questions or comments about this advisory:
Reach out to the Core Team in Discord
Open a discussion in evmos/ethermint
Email us at security@evmos.org for security questions
For Press, email us at evmos@west-comms.com.
Thanks to the
Cronos Team: @yihuang and @tomtau for discovering the issue, @gakuzen-crypto, @polycryptics, @FinnZhangCrypto, @wilson-ang, @brianatcrypto for the impact analysis.
Evmos Team: @facs95 for patching the issue and @fedekunze for managing the release and coordinating between teams.
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.015 on 2026-11-24 to 0.014 on 2026-11-26, over 2 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.015 | first score | v2026.06.15 |
| 2026-11-26 | 0.014 | 0.015 | v2026.06.15 |